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: I21d2ca8065f24fd73509229c517f5caf48934b60
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/extensions/openpower-pels/dbus_watcher.hpp b/extensions/openpower-pels/dbus_watcher.hpp
index fdf71e0..3917e19 100644
--- a/extensions/openpower-pels/dbus_watcher.hpp
+++ b/extensions/openpower-pels/dbus_watcher.hpp
@@ -100,8 +100,7 @@
const std::string& interface,
const std::string& propertyName, const std::string& service,
const DataIface& dataIface, PropertySetFunc func) :
- DBusWatcher(path, interface),
- _name(propertyName), _setFunc(func)
+ DBusWatcher(path, interface), _name(propertyName), _setFunc(func)
{
_matches.emplace_back(
bus, match_rules::propertiesChanged(_path, _interface),
@@ -279,8 +278,7 @@
InterfaceWatcher(sdbusplus::bus_t& bus, const std::string& path,
const std::string& interface, const DataIface& dataIface,
InterfaceSetFunc func) :
- DBusWatcher(path, interface),
- _setFunc(func)
+ DBusWatcher(path, interface), _setFunc(func)
{
_matches.emplace_back(
bus, match_rules::propertiesChanged(_path, _interface),
@@ -314,8 +312,8 @@
auto service = dataIface.getService(_path, _interface);
if (!service.empty())
{
- auto properties = dataIface.getAllProperties(service, _path,
- _interface);
+ auto properties =
+ dataIface.getAllProperties(service, _path, _interface);
_setFunc(properties);
}