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/actors/shoot_actor.cc b/y2014/actors/shoot_actor.cc
index aad64e8..0719062 100644
--- a/y2014/actors/shoot_actor.cc
+++ b/y2014/actors/shoot_actor.cc
@@ -3,7 +3,6 @@
#include <functional>
#include "aos/logging/logging.h"
-
#include "y2014/constants.h"
#include "y2014/control_loops/claw/claw_goal_generated.h"
#include "y2014/control_loops/claw/claw_status_generated.h"
@@ -63,8 +62,7 @@
claw_builder.add_intake(0.0);
claw_builder.add_centering(0.0);
- if (builder.Send(claw_builder.Finish()) !=
- aos::RawSender::Error::kOk) {
+ if (builder.Send(claw_builder.Finish()) != aos::RawSender::Error::kOk) {
AOS_LOG(WARNING, "sending claw goal failed\n");
return false;
}
@@ -89,8 +87,7 @@
shooter_builder.add_shot_requested(false);
shooter_builder.add_unload_requested(false);
shooter_builder.add_load_requested(false);
- if (builder.Send(shooter_builder.Finish()) !=
- aos::RawSender::Error::kOk) {
+ if (builder.Send(shooter_builder.Finish()) != aos::RawSender::Error::kOk) {
AOS_LOG(WARNING, "sending shooter goal failed\n");
return false;
}
@@ -124,8 +121,7 @@
goal_builder.add_shot_requested(true);
goal_builder.add_unload_requested(false);
goal_builder.add_load_requested(false);
- if (builder.Send(goal_builder.Finish()) !=
- aos::RawSender::Error::kOk) {
+ if (builder.Send(goal_builder.Finish()) != aos::RawSender::Error::kOk) {
AOS_LOG(WARNING, "sending shooter goal failed\n");
return;
}
diff --git a/y2014/actors/shoot_actor.h b/y2014/actors/shoot_actor.h
index 88a2358..37dc0c7 100644
--- a/y2014/actors/shoot_actor.h
+++ b/y2014/actors/shoot_actor.h
@@ -16,8 +16,7 @@
class ShootActor
: public ::aos::common::actions::ActorBase<aos::common::actions::Goal> {
public:
- typedef ::aos::common::actions::TypedActionFactory<
- aos::common::actions::Goal>
+ typedef ::aos::common::actions::TypedActionFactory<aos::common::actions::Goal>
Factory;
explicit ShootActor(::aos::EventLoop *event_loop);