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/motors/math.h b/motors/math.h
index d7bbee4..5151714 100644
--- a/motors/math.h
+++ b/motors/math.h
@@ -100,7 +100,7 @@
 extern ::std::array<GenericInitializer *, 10> global_initializers;
 
 // Manages initializing and access to an integer table of a single size.
-template<int kTableSize>
+template <int kTableSize>
 class SinCosIntTable {
  public:
   static const float *sin_int_table() {
@@ -192,7 +192,7 @@
 // multiple denominators are needed in the same program, in which case using the
 // biggest denominator for all of them will use the least memory.
 
-template<class Rotation, int kTableSize = Rotation::den>
+template <class Rotation, int kTableSize = Rotation::den>
 float FastSinInt(uint32_t theta) {
   return math_internal::FastTableLookupInt<Rotation, kTableSize>(
       theta, math_internal::SinCosIntTable<kTableSize>::sin_int_table());
@@ -204,7 +204,7 @@
       theta, math_internal::SinCosIntTable<kTableSize>::cos_int_table());
 }
 
-template<class Rotation>
+template <class Rotation>
 ::std::complex<float> ImaginaryExpInt(uint32_t theta) {
   return ::std::complex<float>(FastCosInt<Rotation>(theta),
                                FastSinInt<Rotation>(theta));