Various cleanups of issues caught by clang-tidy
Change-Id: I6e79c121e7c9032cf5053dd31971e719fe76f4b6
diff --git a/aos/common/mutex.h b/aos/common/mutex.h
index ca35b10..ce10a08 100644
--- a/aos/common/mutex.h
+++ b/aos/common/mutex.h
@@ -2,8 +2,8 @@
#define AOS_COMMON_MUTEX_H_
#include "aos/common/macros.h"
-#include "aos/linux_code/ipc_lib/aos_sync.h"
#include "aos/common/die.h"
+#include "aos/linux_code/ipc_lib/aos_sync.h"
namespace aos {
diff --git a/aos/common/queue.h b/aos/common/queue.h
index 15328fb..5f5d8b0 100644
--- a/aos/common/queue.h
+++ b/aos/common/queue.h
@@ -163,7 +163,7 @@
public:
typedef T Message;
- Queue(const char *queue_name)
+ explicit Queue(const char *queue_name)
: queue_name_(queue_name), queue_(NULL), queue_msg_(NULL, NULL) {
static_assert(shm_ok<T>::value,
"The provided message type can't be put in shmem.");
diff --git a/aos/common/time.h b/aos/common/time.h
index 226cbc2..a176ba0 100644
--- a/aos/common/time.h
+++ b/aos/common/time.h
@@ -47,7 +47,7 @@
static const Time kZero;
- constexpr Time(int32_t sec = 0, int32_t nsec = 0)
+ explicit constexpr Time(int32_t sec = 0, int32_t nsec = 0)
: sec_(sec), nsec_(CheckConstexpr(nsec)) {
}
#ifndef SWIG