Add clang-format to repo
Add clang-format to repo.
Change-Id: Ib3f81524b66414df3e6c93d8a6df6e22c43841e0
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/group.cpp b/group.cpp
index 6c0f06a..0d4fa10 100644
--- a/group.cpp
+++ b/group.cpp
@@ -1,5 +1,6 @@
-#include <sdbusplus/message.hpp>
#include "group.hpp"
+
+#include <sdbusplus/message.hpp>
namespace phosphor
{
namespace led
@@ -9,14 +10,13 @@
bool Group::asserted(bool value)
{
// Introducing these to enable gtest.
- Manager::group ledsAssert {};
- Manager::group ledsDeAssert {};
+ Manager::group ledsAssert{};
+ Manager::group ledsDeAssert{};
// Group management is handled by Manager. The populated leds* sets are not
// really used by production code. They are there to enable gtest for
// validation.
- auto result = manager.setGroupState(path, value, ledsAssert,
- ledsDeAssert);
+ auto result = manager.setGroupState(path, value, ledsAssert, ledsDeAssert);
// If something does not go right here, then there should be an sdbusplus
// exception thrown.
@@ -24,8 +24,8 @@
// Set the base class's asserted to 'true' since the getter
// operation is handled there.
- return sdbusplus::xyz::openbmc_project::Led::server::
- Group::asserted(result);
+ return sdbusplus::xyz::openbmc_project::Led::server::Group::asserted(
+ result);
}
} // namespace led