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/y2017/actors/autonomous_actor.h b/y2017/actors/autonomous_actor.h
index ef99b72..ac60f23 100644
--- a/y2017/actors/autonomous_actor.h
+++ b/y2017/actors/autonomous_actor.h
@@ -66,9 +66,7 @@
void set_intake_max_velocity(double intake_max_velocity) {
intake_max_velocity_ = intake_max_velocity;
}
- void set_gear_servo(double gear_servo) {
- gear_servo_ = gear_servo;
- }
+ void set_gear_servo(double gear_servo) { gear_servo_ = gear_servo; }
void set_use_vision_for_shots(bool use_vision_for_shots) {
use_vision_for_shots_ = use_vision_for_shots;
}
@@ -116,19 +114,19 @@
indexer_offset = indexer_builder.Finish();
flatbuffers::Offset<frc971::ProfileParameters>
- turret_profile_parameters_offset = frc971::CreateProfileParameters(
- *builder.fbb(), 6.0, 15.0);
+ turret_profile_parameters_offset =
+ frc971::CreateProfileParameters(*builder.fbb(), 6.0, 15.0);
control_loops::superstructure::TurretGoal::Builder turret_builder =
builder.MakeBuilder<control_loops::superstructure::TurretGoal>();
turret_builder.add_angle(turret_goal_);
turret_builder.add_track(vision_track_);
turret_builder.add_profile_params(turret_profile_parameters_offset);
- flatbuffers::Offset<control_loops::superstructure::TurretGoal> turret_offset =
- turret_builder.Finish();
+ flatbuffers::Offset<control_loops::superstructure::TurretGoal>
+ turret_offset = turret_builder.Finish();
flatbuffers::Offset<frc971::ProfileParameters>
- hood_profile_parameters_offset = frc971::CreateProfileParameters(
- *builder.fbb(), 5.0, 25.0);
+ hood_profile_parameters_offset =
+ frc971::CreateProfileParameters(*builder.fbb(), 5.0, 25.0);
control_loops::superstructure::HoodGoal::Builder hood_builder =
builder.MakeBuilder<control_loops::superstructure::HoodGoal>();
hood_builder.add_angle(hood_goal_);