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/time/time.cc b/aos/time/time.cc
index 4f39c36..361616c 100644
--- a/aos/time/time.cc
+++ b/aos/time/time.cc
@@ -156,9 +156,8 @@
return std::nullopt;
}
- return realtime_clock::time_point(
- std::chrono::seconds(seconds) +
- std::chrono::nanoseconds(nanoseconds_data));
+ return realtime_clock::time_point(std::chrono::seconds(seconds) +
+ std::chrono::nanoseconds(nanoseconds_data));
}
#endif
diff --git a/aos/time/time_test.cc b/aos/time/time_test.cc
index 4fbf821..d5c82f2 100644
--- a/aos/time/time_test.cc
+++ b/aos/time/time_test.cc
@@ -2,11 +2,12 @@
#include <thread>
-#include "aos/macros.h"
-#include "aos/util/death_test_log_implementation.h"
#include "glog/logging.h"
#include "gtest/gtest.h"
+#include "aos/macros.h"
+#include "aos/util/death_test_log_implementation.h"
+
namespace aos {
namespace time {
namespace testing {