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: I152f141a5e8343b92b5ce81d3ca16eec77b5606b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/sensor-monitor/threshold_alarm_logger.cpp b/sensor-monitor/threshold_alarm_logger.cpp
index 34090f9..99ed0d6 100644
--- a/sensor-monitor/threshold_alarm_logger.cpp
+++ b/sensor-monitor/threshold_alarm_logger.cpp
@@ -127,20 +127,17 @@
this, std::placeholders::_1));
// check for any currently asserted threshold alarms
- std::for_each(
- thresholdData.begin(), thresholdData.end(),
- [this](const auto& thresholdInterface) {
- const auto& interface = thresholdInterface.first;
- auto objects =
- SDBusPlus::getSubTreeRaw(this->bus, "/", interface, 0);
- std::for_each(objects.begin(), objects.end(),
- [interface, this](const auto& object) {
- const auto& path = object.first;
- const auto& service =
- object.second.begin()->first;
- checkThresholds(interface, path, service);
- });
+ std::for_each(thresholdData.begin(), thresholdData.end(),
+ [this](const auto& thresholdInterface) {
+ const auto& interface = thresholdInterface.first;
+ auto objects = SDBusPlus::getSubTreeRaw(this->bus, "/", interface, 0);
+ std::for_each(objects.begin(), objects.end(),
+ [interface, this](const auto& object) {
+ const auto& path = object.first;
+ const auto& service = object.second.begin()->first;
+ checkThresholds(interface, path, service);
});
+ });
}
void ThresholdAlarmLogger::propertiesChanged(sdbusplus::message_t& msg)