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/fast_string_builder.h b/aos/fast_string_builder.h
index aa6b619..e9a4f27 100644
--- a/aos/fast_string_builder.h
+++ b/aos/fast_string_builder.h
@@ -72,14 +72,16 @@
template <typename T, typename>
void FastStringBuilder::AppendInt(T val, bool use_hex) {
if (use_hex) {
- // This is not fast like the decimal path, but hex should be used in limited cases.
+ // This is not fast like the decimal path, but hex should be used in limited
+ // cases.
std::stringstream ss;
ss << std::hex << val;
str_ += ss.str();
} else {
std::size_t index = str_.size();
Resize(absl::numbers_internal::kFastToBufferSize);
- char *end = absl::numbers_internal::FastIntToBuffer(val, str_.data() + index);
+ char *end =
+ absl::numbers_internal::FastIntToBuffer(val, str_.data() + index);
str_.resize(end - str_.data());
}
}