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: Ic68b91e23738cafe198c50f40e46d4163bda02b6
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/fail-monitor/monitor.cpp b/fail-monitor/monitor.cpp
index 2c3b31d..2c4beb7 100644
--- a/fail-monitor/monitor.cpp
+++ b/fail-monitor/monitor.cpp
@@ -93,8 +93,8 @@
void Monitor::runTargetAction()
{
// Start or stop the target unit
- const auto* methodCall = (action == Action::start) ? startMethod
- : stopMethod;
+ const auto* methodCall =
+ (action == Action::start) ? startMethod : stopMethod;
log<level::INFO>("The source unit is in failed state, "
"running target action",
diff --git a/fail-monitor/monitor.hpp b/fail-monitor/monitor.hpp
index 9c98fdf..65bb810 100644
--- a/fail-monitor/monitor.hpp
+++ b/fail-monitor/monitor.hpp
@@ -49,8 +49,8 @@
*/
Monitor(const std::string& sourceUnit, const std::string& targetUnit,
Action action) :
- bus(sdbusplus::bus::new_default()),
- source(sourceUnit), target(targetUnit), action(action)
+ bus(sdbusplus::bus::new_default()), source(sourceUnit),
+ target(targetUnit), action(action)
{}
/**