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/y2019/vision/server/www/generate_camera.cc b/y2019/vision/server/www/generate_camera.cc
index 757ce69..455b0a9 100644
--- a/y2019/vision/server/www/generate_camera.cc
+++ b/y2019/vision/server/www/generate_camera.cc
@@ -1,14 +1,14 @@
-#include "y2019/constants.h"
-#include "y2019/vision/constants.h"
-
#include <fstream>
#include <iostream>
+#include "y2019/constants.h"
+#include "y2019/vision/constants.h"
+
namespace y2019 {
namespace vision {
void DumpPose(std::basic_ostream<char> *o, const vision::CameraGeometry &pose) {
*o << "{x: " << pose.location[0] << ", y: " << pose.location[1]
- << ", theta: " << pose.heading << "}";
+ << ", theta: " << pose.heading << "}";
}
void DumpTypescriptConstants(const char *fname) {
::std::ofstream out_file(fname);
@@ -23,7 +23,7 @@
}
out_file << "];\n";
}
-} // namespace constants
+} // namespace vision
} // namespace y2019
int main(int argc, char *argv[]) {