Run clang-format on the entire repo
This patch clang-formats the entire repo. Third-party code is
excluded.
I needed to fix up the .clang-format file so that all the header
includes are ordered properly. I could have sworn that it used to work
without the extra modification, but I guess not.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I64bb9f2c795401393f9dfe2fefc4f04cb36b52f6
diff --git a/aos/mutex/mutex.cc b/aos/mutex/mutex.cc
index 18d233d..5c5dcbe 100644
--- a/aos/mutex/mutex.cc
+++ b/aos/mutex/mutex.cc
@@ -4,9 +4,10 @@
#include <cstdio>
#include <cstring>
-#include "aos/type_traits/type_traits.h"
#include "glog/logging.h"
+#include "aos/type_traits/type_traits.h"
+
namespace aos {
// Lock and Unlock use the return values of mutex_lock/mutex_unlock
diff --git a/aos/mutex/mutex.h b/aos/mutex/mutex.h
index 1a2a028..869f429 100644
--- a/aos/mutex/mutex.h
+++ b/aos/mutex/mutex.h
@@ -1,10 +1,11 @@
#ifndef AOS_MUTEX_H_
#define AOS_MUTEX_H_
+#include "glog/logging.h"
+
#include "aos/ipc_lib/aos_sync.h"
#include "aos/macros.h"
#include "aos/type_traits/type_traits.h"
-#include "glog/logging.h"
namespace aos {
diff --git a/aos/mutex/mutex_test.cc b/aos/mutex/mutex_test.cc
index bd8a548..ea57362 100644
--- a/aos/mutex/mutex_test.cc
+++ b/aos/mutex/mutex_test.cc
@@ -7,6 +7,8 @@
#include <cmath>
#include <thread>
+#include "gtest/gtest.h"
+
#include "aos/die.h"
#include "aos/ipc_lib/aos_sync.h"
#include "aos/ipc_lib/core_lib.h"
@@ -14,7 +16,6 @@
#include "aos/testing/test_shm.h"
#include "aos/time/time.h"
#include "aos/util/death_test_log_implementation.h"
-#include "gtest/gtest.h"
namespace aos {
namespace testing {