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/starter/starterd.cc b/aos/starter/starterd.cc
index 19117de..d6caf3f 100644
--- a/aos/starter/starterd.cc
+++ b/aos/starter/starterd.cc
@@ -1,10 +1,11 @@
#include <pwd.h>
#include <sys/types.h>
+#include "gflags/gflags.h"
+
#include "aos/init.h"
#include "aos/starter/starterd_lib.h"
#include "aos/util/file.h"
-#include "gflags/gflags.h"
DEFINE_string(config, "aos_config.json", "File path of aos configuration");
DEFINE_string(user, "",
@@ -41,7 +42,8 @@
constexpr int kUnchanged = -1;
if (setresgid(/* ruid */ gid, /* euid */ gid,
/* suid */ kUnchanged) != 0) {
- PLOG(FATAL) << "Failed to change GID to " << FLAGS_user << ", group " << gid;
+ PLOG(FATAL) << "Failed to change GID to " << FLAGS_user << ", group "
+ << gid;
}
if (setresuid(/* ruid */ uid, /* euid */ uid,