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/solvers/sparse_convex_test.cc b/frc971/solvers/sparse_convex_test.cc
index e391aa4..63a9409 100644
--- a/frc971/solvers/sparse_convex_test.cc
+++ b/frc971/solvers/sparse_convex_test.cc
@@ -36,8 +36,7 @@
}
// Returns the constraints f(X) < 0, and their derivitive.
- Eigen::VectorXd f(
- Eigen::Ref<const Eigen::VectorXd> X) const override {
+ Eigen::VectorXd f(Eigen::Ref<const Eigen::VectorXd> X) const override {
return C_ * X - c_;
}
Eigen::SparseMatrix<double> df(
@@ -49,9 +48,7 @@
Eigen::SparseMatrix<double> A() const override {
return Eigen::Matrix<double, 1, 2>(1, -1).sparseView();
}
- Eigen::VectorXd b() const override {
- return Eigen::Matrix<double, 1, 1>(0);
- }
+ Eigen::VectorXd b() const override { return Eigen::Matrix<double, 1, 1>(0); }
private:
Eigen::Matrix<double, 2, 2> Q_;