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/flatbuffer_introspection.cc b/aos/flatbuffer_introspection.cc
index ddac795..4dd7f2a 100644
--- a/aos/flatbuffer_introspection.cc
+++ b/aos/flatbuffer_introspection.cc
@@ -10,10 +10,10 @@
using reflection::BaseType;
-void IntToString(int64_t val, reflection::BaseType type,
- FastStringBuilder *out, bool use_hex) {
- // For 1-byte types in hex mode, we need to cast to 2 bytes to get the desired output and
- // not unprintable characters.
+void IntToString(int64_t val, reflection::BaseType type, FastStringBuilder *out,
+ bool use_hex) {
+ // For 1-byte types in hex mode, we need to cast to 2 bytes to get the desired
+ // output and not unprintable characters.
if (use_hex) {
if (BaseType::UByte == type) {
out->AppendInt(static_cast<uint16_t>(val), true);
@@ -163,7 +163,8 @@
case BaseType::UInt:
case BaseType::Long:
case BaseType::ULong:
- IntOrEnumToString(GetAnyFieldI(*table, *field), type, enums, out, json_options.use_hex);
+ IntOrEnumToString(GetAnyFieldI(*table, *field), type, enums, out,
+ json_options.use_hex);
break;
case BaseType::Float:
case BaseType::Double: