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/y2022/localizer/localizer_replay.cc b/y2022/localizer/localizer_replay.cc
index 6dcbb1e..e706421 100644
--- a/y2022/localizer/localizer_replay.cc
+++ b/y2022/localizer/localizer_replay.cc
@@ -1,15 +1,16 @@
+#include "gflags/gflags.h"
+
#include "aos/configuration.h"
#include "aos/events/logging/log_reader.h"
#include "aos/events/logging/log_writer.h"
-#include "aos/util/simulation_logger.h"
#include "aos/events/simulated_event_loop.h"
#include "aos/init.h"
#include "aos/json_to_flatbuffer.h"
#include "aos/network/team_number.h"
+#include "aos/util/simulation_logger.h"
+#include "y2022/control_loops/drivetrain/drivetrain_base.h"
#include "y2022/localizer/localizer.h"
#include "y2022/localizer/localizer_schema.h"
-#include "gflags/gflags.h"
-#include "y2022/control_loops/drivetrain/drivetrain_base.h"
DEFINE_string(config, "y2022/aos_config.json",
"Name of the config file to replay using.");
@@ -39,10 +40,8 @@
// open logfiles
aos::logger::LogReader reader(logfiles, &config.message());
- reader.RemapLoggedChannel("/localizer",
- "frc971.controls.LocalizerStatus");
- reader.RemapLoggedChannel("/localizer",
- "frc971.controls.LocalizerOutput");
+ reader.RemapLoggedChannel("/localizer", "frc971.controls.LocalizerStatus");
+ reader.RemapLoggedChannel("/localizer", "frc971.controls.LocalizerOutput");
reader.RemapLoggedChannel("/localizer",
"frc971.controls.LocalizerVisualization");