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/y2020/vision/sift/testing_sift.cc b/y2020/vision/sift/testing_sift.cc
index d4b1306..c0d4ca2 100644
--- a/y2020/vision/sift/testing_sift.cc
+++ b/y2020/vision/sift/testing_sift.cc
@@ -1,5 +1,6 @@
#include <memory>
+#include "glog/logging.h"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
@@ -7,7 +8,6 @@
#include "aos/init.h"
#include "aos/time/time.h"
#include "y2020/vision/sift/fast_gaussian.h"
-#include "glog/logging.h"
#include "y2020/vision/sift/sift971.h"
DEFINE_string(image, "", "Image to test with");
@@ -15,7 +15,7 @@
int main(int argc, char **argv) {
aos::InitGoogle(&argc, &argv);
- cv::setNumThreads (4);
+ cv::setNumThreads(4);
const cv::Mat raw_image = cv::imread(FLAGS_image);
CHECK(!raw_image.empty()) << ": Failed to read: " << FLAGS_image;
@@ -58,7 +58,8 @@
#endif
LOG(INFO);
- std::unique_ptr<frc971::vision::SIFT971_Impl> sift(new frc971::vision::SIFT971_Impl());
+ std::unique_ptr<frc971::vision::SIFT971_Impl> sift(
+ new frc971::vision::SIFT971_Impl());
std::vector<cv::KeyPoint> keypoints;
cv::Mat descriptors;
LOG(INFO) << "detectAndCompute on " << image.rows << "x" << image.cols;