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: Ifce6b1c3f18e81bdb9e98f04b685e3aa6b69d292
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/oemhandler.cpp b/oemhandler.cpp
index 3f5a151..80ea42e 100644
--- a/oemhandler.cpp
+++ b/oemhandler.cpp
@@ -70,8 +70,8 @@
*/
auto found = std::find_if(invSensors.begin(), invSensors.end(),
[&sensor](const auto& iter) {
- return (iter.second.sensorID == sensor);
- });
+ return (iter.second.sensorID == sensor);
+ });
if (found != invSensors.end())
{
return found->first;
@@ -227,11 +227,9 @@
// function to commit the error log in to long term
// storage. Likely via the ipmi add_sel command.
///////////////////////////////////////////////////////////////////////////////
-ipmi_ret_t ipmi_ibm_oem_partial_esel(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
- ipmi_request_t request,
- ipmi_response_t response,
- ipmi_data_len_t data_len,
- ipmi_context_t context)
+ipmi_ret_t ipmi_ibm_oem_partial_esel(
+ ipmi_netfn_t netfn, ipmi_cmd_t cmd, ipmi_request_t request,
+ ipmi_response_t response, ipmi_data_len_t data_len, ipmi_context_t context)
{
uint8_t* reqptr = (uint8_t*)request;
esel_request_t esel_req;
@@ -319,11 +317,9 @@
// Prepare for FW Update.
// Execute needed commands to prepare the system for a fw update from the host.
-ipmi_ret_t ipmi_ibm_oem_prep_fw_update(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
- ipmi_request_t request,
- ipmi_response_t response,
- ipmi_data_len_t data_len,
- ipmi_context_t context)
+ipmi_ret_t ipmi_ibm_oem_prep_fw_update(
+ ipmi_netfn_t netfn, ipmi_cmd_t cmd, ipmi_request_t request,
+ ipmi_response_t response, ipmi_data_len_t data_len, ipmi_context_t context)
{
ipmi_ret_t ipmi_rc = IPMI_CC_OK;
*data_len = 0;
@@ -360,11 +356,9 @@
return ipmi_rc;
}
-ipmi_ret_t ipmi_ibm_oem_bmc_factory_reset(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
- ipmi_request_t request,
- ipmi_response_t response,
- ipmi_data_len_t data_len,
- ipmi_context_t context)
+ipmi_ret_t ipmi_ibm_oem_bmc_factory_reset(
+ ipmi_netfn_t netfn, ipmi_cmd_t cmd, ipmi_request_t request,
+ ipmi_response_t response, ipmi_data_len_t data_len, ipmi_context_t context)
{
sdbusplus::bus_t bus{ipmid_get_sd_bus_connection()};