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/frc971/control_loops/drivetrain/spline_test.cc b/frc971/control_loops/drivetrain/spline_test.cc
index 015ec6a..6498fb6 100644
--- a/frc971/control_loops/drivetrain/spline_test.cc
+++ b/frc971/control_loops/drivetrain/spline_test.cc
@@ -4,6 +4,7 @@
#include "gflags/gflags.h"
#include "gtest/gtest.h"
+
#include "frc971/analysis/in_process_plotter.h"
DEFINE_bool(plot, false, "If true, plot");
@@ -15,9 +16,8 @@
std::string TestName() {
const ::testing::TestInfo *info =
- ::testing::UnitTest::GetInstance()->current_test_info();
- return std::string(info->test_case_name()) + "." +
- std::string(info->name());
+ ::testing::UnitTest::GetInstance()->current_test_info();
+ return std::string(info->test_case_name()) + "." + std::string(info->name());
}
// Test fixture with a spline from 0, 0 to 1, 1
@@ -34,6 +34,7 @@
plotter_->Spin();
}
}
+
protected:
SplineTest()
: control_points_((::Eigen::Matrix<double, 2, 4>() << 0.0, 0.5, 0.5, 1.0,