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/testing/flatbuffer_eq.h b/aos/testing/flatbuffer_eq.h
index 2f7b345..b560aaa 100644
--- a/aos/testing/flatbuffer_eq.h
+++ b/aos/testing/flatbuffer_eq.h
@@ -1,10 +1,11 @@
 #ifndef AOS_TESTING_FLATBUFFER_EQ_H_
 #define AOS_TESTING_FLATBUFFER_EQ_H_
 
+#include "gmock/gmock.h"
+
 #include "aos/flatbuffer_merge.h"
 #include "aos/flatbuffers.h"
 #include "aos/json_to_flatbuffer.h"
-#include "gmock/gmock.h"
 
 namespace aos {
 namespace testing {
diff --git a/aos/testing/gtest_main.cc b/aos/testing/gtest_main.cc
index a6e944c..21f141f 100644
--- a/aos/testing/gtest_main.cc
+++ b/aos/testing/gtest_main.cc
@@ -2,11 +2,12 @@
 
 #include <iostream>
 
-#include "aos/init.h"
 #include "gflags/gflags.h"
 #include "glog/logging.h"
 #include "gtest/gtest.h"
 
+#include "aos/init.h"
+
 DEFINE_bool(print_logs, false,
             "Print the log messages as they are being generated.");
 DEFINE_string(log_file, "",
diff --git a/aos/testing/test_logging.cc b/aos/testing/test_logging.cc
index d2466c9..ad2cc03 100644
--- a/aos/testing/test_logging.cc
+++ b/aos/testing/test_logging.cc
@@ -4,10 +4,11 @@
 #include <vector>
 
 #include "absl/base/call_once.h"
+#include "gtest/gtest.h"
+
 #include "aos/logging/implementations.h"
 #include "aos/stl_mutex/stl_mutex.h"
 #include "aos/thread_local.h"
-#include "gtest/gtest.h"
 
 using ::aos::logging::LogMessage;
 
diff --git a/aos/testing/test_logging_test.cc b/aos/testing/test_logging_test.cc
index e7f9806..f39c6cf 100644
--- a/aos/testing/test_logging_test.cc
+++ b/aos/testing/test_logging_test.cc
@@ -2,9 +2,10 @@
 
 #include <thread>
 
-#include "aos/logging/logging.h"
 #include "gtest/gtest.h"
 
+#include "aos/logging/logging.h"
+
 namespace aos {
 namespace testing {