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: If87740ef153661e338448c9de753cbd61fd164eb
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/health_metric.cpp b/health_metric.cpp
index ad74597..13a5789 100644
--- a/health_metric.cpp
+++ b/health_metric.cpp
@@ -13,8 +13,8 @@
 
 using association_t = std::tuple<std::string, std::string, std::string>;
 
-auto HealthMetric::getPath(MType type, std::string name, SubType subType)
-    -> std::string
+auto HealthMetric::getPath(MType type, std::string name,
+                           SubType subType) -> std::string
 {
     std::string path;
     switch (subType)
@@ -59,8 +59,9 @@
                 static constexpr auto nameDelimiter = "_";
                 auto storageType = name.substr(
                     name.find_last_of(nameDelimiter) + 1, name.length());
-                std::ranges::for_each(storageType,
-                                      [](auto& c) { c = std::tolower(c); });
+                std::ranges::for_each(storageType, [](auto& c) {
+                    c = std::tolower(c);
+                });
                 return std::string(BmcPath) + "/" + PathIntf::storage + "/" +
                        storageType;
             }
@@ -212,8 +213,8 @@
     {
         return true;
     }
-    auto changed = std::abs((value.current - lastNotifiedValue) /
-                            lastNotifiedValue * 100.0);
+    auto changed = std::abs(
+        (value.current - lastNotifiedValue) / lastNotifiedValue * 100.0);
     if (changed >= config.hysteresis)
     {
         lastNotifiedValue = value.current;
@@ -239,8 +240,8 @@
         return;
     }
 
-    double average = (std::accumulate(history.begin(), history.end(), 0.0)) /
-                     history.size();
+    double average =
+        (std::accumulate(history.begin(), history.end(), 0.0)) / history.size();
     value.current = average;
     checkThresholds(value);
 }