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/button_board.cc b/motors/button_board.cc
index 0c0050b..fb17328 100644
--- a/motors/button_board.cc
+++ b/motors/button_board.cc
@@ -2,6 +2,7 @@
#include <inttypes.h>
#include <stdio.h>
+
#include <atomic>
#include <cmath>
@@ -150,8 +151,8 @@
((PERIPHERAL_BITBAND(GPIOA_PDIR, 12) << 0) |
(PERIPHERAL_BITBAND(GPIOD_PDIR, 0) << 1) |
(PERIPHERAL_BITBAND(GPIOB_PDIR, 17) << 2) |
- (PERIPHERAL_BITBAND(GPIOB_PDIR, 16) << 3) | (DecodeAnalog(report1[0]) << 4) |
- (DecodeAnalog(report1[1]) << 6)) ^
+ (PERIPHERAL_BITBAND(GPIOB_PDIR, 16) << 3) |
+ (DecodeAnalog(report1[0]) << 4) | (DecodeAnalog(report1[1]) << 6)) ^
0x0f;
report1[5] = (DecodeAnalog(report1[2])) | (DecodeAnalog(report1[3]) << 2);