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/ibm_vpd_utils.hpp b/ibm_vpd_utils.hpp
index 03015d1..5f0f9e7 100644
--- a/ibm_vpd_utils.hpp
+++ b/ibm_vpd_utils.hpp
@@ -139,9 +139,9 @@
try
{
auto bus = sdbusplus::bus::new_default();
- auto properties = bus.new_method_call(service.c_str(), object.c_str(),
- "org.freedesktop.DBus.Properties",
- "Get");
+ auto properties =
+ bus.new_method_call(service.c_str(), object.c_str(),
+ "org.freedesktop.DBus.Properties", "Get");
properties.append(inf);
properties.append(prop);
auto result = bus.call(properties);
@@ -383,10 +383,9 @@
* @param[in] bindOrUnbind - either bind or unbind
* @returns Command to bind or unbind the driver.
*/
-inline std::string createBindUnbindDriverCmnd(const std::string& devNameAddr,
- const std::string& busType,
- const std::string& driverType,
- const std::string& bindOrUnbind)
+inline std::string createBindUnbindDriverCmnd(
+ const std::string& devNameAddr, const std::string& busType,
+ const std::string& driverType, const std::string& bindOrUnbind)
{
return ("echo " + devNameAddr + " > /sys/bus/" + busType + "/drivers/" +
driverType + "/" + bindOrUnbind);
@@ -487,9 +486,9 @@
try
{
auto bus = sdbusplus::bus::new_default();
- auto method = bus.new_method_call(service.c_str(), object.c_str(),
- "org.freedesktop.DBus.Properties",
- "Set");
+ auto method =
+ bus.new_method_call(service.c_str(), object.c_str(),
+ "org.freedesktop.DBus.Properties", "Set");
method.append(interface);
method.append(propertyName);
method.append(propertyValue);