clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I956cf3cb1bbfc017c4d4dceb3195c1d0735b0605
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/trigger.cpp b/src/trigger.cpp
index b80afa7..ca6804c 100644
--- a/src/trigger.cpp
+++ b/src/trigger.cpp
@@ -66,8 +66,7 @@
persistent = false;
}
return 1;
- },
- [this](const auto&) { return persistent; });
+ }, [this](const auto&) { return persistent; });
dbusIface.register_property_rw(
"Thresholds", TriggerThresholdParams{},
@@ -81,8 +80,7 @@
newThresholdParams);
oldVal = std::move(newVal);
return 1;
- },
- [this](const auto&) {
+ }, [this](const auto&) {
return fromLabeledThresholdParam(getLabeledThresholds());
});
@@ -99,8 +97,7 @@
}
oldVal = std::move(newVal);
return 1;
- },
- [this](const auto&) {
+ }, [this](const auto&) {
return utils::fromLabeledSensorsInfo(getLabeledSensorInfo());
});
@@ -117,8 +114,7 @@
messages::Presence::Exist, *id, *reportIds});
oldVal = std::move(newVal);
return 1;
- },
- [this](const auto&) {
+ }, [this](const auto&) {
return utils::transform<std::vector>(*reportIds,
[](const auto& id) {
return utils::pathAppend(utils::constants::reportDirPath, id);
@@ -138,8 +134,7 @@
}
name = oldVal = newVal;
return 1;
- },
- [this](const auto&) { return name; });
+ }, [this](const auto&) { return name; });
dbusIface.register_property_r(
"TriggerActions", std::vector<std::string>(),