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/y2023/vision/localization_verifier.cc b/y2023/vision/localization_verifier.cc
index 3b366fa..c16f874 100644
--- a/y2023/vision/localization_verifier.cc
+++ b/y2023/vision/localization_verifier.cc
@@ -1,8 +1,9 @@
+#include "glog/logging.h"
+
#include "aos/init.h"
#include "frc971/constants/constants_sender_lib.h"
#include "frc971/control_loops/drivetrain/localization/localizer_output_generated.h"
#include "frc971/vision/vision_generated.h"
-#include "glog/logging.h"
#include "y2023/localizer/localizer.h"
#include "y2023/localizer/utils.h"
@@ -89,12 +90,12 @@
const std::string_view pi_name =
camera->calibration()->node_name()->string_view();
- event_loop.MakeWatcher(absl::StrCat("/", pi_name, "/camera"),
- [H_robot_camera, &localizer_fetcher](
- const frc971::vision::TargetMap &target_map) {
- HandleDetections(target_map, H_robot_camera,
- &localizer_fetcher);
- });
+ event_loop.MakeWatcher(
+ absl::StrCat("/", pi_name, "/camera"),
+ [H_robot_camera,
+ &localizer_fetcher](const frc971::vision::TargetMap &target_map) {
+ HandleDetections(target_map, H_robot_camera, &localizer_fetcher);
+ });
}
event_loop.Run();
}