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: I94e2bfdc8fae9bc14e30c701a0e622709ee9b0fe
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/pldm.cpp b/pldm.cpp
index b573d66..67847c8 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -315,10 +315,9 @@
     }
 }
 
-void Interface::fetchEffecterInfo(uint16_t stateSetId,
-                                  InstanceToEffecter& instanceToEffecterMap,
-                                  CompositeEffecterCount& effecterCount,
-                                  uint8_t& stateIdPos)
+void Interface::fetchEffecterInfo(
+    uint16_t stateSetId, InstanceToEffecter& instanceToEffecterMap,
+    CompositeEffecterCount& effecterCount, uint8_t& stateIdPos)
 {
     PdrList pdrs{};
 
@@ -390,10 +389,9 @@
     }
 }
 
-std::vector<uint8_t>
-    Interface::prepareSetEffecterReq(EffecterID effecterId,
-                                     CompositeEffecterCount effecterCount,
-                                     uint8_t stateIdPos, uint8_t stateSetValue)
+std::vector<uint8_t> Interface::prepareSetEffecterReq(
+    EffecterID effecterId, CompositeEffecterCount effecterCount,
+    uint8_t stateIdPos, uint8_t stateSetValue)
 {
     if (!getPldmInstanceId())
     {
@@ -860,8 +858,8 @@
     pldmIface->pldmInstanceID = std::nullopt;
 
     // Set pointer to autodelete
-    std::unique_ptr<uint8_t, decltype(std::free)*> responseMsgPtr{responseMsg,
-                                                                  std::free};
+    std::unique_ptr<uint8_t, decltype(std::free)*> responseMsgPtr{
+        responseMsg, std::free};
 
     auto response = reinterpret_cast<pldm_msg*>(responseMsgPtr.get());
     if (response->payload[0] != PLDM_SUCCESS)
@@ -945,8 +943,8 @@
     return 0;
 };
 
-std::vector<uint8_t> Interface::encodeGetStateSensorRequest(uint8_t instance,
-                                                            uint16_t sensorId)
+std::vector<uint8_t>
+    Interface::encodeGetStateSensorRequest(uint8_t instance, uint16_t sensorId)
 {
     if (!getPldmInstanceId())
     {
@@ -956,8 +954,8 @@
     }
 
     bitfield8_t sRearm = {0};
-    const size_t msgSize = sizeof(pldm_msg_hdr) +
-                           PLDM_GET_STATE_SENSOR_READINGS_REQ_BYTES;
+    const size_t msgSize =
+        sizeof(pldm_msg_hdr) + PLDM_GET_STATE_SENSOR_READINGS_REQ_BYTES;
     std::vector<uint8_t> request(msgSize);
 
     auto msg = reinterpret_cast<pldm_msg*>(request.data());