patchpanel: run clang-format on all files
Also enable the clang_format_presubmit check.
Command used:
clang-format -i -style=file $(find patchpanel -name '*.h' -o -name '*.cc')
BUG=b:166166797
TEST=CQ passes
Change-Id: I344cd4602a68394ba5adc5e5d58d2703eea978dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2399204
Tested-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Hugo Benichi <hugobenichi@google.com>
Commit-Queue: Tom Hughes <tomhughes@chromium.org>
Auto-Submit: Tom Hughes <tomhughes@chromium.org>
diff --git a/patchpanel/firewall_fuzzer.cc b/patchpanel/firewall_fuzzer.cc
index 1e3bcdb..d2833d5 100644
--- a/patchpanel/firewall_fuzzer.cc
+++ b/patchpanel/firewall_fuzzer.cc
@@ -24,9 +24,7 @@
private:
// The fake's implementation always succeeds.
- int RunInMinijail(const std::vector<std::string>& argv) override {
- return 0;
- }
+ int RunInMinijail(const std::vector<std::string>& argv) override { return 0; }
DISALLOW_COPY_AND_ASSIGN(FakeFirewall);
};
@@ -34,9 +32,7 @@
} // namespace patchpanel
struct Environment {
- Environment() {
- logging::SetMinLogLevel(logging::LOG_FATAL);
- }
+ Environment() { logging::SetMinLogLevel(logging::LOG_FATAL); }
};
void FuzzAcceptRules(patchpanel::FakeFirewall* fake_firewall,