clang-format: copy latest and re-format
clang-format-16 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: I1ac255c58971ac5cc4697b8bb1069067aad02d18
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/trigger_factory.cpp b/src/trigger_factory.cpp
index 615d42d..9ac8f49 100644
--- a/src/trigger_factory.cpp
+++ b/src/trigger_factory.cpp
@@ -223,10 +223,10 @@
const std::vector<LabeledSensorInfo>& labeledSensorsInfo) const
{
const auto& sensors = getSensors(labeledSensorsInfo);
- auto triggerActions =
- utils::transform(triggerActionsIn, [](const auto& triggerActionStr) {
- return toTriggerAction(triggerActionStr);
- });
+ auto triggerActions = utils::transform(triggerActionsIn,
+ [](const auto& triggerActionStr) {
+ return toTriggerAction(triggerActionStr);
+ });
std::vector<std::shared_ptr<interfaces::Threshold>> thresholds;
auto id = std::make_unique<const std::string>(idIn);
@@ -260,9 +260,8 @@
{
auto existing = std::find_if(oldSensors.begin(), oldSensors.end(),
[labeledSensorInfo](auto sensor) {
- return labeledSensorInfo ==
- sensor->getLabeledSensorInfo();
- });
+ return labeledSensorInfo == sensor->getLabeledSensorInfo();
+ });
if (existing != oldSensors.end())
{
@@ -311,9 +310,10 @@
{
return utils::transform(sensorsInfo, [&tree](const auto& item) {
const auto& [sensorPath, metadata] = item;
- auto found = std::find_if(
- tree.begin(), tree.end(),
- [path = sensorPath](const auto& x) { return x.first == path; });
+ auto found = std::find_if(tree.begin(), tree.end(),
+ [path = sensorPath](const auto& x) {
+ return x.first == path;
+ });
if (tree.end() != found)
{