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: Id2036ab746164981596b3ee36259f3ca5d3f1334
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/chassiscommands.cpp b/src/chassiscommands.cpp
index 8a40017..8e5c836 100644
--- a/src/chassiscommands.cpp
+++ b/src/chassiscommands.cpp
@@ -97,8 +97,8 @@
try
{
std::string service = LEDService.getService(*bus);
- ipmi::Value enabled = getDbusProperty(*bus, service, objName,
- ledInterface, ledProp);
+ ipmi::Value enabled =
+ getDbusProperty(*bus, service, objName, ledInterface, ledProp);
state = std::get<bool>(enabled);
}
catch (const sdbusplus::exception_t& e)
@@ -227,8 +227,8 @@
try
{
- auto service = ipmi::getService(*busp, powerRestoreIntf,
- powerRestorePath);
+ auto service =
+ ipmi::getService(*busp, powerRestoreIntf, powerRestorePath);
ipmi::Value result =
ipmi::getDbusProperty(*busp, service, powerRestorePath,
@@ -279,8 +279,8 @@
"/xyz/openbmc_project/state/chassis0";
constexpr const char* chassisStateIntf =
"xyz.openbmc_project.State.Chassis";
- auto service = ipmi::getService(*busp, chassisStateIntf,
- chassisStatePath);
+ auto service =
+ ipmi::getService(*busp, chassisStateIntf, chassisStatePath);
ipmi::Value variant =
ipmi::getDbusProperty(*busp, service, chassisStatePath,
@@ -377,8 +377,8 @@
"xyz.openbmc_project.Control.Host.RestartCause";
std::string service;
- boost::system::error_code ec = ipmi::getService(ctx, restartCauseIntf,
- restartCausePath, service);
+ boost::system::error_code ec =
+ ipmi::getService(ctx, restartCauseIntf, restartCausePath, service);
if (!ec)
{