Enable clang-tidy and apply fixes
Enable clang-tidy, fix the compile issue and fix the clang-tidy issues.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I6250c6519a725c07b0cd10abe464fda97a2aebd7
diff --git a/command_table.cpp b/command_table.cpp
index c6f7625..9880bc0 100644
--- a/command_table.cpp
+++ b/command_table.cpp
@@ -77,8 +77,8 @@
ipmi::Value(static_cast<uint32_t>(session->getBMCSessionID()))},
};
bus->async_method_call(
- [handler, this](const boost::system::error_code& ec,
- const IpmiDbusRspType& response) {
+ [handler](const boost::system::error_code& ec,
+ const IpmiDbusRspType& response) {
if (!ec)
{
const uint8_t& cc = std::get<3>(response);