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: Ide19264aa5b2b01a5102b4b2a9cf226ba8dec699
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/usb-dbg.cpp b/src/usb-dbg.cpp
index d2f9f05..d47a0a1 100644
--- a/src/usb-dbg.cpp
+++ b/src/usb-dbg.cpp
@@ -57,11 +57,11 @@
try
{
std::shared_ptr<sdbusplus::asio::connection> dbus = getSdBus();
- std::string service = getService(*dbus, ipmi::selector::interface,
- ipmi::selector::path);
- Value variant = getDbusProperty(*dbus, service, ipmi::selector::path,
- ipmi::selector::interface,
- "MaxPosition");
+ std::string service =
+ getService(*dbus, ipmi::selector::interface, ipmi::selector::path);
+ Value variant =
+ getDbusProperty(*dbus, service, ipmi::selector::path,
+ ipmi::selector::interface, "MaxPosition");
maxPosition = std::get<size_t>(variant);
}
catch (const std::exception& e)
@@ -77,8 +77,8 @@
try
{
std::shared_ptr<sdbusplus::asio::connection> dbus = getSdBus();
- std::string service = getService(*dbus, ipmi::selector::interface,
- ipmi::selector::path);
+ std::string service =
+ getService(*dbus, ipmi::selector::interface, ipmi::selector::path);
Value variant = getDbusProperty(*dbus, service, ipmi::selector::path,
ipmi::selector::interface, "Position");
hostPosition = std::get<size_t>(variant);
@@ -516,8 +516,8 @@
{
if (postObj.size() != phase)
{
- std::string nextPhaseStr = "Phase" +
- std::to_string(phase + 1);
+ std::string nextPhaseStr =
+ "Phase" + std::to_string(phase + 1);
postCode = postObj[nextPhaseStr][0][0];
*next = stoul(postCode, nullptr, 16);
*end = 0;
@@ -1007,8 +1007,8 @@
}
// '*': boot flags valid, BIOS has not yet read
- bootOrderPanel.item_str[0] = std::string("Boot Order") +
- ((bootMode & bootValid) ? "*" : "");
+ bootOrderPanel.item_str[0] =
+ std::string("Boot Order") + ((bootMode & bootValid) ? "*" : "");
static const std::unordered_map<uint8_t, const char*>
bootOrderMappingTable = {