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/state_feedback_loop.h b/frc971/control_loops/state_feedback_loop.h
index 1ea94d9..65e0ba1 100644
--- a/frc971/control_loops/state_feedback_loop.h
+++ b/frc971/control_loops/state_feedback_loop.h
@@ -8,11 +8,13 @@
#include <vector>
#include "Eigen/Dense"
+
#include "unsupported/Eigen/MatrixFunctions"
#if defined(__linux__)
-#include "aos/logging/logging.h"
#include "glog/logging.h"
+
+#include "aos/logging/logging.h"
#endif
#include "aos/macros.h"
@@ -356,7 +358,8 @@
&&observers)
: coefficients_(::std::move(observers)) {
last_U_ = Eigen::Matrix<Scalar, number_of_inputs, Eigen::Dynamic>(
- number_of_inputs, std::max(static_cast<size_t>(1u), coefficients().delayed_u));
+ number_of_inputs,
+ std::max(static_cast<size_t>(1u), coefficients().delayed_u));
}
StateFeedbackObserver(StateFeedbackObserver &&other)