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: I917f3a65c985f3df3bb4d7a1bef0a13da54ab7bd
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/vpd_tool_impl.cpp b/vpd_tool_impl.cpp
index 885cd5e..30f7294 100644
--- a/vpd_tool_impl.cpp
+++ b/vpd_tool_impl.cpp
@@ -118,8 +118,8 @@
uint32_t vpdStartOffset = 0;
vpdVector = getVpdDataInVector(js, vpdPath);
- ParserInterface* parser = ParserFactory::getParser(vpdVector, invPath,
- vpdPath, vpdStartOffset);
+ ParserInterface* parser =
+ ParserFactory::getParser(vpdVector, invPath, vpdPath, vpdStartOffset);
auto parseResult = parser->parse();
ParserFactory::freeParser(parser);
@@ -129,8 +129,8 @@
}
else
{
- std::string err = vpdPath +
- " is not of type IPZ VPD. Unable to parse the VPD.";
+ std::string err =
+ vpdPath + " is not of type IPZ VPD. Unable to parse the VPD.";
throw std::runtime_error(err);
}
}
@@ -552,8 +552,8 @@
}
auto bus = sdbusplus::bus::new_default();
- auto properties = bus.new_method_call(BUSNAME, OBJPATH, IFACE,
- "WriteKeyword");
+ auto properties =
+ bus.new_method_call(BUSNAME, OBJPATH, IFACE, "WriteKeyword");
properties.append(static_cast<sdbusplus::message::object_path>(fruPath));
properties.append(recordName);
properties.append(keyword);
@@ -1332,9 +1332,9 @@
backupValStr = backupValue;
}
- recKwData.push_back(make_tuple(++num, primaryRecord, primaryKeyword,
- backupValStr, primaryValStr,
- mismatch));
+ recKwData.push_back(
+ make_tuple(++num, primaryRecord, primaryKeyword, backupValStr,
+ primaryValStr, mismatch));
std::string splitLine(191, '-');
cout << left << setw(6) << static_cast<int>(num) << left << setw(8)