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/platform-mc/test/terminus_manager_test.cpp b/platform-mc/test/terminus_manager_test.cpp
index 464ef71..432ba21 100644
--- a/platform-mc/test/terminus_manager_test.cpp
+++ b/platform-mc/test/terminus_manager_test.cpp
@@ -266,9 +266,9 @@
reinterpret_cast<pldm_msg*>(setTidResp0.data()), sizeof(setTidResp0));
EXPECT_EQ(rc, PLDM_SUCCESS);
- uint8_t supportedType1Byte = (1 << (PLDM_BASE % 8)) +
- (1 << (PLDM_PLATFORM % 8)) +
- (1 << (PLDM_BIOS % 8)) + (1 << (PLDM_FRU % 8));
+ uint8_t supportedType1Byte =
+ (1 << (PLDM_BASE % 8)) + (1 << (PLDM_PLATFORM % 8)) +
+ (1 << (PLDM_BIOS % 8)) + (1 << (PLDM_FRU % 8));
std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmTypesRespLen>
getPldmTypesResp0{0x00, 0x02, 0x04, 0x00, supportedType1Byte,
0x00, 0x00, 0x00, 0x00, 0x00,
@@ -334,11 +334,11 @@
(1 << (PLDM_GET_PLDM_TYPES % 8)) +
(1 << (PLDM_GET_PLDM_COMMANDS % 8));
std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmCommandRespLen>
- getPldmCommandBaseResp0{0x00, 0x02, 0x05, 0x00, byte0, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00};
+ getPldmCommandBaseResp0{
+ 0x00, 0x02, 0x05, 0x00, byte0, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
rc = mockTerminusManager.enqueueResponse(
reinterpret_cast<pldm_msg*>(getPldmCommandBaseResp0.data()),
sizeof(getPldmCommandBaseResp0));
@@ -391,11 +391,11 @@
byte1 = (0 << (PLDM_GET_BIOS_ATTRIBUTE_CURRENT_VALUE_BY_HANDLE % 8)) +
(1 << (PLDM_GET_DATE_TIME % 8)) + (1 << (PLDM_SET_DATE_TIME % 8));
std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmCommandRespLen>
- getPldmCommandBiosResp0{0x00, 0x02, 0x05, 0x00, byte0, byte1, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+ getPldmCommandBiosResp0{
+ 0x00, 0x02, 0x05, 0x00, byte0, byte1, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
rc = mockTerminusManager.enqueueResponse(
reinterpret_cast<pldm_msg*>(getPldmCommandBiosResp0.data()),
sizeof(getPldmCommandBiosResp0));
@@ -411,11 +411,11 @@
/* byte0 command from 8 to 15 */
byte1 = 0;
std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmCommandRespLen>
- getPldmCommandFruResp0{0x00, 0x02, 0x05, 0x00, byte0, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+ getPldmCommandFruResp0{
+ 0x00, 0x02, 0x05, 0x00, byte0, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
rc = mockTerminusManager.enqueueResponse(
reinterpret_cast<pldm_msg*>(getPldmCommandFruResp0.data()),
sizeof(getPldmCommandFruResp0));