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/motors/peripheral/uart_buffer_test.cc b/motors/peripheral/uart_buffer_test.cc
index c464f8a..223c029 100644
--- a/motors/peripheral/uart_buffer_test.cc
+++ b/motors/peripheral/uart_buffer_test.cc
@@ -232,14 +232,14 @@
const auto result = buffer.PopSpan(5);
ASSERT_EQ(5u, result.size());
for (int i = 0; i < 5; ++i) {
- EXPECT_EQ(static_cast<char>(i), result[i]);
+ EXPECT_EQ(static_cast<char>(i), result[i]);
}
}
{
const auto result = buffer.PopSpan(10);
ASSERT_EQ(5u, result.size());
for (int i = 0; i < 5; ++i) {
- EXPECT_EQ(static_cast<char>(i + 5), result[i]);
+ EXPECT_EQ(static_cast<char>(i + 5), result[i]);
}
}
ASSERT_TRUE(buffer.PopSpan(5).empty());
@@ -259,7 +259,7 @@
const auto result = buffer.PopSpan(5);
ASSERT_EQ(5u, result.size());
for (int i = 0; i < 5; ++i) {
- EXPECT_EQ(static_cast<char>(i), result[i]);
+ EXPECT_EQ(static_cast<char>(i), result[i]);
}
}
for (int i = 0; i < 5; ++i) {
@@ -269,14 +269,14 @@
const auto result = buffer.PopSpan(10);
ASSERT_EQ(5u, result.size());
for (int i = 0; i < 5; ++i) {
- EXPECT_EQ(static_cast<char>(i + 5), result[i]);
+ EXPECT_EQ(static_cast<char>(i + 5), result[i]);
}
}
{
const auto result = buffer.PopSpan(10);
ASSERT_EQ(5u, result.size());
for (int i = 0; i < 5; ++i) {
- EXPECT_EQ(static_cast<char>(i + 20), result[i]);
+ EXPECT_EQ(static_cast<char>(i + 20), result[i]);
}
}
}