add .clang-format
Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/dbus/util.cpp b/dbus/util.cpp
index ffdfe1f..f79bf4f 100644
--- a/dbus/util.cpp
+++ b/dbus/util.cpp
@@ -1,8 +1,8 @@
+#include "dbus/util.hpp"
+
#include <iostream>
#include <set>
-#include "dbus/util.hpp"
-
using Property = std::string;
using Value = sdbusplus::message::variant<int64_t, double, std::string>;
using PropertyMap = std::map<Property, Value>;
@@ -14,11 +14,10 @@
const std::string& intf,
const std::string& path)
{
- auto mapper = bus.new_method_call(
- "xyz.openbmc_project.ObjectMapper",
- "/xyz/openbmc_project/object_mapper",
- "xyz.openbmc_project.ObjectMapper",
- "GetObject");
+ auto mapper =
+ bus.new_method_call("xyz.openbmc_project.ObjectMapper",
+ "/xyz/openbmc_project/object_mapper",
+ "xyz.openbmc_project.ObjectMapper", "GetObject");
mapper.append(path);
mapper.append(std::vector<std::string>({intf}));
@@ -45,10 +44,8 @@
const std::string& path,
struct SensorProperties* prop)
{
- auto pimMsg = bus.new_method_call(service.c_str(),
- path.c_str(),
- propertiesintf.c_str(),
- "GetAll");
+ auto pimMsg = bus.new_method_call(service.c_str(), path.c_str(),
+ propertiesintf.c_str(), "GetAll");
pimMsg.append(sensorintf);
auto valueResponseMsg = bus.call(pimMsg);
@@ -116,7 +113,8 @@
return std::string("type='signal',"
"interface='org.freedesktop.DBus.Properties',"
"member='PropertiesChanged',"
- "path='" + GetSensorPath(type, id) + "'");
+ "path='" +
+ GetSensorPath(type, id) + "'");
}
bool ValidType(const std::string& type)