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/debug_viewer.cc b/y2019/vision/debug_viewer.cc
index e98f018..b2ad1be 100644
--- a/y2019/vision/debug_viewer.cc
+++ b/y2019/vision/debug_viewer.cc
@@ -1,23 +1,23 @@
-#include <Eigen/Dense>
#include <iostream>
-#include "y2019/vision/target_finder.h"
+#include "gflags/gflags.h"
+#include <Eigen/Dense>
#include "aos/vision/blob/move_scale.h"
#include "aos/vision/blob/stream_view.h"
#include "aos/vision/blob/transpose.h"
#include "aos/vision/debug/debug_framework.h"
#include "aos/vision/math/vector.h"
-#include "gflags/gflags.h"
+#include "y2019/vision/target_finder.h"
-using aos::vision::ImageRange;
-using aos::vision::ImageFormat;
-using aos::vision::RangeImage;
using aos::vision::AnalysisAllocator;
using aos::vision::BlobList;
-using aos::vision::Vector;
-using aos::vision::Segment;
+using aos::vision::ImageFormat;
+using aos::vision::ImageRange;
using aos::vision::PixelRef;
+using aos::vision::RangeImage;
+using aos::vision::Segment;
+using aos::vision::Vector;
DEFINE_int32(camera, 10, "The camera to use the intrinsics for");
@@ -56,9 +56,10 @@
class FilterHarness : public aos::vision::FilterHarness {
public:
- FilterHarness() {
- *(target_finder_.mutable_intrinsics()) = GetCamera(FLAGS_camera)->intrinsics;
- }
+ FilterHarness() {
+ *(target_finder_.mutable_intrinsics()) =
+ GetCamera(FLAGS_camera)->intrinsics;
+ }
aos::vision::RangeImage Threshold(aos::vision::ImagePtr image) override {
return target_finder_.Threshold(image);
}
@@ -228,12 +229,16 @@
} else if (key == 'h') {
printf("Key Mappings:\n");
printf(" z: Toggle drawing final target pose.\n");
- printf(" x: Toggle drawing re-projected targets and print solver results.\n");
+ printf(
+ " x: Toggle drawing re-projected targets and print solver "
+ "results.\n");
printf(" c: Toggle drawing proposed target groupings.\n");
printf(" v: Toggle drawing ordered target components.\n");
printf(" b: Toggle drawing proposed target components.\n");
printf(" n: Toggle drawing countours before and after warping.\n");
- printf(" m: Toggle drawing raw blob data (may need to change image to toggle a redraw).\n");
+ printf(
+ " m: Toggle drawing raw blob data (may need to change image to "
+ "toggle a redraw).\n");
printf(" h: Print this message.\n");
printf(" a: May log camera image to /tmp/debug_viewer_jpeg_<#>.yuyv\n");
printf(" q: Exit the application.\n");
@@ -354,7 +359,7 @@
};
} // namespace vision
-} // namespace y2017
+} // namespace y2019
int main(int argc, char **argv) {
::gflags::ParseCommandLineFlags(&argc, &argv, true);