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/c2d_test.cc b/frc971/control_loops/c2d_test.cc
index a0c4deb..14b4952 100644
--- a/frc971/control_loops/c2d_test.cc
+++ b/frc971/control_loops/c2d_test.cc
@@ -2,9 +2,10 @@
#include <functional>
-#include "frc971/control_loops/runge_kutta.h"
#include "gtest/gtest.h"
+#include "frc971/control_loops/runge_kutta.h"
+
namespace frc971 {
namespace controls {
namespace testing {
@@ -65,8 +66,9 @@
},
Eigen::Matrix<double, 2, 2>::Zero(), 0, 1.0);
EXPECT_LT((Q_d_integrated - Q_d).norm(), 1e-10)
- << "Expected these to be nearly equal:\nQ_d:\n" << Q_d
- << "\nQ_d_integrated:\n" << Q_d_integrated;
+ << "Expected these to be nearly equal:\nQ_d:\n"
+ << Q_d << "\nQ_d_integrated:\n"
+ << Q_d_integrated;
}
// Tests that the "fast" discretization produces nearly identical results.