clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Ic23653be3ed404980fd0e723d9ed8354e2b32579
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/libipmid/utils.cpp b/libipmid/utils.cpp
index 09b152b..f8e8083 100644
--- a/libipmid/utils.cpp
+++ b/libipmid/utils.cpp
@@ -39,9 +39,9 @@
// Currently mapper doesn't give the readable busname(gives busid) so we can't
// use busname to find the object,will do later once the support is there.
-DbusObjectInfo
- getDbusObject(sdbusplus::bus_t& bus, const std::string& interface,
- const std::string& serviceRoot, const std::string& match)
+DbusObjectInfo getDbusObject(
+ sdbusplus::bus_t& bus, const std::string& interface,
+ const std::string& serviceRoot, const std::string& match)
{
std::vector<DbusInterface> interfaces;
interfaces.emplace_back(interface);
@@ -230,9 +230,9 @@
return objectTree;
}
-ipmi::ObjectTree
- getAllDbusObjects(sdbusplus::bus_t& bus, const std::string& serviceRoot,
- const std::string& interface, const std::string& match)
+ipmi::ObjectTree getAllDbusObjects(
+ sdbusplus::bus_t& bus, const std::string& serviceRoot,
+ const std::string& interface, const std::string& match)
{
std::vector<std::string> interfaces;
interfaces.emplace_back(interface);
@@ -325,9 +325,9 @@
/********* Begin co-routine yielding alternatives ***************/
-boost::system::error_code
- getService(Context::ptr ctx, const std::string& intf,
- const std::string& path, std::string& service)
+boost::system::error_code getService(Context::ptr ctx, const std::string& intf,
+ const std::string& path,
+ std::string& service)
{
boost::system::error_code ec;
std::map<std::string, std::vector<std::string>> mapperResponse =
@@ -356,10 +356,10 @@
return ec;
}
-boost::system::error_code
- getDbusObject(Context::ptr ctx, const std::string& interface,
- const std::string& subtreePath, const std::string& match,
- DbusObjectInfo& dbusObject)
+boost::system::error_code getDbusObject(
+ Context::ptr ctx, const std::string& interface,
+ const std::string& subtreePath, const std::string& match,
+ DbusObjectInfo& dbusObject)
{
std::vector<DbusInterface> interfaces;
interfaces.emplace_back(interface);
@@ -426,10 +426,10 @@
return ec;
}
-boost::system::error_code
- setDbusProperty(Context::ptr ctx, const std::string& service,
- const std::string& objPath, const std::string& interface,
- const std::string& property, const Value& value)
+boost::system::error_code setDbusProperty(
+ Context::ptr ctx, const std::string& service, const std::string& objPath,
+ const std::string& interface, const std::string& property,
+ const Value& value)
{
boost::system::error_code ec;
ctx->bus->yield_method_call(ctx->yield, ec, service.c_str(),
@@ -438,10 +438,10 @@
return ec;
}
-boost::system::error_code
- getAllDbusObjects(Context::ptr ctx, const std::string& serviceRoot,
- const std::string& interface, const std::string& match,
- ObjectTree& objectTree)
+boost::system::error_code getAllDbusObjects(
+ Context::ptr ctx, const std::string& serviceRoot,
+ const std::string& interface, const std::string& match,
+ ObjectTree& objectTree)
{
std::vector<std::string> interfaces;
interfaces.emplace_back(interface);
@@ -469,9 +469,9 @@
return ec;
}
-boost::system::error_code
- deleteAllDbusObjects(Context::ptr ctx, const std::string& serviceRoot,
- const std::string& interface, const std::string& match)
+boost::system::error_code deleteAllDbusObjects(
+ Context::ptr ctx, const std::string& serviceRoot,
+ const std::string& interface, const std::string& match)
{
ObjectTree objectTree;
boost::system::error_code ec =
@@ -500,9 +500,9 @@
return ec;
}
-boost::system::error_code
- getManagedObjects(Context::ptr ctx, const std::string& service,
- const std::string& objPath, ObjectValueTree& objects)
+boost::system::error_code getManagedObjects(
+ Context::ptr ctx, const std::string& service, const std::string& objPath,
+ ObjectValueTree& objects)
{
boost::system::error_code ec;
objects = ctx->bus->yield_method_call<ipmi::ObjectValueTree>(
@@ -511,9 +511,9 @@
return ec;
}
-boost::system::error_code
- getAllAncestors(Context::ptr ctx, const std::string& path,
- const InterfaceList& interfaces, ObjectTree& objectTree)
+boost::system::error_code getAllAncestors(
+ Context::ptr ctx, const std::string& path, const InterfaceList& interfaces,
+ ObjectTree& objectTree)
{
std::string interfaceList = convertToString(interfaces);