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: I8c84201cb2343a8c8a5507a49de0721a1bee7063
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/oem/ibm/host-bmc/host_lamp_test.cpp b/oem/ibm/host-bmc/host_lamp_test.cpp
index 57f9610..e7485d8 100644
--- a/oem/ibm/host-bmc/host_lamp_test.cpp
+++ b/oem/ibm/host-bmc/host_lamp_test.cpp
@@ -111,9 +111,9 @@
constexpr uint8_t effecterCount = 1;
auto instanceId = instanceIdDb.next(mctp_eid);
- std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + sizeof(effecterID) +
- sizeof(effecterCount) +
- sizeof(set_effecter_state_field));
+ std::vector<uint8_t> requestMsg(
+ sizeof(pldm_msg_hdr) + sizeof(effecterID) + sizeof(effecterCount) +
+ sizeof(set_effecter_state_field));
auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
set_effecter_state_field stateField{PLDM_REQUEST_SET,
PLDM_STATE_SET_IDENTIFY_STATE_ASSERTED};
@@ -127,8 +127,9 @@
return rc;
}
- auto setStateEffecterStatesResponseHandler =
- [](mctp_eid_t /*eid*/, const pldm_msg* response, size_t respMsgLen) {
+ auto setStateEffecterStatesResponseHandler = [](mctp_eid_t /*eid*/,
+ const pldm_msg* response,
+ size_t respMsgLen) {
if (!response || !respMsgLen)
{
error(
diff --git a/oem/ibm/host-bmc/host_lamp_test.hpp b/oem/ibm/host-bmc/host_lamp_test.hpp
index 67e5593..f5b1294 100644
--- a/oem/ibm/host-bmc/host_lamp_test.hpp
+++ b/oem/ibm/host-bmc/host_lamp_test.hpp
@@ -55,9 +55,8 @@
uint8_t mctp_eid, pldm::InstanceIdDb& instanceIdDb,
pldm_pdr* repo,
pldm::requester::Handler<pldm::requester::Request>* handler) :
- LEDGroupObj(bus, objPath.c_str()),
- path(objPath), mctp_eid(mctp_eid), instanceIdDb(instanceIdDb),
- pdrRepo(repo), handler(handler)
+ LEDGroupObj(bus, objPath.c_str()), path(objPath), mctp_eid(mctp_eid),
+ instanceIdDb(instanceIdDb), pdrRepo(repo), handler(handler)
{}
/** @brief Property SET Override function