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/motors/print/itm.cc b/motors/print/itm.cc
index 6f9164e..7f472c0 100644
--- a/motors/print/itm.cc
+++ b/motors/print/itm.cc
@@ -3,6 +3,7 @@
#include <cstring>
#include "absl/types/span.h"
+
#include "motors/core/itm.h"
namespace frc971 {
diff --git a/motors/print/itm.h b/motors/print/itm.h
index edcb798..64e3092 100644
--- a/motors/print/itm.h
+++ b/motors/print/itm.h
@@ -2,6 +2,7 @@
#define MOTORS_PRINT_ITM_
#include "absl/types/span.h"
+
#include "motors/print/print.h"
namespace frc971 {
diff --git a/motors/print/print.h b/motors/print/print.h
index 34ba983..7ec7cf2 100644
--- a/motors/print/print.h
+++ b/motors/print/print.h
@@ -4,6 +4,7 @@
#include <memory>
#include "absl/types/span.h"
+
#include "aos/containers/sized_array.h"
#include "motors/core/kinetis.h"
diff --git a/motors/print/semihosting.cc b/motors/print/semihosting.cc
index 13bd78b..a266ad6 100644
--- a/motors/print/semihosting.cc
+++ b/motors/print/semihosting.cc
@@ -1,6 +1,7 @@
#include "motors/print/semihosting.h"
#include "absl/types/span.h"
+
#include "motors/core/semihosting.h"
namespace frc971 {
diff --git a/motors/print/semihosting.h b/motors/print/semihosting.h
index d323a7a..6094a67 100644
--- a/motors/print/semihosting.h
+++ b/motors/print/semihosting.h
@@ -2,6 +2,7 @@
#define MOTORS_PRINT_SEMIHOSTING_H_
#include "absl/types/span.h"
+
#include "motors/print/print.h"
namespace frc971 {
diff --git a/motors/print/uart.cc b/motors/print/uart.cc
index b635d23..4cfb001 100644
--- a/motors/print/uart.cc
+++ b/motors/print/uart.cc
@@ -1,9 +1,9 @@
#include "motors/print/uart.h"
-#include "motors/core/kinetis.h"
-
#include <atomic>
+#include "motors/core/kinetis.h"
+
namespace frc971 {
namespace motors {
namespace {