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: I299e3888aee418ddcf391a44cd9ba563edabfe83
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/extensions/phal/create_pel.cpp b/extensions/phal/create_pel.cpp
index d3810ef..a61c080 100644
--- a/extensions/phal/create_pel.cpp
+++ b/extensions/phal/create_pel.cpp
@@ -104,11 +104,11 @@
static_cast<uint8_t>(0xCA),
static_cast<uint8_t>(0x01), ffdcFile.getFileFD()));
- std::string service = util::getService(bus, loggingObjectPath,
- loggingInterface);
- auto method = bus.new_method_call(service.c_str(), loggingObjectPath,
- loggingInterface,
- "CreateWithFFDCFiles");
+ std::string service =
+ util::getService(bus, loggingObjectPath, loggingInterface);
+ auto method =
+ bus.new_method_call(service.c_str(), loggingObjectPath,
+ loggingInterface, "CreateWithFFDCFiles");
auto level =
sdbusplus::xyz::openbmc_project::Logging::server::convertForMessage(
severity);
@@ -204,11 +204,11 @@
try
{
- std::string service = util::getService(bus, loggingObjectPath,
- opLoggingInterface);
- auto method = bus.new_method_call(service.c_str(), loggingObjectPath,
- opLoggingInterface,
- "CreatePELWithFFDCFiles");
+ std::string service =
+ util::getService(bus, loggingObjectPath, opLoggingInterface);
+ auto method =
+ bus.new_method_call(service.c_str(), loggingObjectPath,
+ opLoggingInterface, "CreatePELWithFFDCFiles");
auto level =
sdbusplus::xyz::openbmc_project::Logging::server::convertForMessage(
severity);
@@ -224,11 +224,11 @@
}
catch (const sdbusplus::exception_t& e)
{
- log<level::ERR>(std::format("D-Bus call exception",
- "OBJPATH={}, INTERFACE={}, EXCEPTION={}",
- loggingObjectPath, loggingInterface,
- e.what())
- .c_str());
+ log<level::ERR>(
+ std::format("D-Bus call exception",
+ "OBJPATH={}, INTERFACE={}, EXCEPTION={}",
+ loggingObjectPath, loggingInterface, e.what())
+ .c_str());
throw std::runtime_error(
"Error in invoking D-Bus logging create interface");
}
@@ -253,8 +253,8 @@
try
{
- std::string service = util::getService(bus, loggingObjectPath,
- loggingInterface);
+ std::string service =
+ util::getService(bus, loggingObjectPath, loggingInterface);
auto method = bus.new_method_call(service.c_str(), loggingObjectPath,
loggingInterface, "Create");
auto level =
@@ -265,11 +265,11 @@
}
catch (const sdbusplus::exception_t& e)
{
- log<level::ERR>(std::format("sdbusplus D-Bus call exception",
- "OBJPATH={}, INTERFACE={}, EXCEPTION={}",
- loggingObjectPath, loggingInterface,
- e.what())
- .c_str());
+ log<level::ERR>(
+ std::format("sdbusplus D-Bus call exception",
+ "OBJPATH={}, INTERFACE={}, EXCEPTION={}",
+ loggingObjectPath, loggingInterface, e.what())
+ .c_str());
;
throw std::runtime_error(