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: I47f3c815913ae34be19ce0d823fa233ed698d1a0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/utils.cpp b/utils.cpp
index 7b20ee1..70e40b7 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -37,9 +37,8 @@
}
// Get all properties
-const PropertyMap
- DBusHandler::getAllProperties(const std::string& objectPath,
- const std::string& interface) const
+const PropertyMap DBusHandler::getAllProperties(
+ const std::string& objectPath, const std::string& interface) const
{
PropertyMap properties;
@@ -61,10 +60,9 @@
}
// Get the property name
-const PropertyValue
- DBusHandler::getProperty(const std::string& objectPath,
- const std::string& interface,
- const std::string& propertyName) const
+const PropertyValue DBusHandler::getProperty(
+ const std::string& objectPath, const std::string& interface,
+ const std::string& propertyName) const
{
PropertyValue value{};
@@ -86,10 +84,9 @@
}
// Set property
-void DBusHandler::setProperty(const std::string& objectPath,
- const std::string& interface,
- const std::string& propertyName,
- const PropertyValue& value) const
+void DBusHandler::setProperty(
+ const std::string& objectPath, const std::string& interface,
+ const std::string& propertyName, const PropertyValue& value) const
{
auto& bus = DBusHandler::getBus();
auto service = getService(objectPath, interface);
@@ -105,9 +102,8 @@
bus.call_noreply(method);
}
-const std::vector<std::string>
- DBusHandler::getSubTreePaths(const std::string& objectPath,
- const std::string& interface)
+const std::vector<std::string> DBusHandler::getSubTreePaths(
+ const std::string& objectPath, const std::string& interface)
{
std::vector<std::string> paths;