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: I0f105c3310e87172c65a09a8787a2db5a4041cc0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dbus/dbuswrite.cpp b/dbus/dbuswrite.cpp
index 9531546..baae941 100644
--- a/dbus/dbuswrite.cpp
+++ b/dbus/dbuswrite.cpp
@@ -78,9 +78,9 @@
}
}
auto writeBus = sdbusplus::bus::new_default();
- auto mesg = writeBus.new_method_call(connectionName.c_str(), path.c_str(),
- "org.freedesktop.DBus.Properties",
- "Set");
+ auto mesg =
+ writeBus.new_method_call(connectionName.c_str(), path.c_str(),
+ "org.freedesktop.DBus.Properties", "Set");
mesg.append(pwmInterface, "Target",
std::variant<uint64_t>(static_cast<uint64_t>(ovalue)));
@@ -103,10 +103,9 @@
return;
}
-std::unique_ptr<WriteInterface>
- DbusWrite::createDbusWrite(const std::string& path, int64_t min,
- int64_t max,
- std::unique_ptr<DbusHelperInterface> helper)
+std::unique_ptr<WriteInterface> DbusWrite::createDbusWrite(
+ const std::string& path, int64_t min, int64_t max,
+ std::unique_ptr<DbusHelperInterface> helper)
{
std::string connectionName;
@@ -141,9 +140,9 @@
}
}
auto writeBus = sdbusplus::bus::new_default();
- auto mesg = writeBus.new_method_call(connectionName.c_str(), path.c_str(),
- "org.freedesktop.DBus.Properties",
- "Set");
+ auto mesg =
+ writeBus.new_method_call(connectionName.c_str(), path.c_str(),
+ "org.freedesktop.DBus.Properties", "Set");
mesg.append(pwmInterface, "Target",
std::variant<uint64_t>(static_cast<uint64_t>(value)));