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-manager/reader_impl.cpp b/vpd-manager/reader_impl.cpp
index 92f6a91..e4f2d8b 100644
--- a/vpd-manager/reader_impl.cpp
+++ b/vpd-manager/reader_impl.cpp
@@ -80,10 +80,9 @@
return expandedLocationCode;
}
-ListOfPaths
- ReaderImpl::getFrusAtLocation(const LocationCode& locationCode,
- const NodeNumber& nodeNumber,
- const LocationCodeMap& frusLocationCode) const
+ListOfPaths ReaderImpl::getFrusAtLocation(
+ const LocationCode& locationCode, const NodeNumber& nodeNumber,
+ const LocationCodeMap& frusLocationCode) const
{
// unused at this moment, to avoid compilation warning
(void)nodeNumber;
@@ -113,8 +112,8 @@
for_each(range.first, range.second,
[&inventoryPaths](
const inventory::LocationCodeMap::value_type& mappedItem) {
- inventoryPaths.push_back(INVENTORY_PATH + mappedItem.second);
- });
+ inventoryPaths.push_back(INVENTORY_PATH + mappedItem.second);
+ });
return inventoryPaths;
}
@@ -189,8 +188,8 @@
{
std::string tm{};
// read TM kwd value
- tm = utilObj.readBusProperty(SYSTEM_OBJECT, "com.ibm.ipzvpd.VSYS",
- "TM");
+ tm =
+ utilObj.readBusProperty(SYSTEM_OBJECT, "com.ibm.ipzvpd.VSYS", "TM");
;
// check if the substr matches to TM kwd