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/convex.h b/frc971/solvers/convex.h
index 140cac1..3de357c 100644
--- a/frc971/solvers/convex.h
+++ b/frc971/solvers/convex.h
@@ -4,11 +4,11 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#include <Eigen/Dense>
 #include <iomanip>
 
 #include "absl/strings/str_join.h"
 #include "glog/logging.h"
+#include <Eigen/Dense>
 
 namespace frc971 {
 namespace solvers {
diff --git a/frc971/solvers/sparse_convex.cc b/frc971/solvers/sparse_convex.cc
index dfb418f..7e2a6ca 100644
--- a/frc971/solvers/sparse_convex.cc
+++ b/frc971/solvers/sparse_convex.cc
@@ -1,10 +1,9 @@
 #include "frc971/solvers/sparse_convex.h"
 
-#include <Eigen/Sparse>
-#include <Eigen/SparseLU>
-
 #include "absl/strings/str_join.h"
 #include "glog/logging.h"
+#include <Eigen/Sparse>
+#include <Eigen/SparseLU>
 
 namespace frc971 {
 namespace solvers {
diff --git a/frc971/solvers/sparse_convex.h b/frc971/solvers/sparse_convex.h
index 87f9bcb..9695431 100644
--- a/frc971/solvers/sparse_convex.h
+++ b/frc971/solvers/sparse_convex.h
@@ -4,10 +4,10 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#include <Eigen/Sparse>
 #include <iomanip>
 
 #include "glog/logging.h"
+#include <Eigen/Sparse>
 
 namespace frc971 {
 namespace solvers {
@@ -104,21 +104,18 @@
   };
 
   // Computes all the values for the given problem at the given state.
-  Derivatives ComputeDerivative(
-      const SparseConvexProblem &problem,
-      const Eigen::Ref<const Eigen::VectorXd> y);
+  Derivatives ComputeDerivative(const SparseConvexProblem &problem,
+                                const Eigen::Ref<const Eigen::VectorXd> y);
 
   // Computes Rt at the given state and with the given t_inverse.  See 11.53 of
   // cvxbook.pdf.
-  Eigen::VectorXd Rt(
-      const Derivatives &derivatives,
-      Eigen::VectorXd y, double t_inverse);
+  Eigen::VectorXd Rt(const Derivatives &derivatives, Eigen::VectorXd y,
+                     double t_inverse);
 
   // Prints out all the derivatives with VLOG at the provided verbosity.
-  void PrintDerivatives(
-      const Derivatives &derivatives,
-      const Eigen::Ref<const Eigen::VectorXd> y,
-      std::string_view prefix, int verbosity);
+  void PrintDerivatives(const Derivatives &derivatives,
+                        const Eigen::Ref<const Eigen::VectorXd> y,
+                        std::string_view prefix, int verbosity);
 };
 
 }  // namespace solvers
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_;