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/zone.cpp b/control/zone.cpp
index 46e1f08..b1badc1 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -409,10 +409,9 @@
const std::vector<Action>& eventActions)
{
// Perform the actions
- std::for_each(eventActions.begin(), eventActions.end(),
- [this, &eventGroup](const auto& action) {
- action(*this, eventGroup);
- });
+ std::for_each(
+ eventActions.begin(), eventActions.end(),
+ [this, &eventGroup](const auto& action) { action(*this, eventGroup); });
}
void Zone::handleEvent(sdbusplus::message_t& msg, const EventData* eventData)
@@ -436,10 +435,9 @@
{
for (auto& serv : srvIter->second)
{
- auto it = std::find_if(serv.second.begin(), serv.second.end(),
- [&intf](const auto& interface) {
- return intf == interface;
- });
+ auto it = std::find_if(
+ serv.second.begin(), serv.second.end(),
+ [&intf](const auto& interface) { return intf == interface; });
if (it != std::end(serv.second))
{
// Service found