clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0.
This .clang-format matches the example one in
https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting
Change-Id: Ic2c462525eb27b8295c2b298871e04268d93faf2
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/utils.hpp b/utils.hpp
index ac71fba..efcd50c 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -2,11 +2,10 @@
#include "types.hpp"
+#include <fstream>
#include <phosphor-logging/log.hpp>
#include <sdbusplus/bus.hpp>
-#include <fstream>
-
namespace phosphor
{
namespace time
@@ -60,16 +59,11 @@
* @return The value of the property
*/
template <typename T>
-T getProperty(sdbusplus::bus::bus& bus,
- const char* service,
- const char* path,
- const char* interface,
- const char* propertyName)
+T getProperty(sdbusplus::bus::bus& bus, const char* service, const char* path,
+ const char* interface, const char* propertyName)
{
- auto method = bus.new_method_call(service,
- path,
- "org.freedesktop.DBus.Properties",
- "Get");
+ auto method = bus.new_method_call(service, path,
+ "org.freedesktop.DBus.Properties", "Get");
method.append(interface, propertyName);
try
{
@@ -80,8 +74,7 @@
}
catch (const sdbusplus::exception::SdBusError& ex)
{
- log<level::ERR>("GetProperty call failed",
- entry("PATH=%s", path),
+ log<level::ERR>("GetProperty call failed", entry("PATH=%s", path),
entry("INTERFACE=%s", interface),
entry("PROPERTY=%s", propertyName));
throw std::runtime_error("GetProperty call failed");
@@ -96,8 +89,7 @@
*
* @return The name of the service
*/
-std::string getService(sdbusplus::bus::bus& bus,
- const char* path,
+std::string getService(sdbusplus::bus::bus& bus, const char* path,
const char* interface);
/** @brief Convert a string to enum Mode