Update to latest clang-format
Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I1e06864afc29ce7de463e62fa2a0eb6f70e8fd93
diff --git a/sol/sol_context.hpp b/sol/sol_context.hpp
index a071892..34a0076 100644
--- a/sol/sol_context.hpp
+++ b/sol/sol_context.hpp
@@ -5,6 +5,7 @@
#include <boost/asio/io_context.hpp>
#include <boost/asio/steady_timer.hpp>
+
#include <cstddef>
namespace sol
diff --git a/sol/sol_manager.cpp b/sol/sol_manager.cpp
index 76f0bd8..870bc6a 100644
--- a/sol/sol_manager.cpp
+++ b/sol/sol_manager.cpp
@@ -10,12 +10,13 @@
#include <boost/asio/io_context.hpp>
#include <boost/asio/local/stream_protocol.hpp>
#include <boost/asio/write.hpp>
-#include <chrono>
-#include <cmath>
#include <ipmid/utils.hpp>
#include <phosphor-logging/log.hpp>
#include <sdbusplus/message/types.hpp>
+#include <chrono>
+#include <cmath>
+
constexpr const char* solInterface = "xyz.openbmc_project.Ipmi.SOL";
constexpr const char* solPath = "/xyz/openbmc_project/ipmi/sol/";
constexpr const char* PROP_INTF = "org.freedesktop.DBus.Properties";
diff --git a/sol/sol_manager.hpp b/sol/sol_manager.hpp
index 16a47fa..72c13b4 100644
--- a/sol/sol_manager.hpp
+++ b/sol/sol_manager.hpp
@@ -7,6 +7,7 @@
#include <boost/asio/io_context.hpp>
#include <boost/asio/local/stream_protocol.hpp>
+
#include <cstddef>
#include <map>
#include <memory>
@@ -39,8 +40,7 @@
{
private:
struct Private
- {
- };
+ {};
public:
/** @brief SOL Payload Instance is the key for the map, the value is the
@@ -57,8 +57,7 @@
Manager(std::shared_ptr<boost::asio::io_context>& io, const Private&) :
io(io)
- {
- }
+ {}
/**
* @brief Get a reference to the singleton Manager