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/libc/aos_strsignal.cc b/aos/libc/aos_strsignal.cc
index cf1aad1..b46e46e 100644
--- a/aos/libc/aos_strsignal.cc
+++ b/aos/libc/aos_strsignal.cc
@@ -2,9 +2,10 @@
#include <csignal>
-#include "aos/thread_local.h"
#include "glog/logging.h"
+#include "aos/thread_local.h"
+
const char *aos_strsignal(int signal) {
AOS_THREAD_LOCAL char buffer[512];
@@ -17,15 +18,15 @@
// sys_strsignal depricated in glibc2.32
#ifdef __GLIBC__
- #if __GLIBC_PREREQ(2, 32)
+#if __GLIBC_PREREQ(2, 32)
if (signal > 0 && signal < NSIG && sigdescr_np(signal) != nullptr) {
return sigdescr_np(signal);
}
- #else
+#else
if (signal > 0 && signal < NSIG && sys_siglist[signal] != nullptr) {
return sys_siglist[signal];
}
- #endif
+#endif
// If not using GLIBC assume we can use sys_siglist
#else
if (signal > 0 && signal < NSIG && sys_siglist[signal] != nullptr) {