clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I152f141a5e8343b92b5ce81d3ca16eec77b5606b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/sdbusplus.hpp b/sdbusplus.hpp
index 759f907..a5fae30 100644
--- a/sdbusplus.hpp
+++ b/sdbusplus.hpp
@@ -34,8 +34,7 @@
class DBusError : public std::runtime_error
{
public:
- explicit DBusError(const std::string& msg) : std::runtime_error(msg)
- {}
+ explicit DBusError(const std::string& msg) : std::runtime_error(msg) {}
};
/**
@@ -109,7 +108,6 @@
*/
class SDBusPlus
{
-
public:
/** @brief Get the bus connection. */
static auto& getBus() __attribute__((pure))
@@ -346,9 +344,9 @@
using namespace std::literals::string_literals;
auto service = getService(bus, path, interface);
- auto msg =
- callMethod(bus, service, path, "org.freedesktop.DBus.Properties"s,
- "Get"s, interface, property);
+ auto msg = callMethod(bus, service, path,
+ "org.freedesktop.DBus.Properties"s, "Get"s,
+ interface, property);
if (msg.is_method_error())
{
throw DBusPropertyError{"DBus get property failed", service, path,
@@ -378,9 +376,9 @@
using namespace std::literals::string_literals;
auto service = getService(bus, path, interface);
- auto msg =
- callMethod(bus, service, path, "org.freedesktop.DBus.Properties"s,
- "Get"s, interface, property);
+ auto msg = callMethod(bus, service, path,
+ "org.freedesktop.DBus.Properties"s, "Get"s,
+ interface, property);
if (msg.is_method_error())
{
throw DBusPropertyError{"DBus get property variant failed", service,