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/y2023/ssd_profiler.cc b/y2023/ssd_profiler.cc
index 2805680..e40f81a 100644
--- a/y2023/ssd_profiler.cc
+++ b/y2023/ssd_profiler.cc
@@ -5,11 +5,12 @@
 
 #include <chrono>
 
+#include "gflags/gflags.h"
+#include "glog/logging.h"
+
 #include "aos/init.h"
 #include "aos/realtime.h"
 #include "aos/time/time.h"
-#include "gflags/gflags.h"
-#include "glog/logging.h"
 
 namespace chrono = std::chrono;
 
@@ -22,7 +23,7 @@
 DEFINE_uint32(chunks, 1, "Chunks to write using writev.");
 DEFINE_uint32(chunk_size, 512, "Chunk size to write using writev.");
 
-int main(int argc, char ** argv) {
+int main(int argc, char **argv) {
   aos::InitGoogle(&argc, &argv);
 
   std::vector<uint8_t> data;
@@ -52,13 +53,14 @@
     iovec[i].iov_base = &data[i * FLAGS_chunk_size];
     iovec[i].iov_len = FLAGS_chunk_size;
   }
-  iovec[FLAGS_chunks - 1].iov_base = &data[(FLAGS_chunks - 1) * FLAGS_chunk_size];
-  iovec[FLAGS_chunks - 1].iov_len = data.size() - (FLAGS_chunks - 1) * FLAGS_chunk_size;
+  iovec[FLAGS_chunks - 1].iov_base =
+      &data[(FLAGS_chunks - 1) * FLAGS_chunk_size];
+  iovec[FLAGS_chunks - 1].iov_len =
+      data.size() - (FLAGS_chunks - 1) * FLAGS_chunk_size;
 
-  int fd = open(
-      FLAGS_file.c_str(),
-      O_RDWR | O_CLOEXEC | O_CREAT | (FLAGS_direct ? O_DIRECT : 0),
-      0774);
+  int fd =
+      open(FLAGS_file.c_str(),
+           O_RDWR | O_CLOEXEC | O_CREAT | (FLAGS_direct ? O_DIRECT : 0), 0774);
   PCHECK(fd != -1);
 
   const aos::monotonic_clock::time_point start_time =