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: I0d10afa582342818b9d90b168f6f39f71ce4e0f4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
[AJ: regenerate using .clang-format from openbmc/docs@f44abd66eca8]
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/src/sensor.hpp b/src/sensor.hpp
index 434d81d..27bbd1a 100644
--- a/src/sensor.hpp
+++ b/src/sensor.hpp
@@ -288,17 +288,17 @@
continue;
}
- std::string level =
- propertyLevel(threshold.level, threshold.direction);
- std::string alarm =
- propertyAlarm(threshold.level, threshold.direction);
+ std::string level = propertyLevel(threshold.level,
+ threshold.direction);
+ std::string alarm = propertyAlarm(threshold.level,
+ threshold.direction);
if ((level.empty()) || (alarm.empty()))
{
continue;
}
- size_t thresSize =
- label.empty() ? thresholds.size() : thresholdSize;
+ size_t thresSize = label.empty() ? thresholds.size()
+ : thresholdSize;
iface->register_property(
level, threshold.value,
[&, label, thresSize](const double& request, double& oldValue) {