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/y2014/control_loops/claw/claw.cc b/y2014/control_loops/claw/claw.cc
index 4b76fd2..2fb93b4 100644
--- a/y2014/control_loops/claw/claw.cc
+++ b/y2014/control_loops/claw/claw.cc
@@ -953,15 +953,15 @@
if (output) {
if (goal) {
// setup the intake
- output_struct.intake_voltage =
- (goal->intake() > 12.0)
- ? 12
- : (goal->intake() < -12.0) ? -12.0 : goal->intake();
+ output_struct.intake_voltage = (goal->intake() > 12.0) ? 12
+ : (goal->intake() < -12.0)
+ ? -12.0
+ : goal->intake();
output_struct.tusk_voltage = goal->centering();
- output_struct.tusk_voltage =
- (goal->centering() > 12.0)
- ? 12
- : (goal->centering() < -12.0) ? -12.0 : goal->centering();
+ output_struct.tusk_voltage = (goal->centering() > 12.0) ? 12
+ : (goal->centering() < -12.0)
+ ? -12.0
+ : goal->centering();
}
output_struct.top_claw_voltage = claw_.U(1, 0);
output_struct.bottom_claw_voltage = claw_.U(0, 0);