summaryrefslogtreecommitdiffstats
path: root/led-main.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-11-01 17:03:22 -0700
committerPatrick Venture <venture@google.com>2018-11-01 17:12:54 -0700
commit91ac8d3aade91fb99f496c05114291fcb6bf1856 (patch)
tree1f8e8f82b1d80739a5e5b335587078d8f0e9fcf6 /led-main.cpp
parent2ff07f3fb6aaa29d7206eff90e2f5610cc859e75 (diff)
downloadphosphor-led-manager-91ac8d3aade91fb99f496c05114291fcb6bf1856.tar.gz
phosphor-led-manager-91ac8d3aade91fb99f496c05114291fcb6bf1856.zip
Add clang-format to repo
Add clang-format to repo. Change-Id: Ib3f81524b66414df3e6c93d8a6df6e22c43841e0 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'led-main.cpp')
-rw-r--r--led-main.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/led-main.cpp b/led-main.cpp
index 4df1a6a..cc0e6cf 100644
--- a/led-main.cpp
+++ b/led-main.cpp
@@ -1,9 +1,11 @@
-#include <iostream>
-#include "ledlayout.hpp"
-#include "manager.hpp"
-#include "group.hpp"
#include "config.h"
+
+#include "group.hpp"
#include "led-gen.hpp"
+#include "ledlayout.hpp"
+#include "manager.hpp"
+
+#include <iostream>
int main(void)
{
@@ -20,17 +22,17 @@ int main(void)
std::vector<std::unique_ptr<phosphor::led::Group>> groups;
/** Now create so many dbus objects as there are groups */
- for (auto &grp: systemLedMap)
+ for (auto& grp : systemLedMap)
{
- groups.emplace_back(std::make_unique<phosphor::led::Group>(
- bus, grp.first, manager));
+ groups.emplace_back(
+ std::make_unique<phosphor::led::Group>(bus, grp.first, manager));
}
/** @brief Claim the bus */
bus.request_name(BUSNAME);
/** @brief Wait for client requests */
- while(true)
+ while (true)
{
/** @brief process dbus calls / signals discarding unhandled */
bus.process_discard();
OpenPOWER on IntegriCloud