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: I8d0072c279e4de87dc001190845d0ca6da233345
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/command/guid.cpp b/command/guid.cpp
index a963f02..485d6b6 100644
--- a/command/guid.cpp
+++ b/command/guid.cpp
@@ -78,8 +78,8 @@
ipmi::Value propValue;
try
{
- const auto& [objPath, service] = ipmi::getDbusObject(bus, propInterface,
- subtreePath);
+ const auto& [objPath, service] =
+ ipmi::getDbusObject(bus, propInterface, subtreePath);
// Read UUID property value from bmcObject
// UUID is in RFC4122 format Ex: 61a39523-78f2-11e5-9862-e6402cfc3223
propValue = ipmi::getDbusProperty(bus, service, objPath, propInterface,
@@ -120,28 +120,28 @@
matchPtr = std::make_unique<sdbusplus::bus::match_t>(
bus, propertiesChangedNamespace(subtreePath, propInterface),
[](sdbusplus::message_t& m) {
- try
- {
- std::string iface{};
- std::map<std::string, ipmi::Value> pdict{};
- m.read(iface, pdict);
- if (iface != propInterface)
+ try
{
- return;
+ std::string iface{};
+ std::map<std::string, ipmi::Value> pdict{};
+ m.read(iface, pdict);
+ if (iface != propInterface)
+ {
+ return;
+ }
+ auto guidStr = std::get<std::string>(pdict.at("UUID"));
+ Guid tmpGuid{};
+ rfcToGuid(guidStr, tmpGuid);
+ guid = tmpGuid;
}
- auto guidStr = std::get<std::string>(pdict.at("UUID"));
- Guid tmpGuid{};
- rfcToGuid(guidStr, tmpGuid);
- guid = tmpGuid;
- }
- catch (const std::exception& e)
- {
- // signal contained invalid guid; ignore it
- lg2::error(
- "Failed to parse propertiesChanged signal: {ERROR}",
- "ERROR", e);
- }
- });
+ catch (const std::exception& e)
+ {
+ // signal contained invalid guid; ignore it
+ lg2::error(
+ "Failed to parse propertiesChanged signal: {ERROR}",
+ "ERROR", e);
+ }
+ });
}
catch (const std::exception& e)
{