Add clang-format
Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Id0fcac058234d99d1a82673a217f30d58c616b2f
diff --git a/chassiskill.cpp b/chassiskill.cpp
index a051f90..ba694c9 100644
--- a/chassiskill.cpp
+++ b/chassiskill.cpp
@@ -1,11 +1,12 @@
#include "utility.hpp"
+#include <nlohmann/json.hpp>
+#include <phosphor-logging/log.hpp>
+
#include <algorithm>
#include <cstring>
#include <experimental/filesystem>
#include <fstream>
-#include <nlohmann/json.hpp>
-#include <phosphor-logging/log.hpp>
using json = nlohmann::json;
using namespace phosphor::logging;
@@ -50,10 +51,10 @@
for (const auto& gpio : gpios)
{
- auto gpioEntry = std::find_if(defs.begin(), defs.end(),
- [&gpio](const auto& g) {
- return g["name"] == gpio["name"];
- });
+ auto gpioEntry =
+ std::find_if(defs.begin(), defs.end(), [&gpio](const auto& g) {
+ return g["name"] == gpio["name"];
+ });
if (gpioEntry != defs.end())
{