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/y2017/vision/debug_viewer.cc b/y2017/vision/debug_viewer.cc
index 10dd57e..79b9800 100644
--- a/y2017/vision/debug_viewer.cc
+++ b/y2017/vision/debug_viewer.cc
@@ -1,18 +1,18 @@
-#include <Eigen/Dense>
#include <iostream>
-#include "y2017/vision/target_finder.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 "y2017/vision/target_finder.h"
-using aos::vision::ImageRange;
-using aos::vision::ImageFormat;
-using aos::vision::RangeImage;
using aos::vision::BlobList;
+using aos::vision::ImageFormat;
+using aos::vision::ImageRange;
+using aos::vision::RangeImage;
namespace y2017 {
namespace vision {
diff --git a/y2017/vision/target_finder.h b/y2017/vision/target_finder.h
index 5ee143d..34fd90d 100644
--- a/y2017/vision/target_finder.h
+++ b/y2017/vision/target_finder.h
@@ -6,9 +6,9 @@
#include "aos/vision/debug/overlay.h"
#include "aos/vision/math/vector.h"
+using aos::vision::BlobList;
using aos::vision::ImageRange;
using aos::vision::RangeImage;
-using aos::vision::BlobList;
using aos::vision::Vector;
namespace y2017 {
@@ -71,7 +71,7 @@
aos::vision::PixelLinesOverlay *GetOverlay() { return &overlay_; }
// Convert target location into meters and radians.
- void GetAngleDist(const aos::vision::Vector<2>& target, double down_angle,
+ void GetAngleDist(const aos::vision::Vector<2> &target, double down_angle,
double *dist, double *angle);
private:
diff --git a/y2017/vision/target_sender.cc b/y2017/vision/target_sender.cc
index 397eb04..a198cd2 100644
--- a/y2017/vision/target_sender.cc
+++ b/y2017/vision/target_sender.cc
@@ -1,5 +1,3 @@
-#include <google/protobuf/io/zero_copy_stream_impl.h>
-#include <google/protobuf/text_format.h>
#include <sys/stat.h>
#include <cstdio>
@@ -10,6 +8,9 @@
#include <thread>
#include <vector>
+#include <google/protobuf/io/zero_copy_stream_impl.h>
+#include <google/protobuf/text_format.h>
+
#include "aos/logging/implementations.h"
#include "aos/logging/logging.h"
#include "aos/time/time.h"