clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I8d0072c279e4de87dc001190845d0ca6da233345
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/command_table.cpp b/command_table.cpp
index ee5fefc..c0e655a 100644
--- a/command_table.cpp
+++ b/command_table.cpp
@@ -79,25 +79,25 @@
bus->async_method_call(
[handler, this](const boost::system::error_code& ec,
const IpmiDbusRspType& response) {
- if (!ec)
- {
- const uint8_t& cc = std::get<3>(response);
- const std::vector<uint8_t>& responseData =
- std::get<4>(response);
- std::vector<uint8_t> payload;
- payload.reserve(1 + responseData.size());
- payload.push_back(cc);
- payload.insert(payload.end(), responseData.begin(),
- responseData.end());
- handler->outPayload = std::move(payload);
- }
- else
- {
- std::vector<uint8_t> payload;
- payload.push_back(IPMI_CC_UNSPECIFIED_ERROR);
- handler->outPayload = std::move(payload);
- }
- },
+ if (!ec)
+ {
+ const uint8_t& cc = std::get<3>(response);
+ const std::vector<uint8_t>& responseData =
+ std::get<4>(response);
+ std::vector<uint8_t> payload;
+ payload.reserve(1 + responseData.size());
+ payload.push_back(cc);
+ payload.insert(payload.end(), responseData.begin(),
+ responseData.end());
+ handler->outPayload = std::move(payload);
+ }
+ else
+ {
+ std::vector<uint8_t> payload;
+ payload.push_back(IPMI_CC_UNSPECIFIED_ERROR);
+ handler->outPayload = std::move(payload);
+ }
+ },
"xyz.openbmc_project.Ipmi.Host", "/xyz/openbmc_project/Ipmi",
"xyz.openbmc_project.Ipmi.Server", "execute", netFn, lun, cmd,
commandData, options);
@@ -119,8 +119,8 @@
}
}
- handler->outPayload = iterator->second->executeCommand(commandData,
- handler);
+ handler->outPayload =
+ iterator->second->executeCommand(commandData, handler);
auto end = std::chrono::steady_clock::now();