clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I3e9e6350864ac267819a4b8d670bef7d3746976e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/control/triggers.cpp b/control/triggers.cpp
index eb2580f..362f4b6 100644
--- a/control/triggers.cpp
+++ b/control/triggers.cpp
@@ -13,12 +13,11 @@
Trigger timer(TimerConf&& tConf)
{
- return
- [tConf = std::move(tConf)](control::Zone& zone, const std::string& name,
- const Group& group,
- const std::vector<Action>& actions) {
+ return [tConf = std::move(tConf)](
+ control::Zone& zone, const std::string& name, const Group& group,
+ const std::vector<Action>& actions) {
zone.addTimer(name, group, actions, tConf);
- };
+ };
}
Trigger signal(const std::string& match, SignalHandler&& handler)
@@ -75,10 +74,9 @@
}
// Run action functions for initial event state
- std::for_each(actions.begin(), actions.end(),
- [&zone, &group](auto const& action) {
- action(zone, group);
- });
+ std::for_each(
+ actions.begin(), actions.end(),
+ [&zone, &group](auto const& action) { action(zone, group); });
};
}