update_engine: Run clang-format on common/
BUG=none
TEST=unittest
Change-Id: Icdaf5017e03a197bc576f08f4b8dcdd00cff217c
Reviewed-on: https://chromium-review.googlesource.com/1407541
Commit-Ready: Amin Hassani <ahassani@chromium.org>
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Sen Jiang <senj@chromium.org>
diff --git a/common/action.h b/common/action.h
index 6c88216..9e2f5ff 100644
--- a/common/action.h
+++ b/common/action.h
@@ -145,12 +145,12 @@
};
// Forward declare a couple classes we use.
-template<typename T>
+template <typename T>
class ActionPipe;
-template<typename T>
+template <typename T>
class ActionTraits;
-template<typename SubClass>
+template <typename SubClass>
class Action : public AbstractAction {
public:
~Action() override {}
@@ -162,8 +162,9 @@
void set_in_pipe(
// this type is a fancy way of saying: a shared_ptr to an
// ActionPipe<InputObjectType>.
- const std::shared_ptr<ActionPipe<
- typename ActionTraits<SubClass>::InputObjectType>>& in_pipe) {
+ const std::shared_ptr<
+ ActionPipe<typename ActionTraits<SubClass>::InputObjectType>>&
+ in_pipe) {
in_pipe_ = in_pipe;
}
@@ -174,8 +175,9 @@
void set_out_pipe(
// this type is a fancy way of saying: a shared_ptr to an
// ActionPipe<OutputObjectType>.
- const std::shared_ptr<ActionPipe<
- typename ActionTraits<SubClass>::OutputObjectType>>& out_pipe) {
+ const std::shared_ptr<
+ ActionPipe<typename ActionTraits<SubClass>::OutputObjectType>>&
+ out_pipe) {
out_pipe_ = out_pipe;
}
@@ -192,9 +194,7 @@
}
// Returns true iff there's an output pipe.
- bool HasOutputPipe() const {
- return out_pipe_.get();
- }
+ bool HasOutputPipe() const { return out_pipe_.get(); }
// Copies the object passed into the output pipe. It will be accessible to
// the next Action via that action's input pipe (which is the same as this