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/libpldmresponder/test/libpldmresponder_bios_config_test.cpp b/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
index ea29015..9b4f74e 100644
--- a/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
@@ -98,25 +98,26 @@
EXPECT_TRUE(attrTable);
EXPECT_TRUE(attrValueTable);
- std::set<std::string> expectedStrings = {"HMCManagedState",
- "On",
- "Off",
- "FWBootSide",
- "Perm",
- "Temp",
- "InbandCodeUpdate",
- "Allowed",
- "Allowed",
- "NotAllowed",
- "CodeUpdatePolicy",
- "Concurrent",
- "Disruptive",
- "VDD_AVSBUS_RAIL",
- "SBE_IMAGE_MINIMUM_VALID_ECS",
- "INTEGER_INVALID_CASE",
- "str_example1",
- "str_example2",
- "str_example3"};
+ std::set<std::string> expectedStrings = {
+ "HMCManagedState",
+ "On",
+ "Off",
+ "FWBootSide",
+ "Perm",
+ "Temp",
+ "InbandCodeUpdate",
+ "Allowed",
+ "Allowed",
+ "NotAllowed",
+ "CodeUpdatePolicy",
+ "Concurrent",
+ "Disruptive",
+ "VDD_AVSBUS_RAIL",
+ "SBE_IMAGE_MINIMUM_VALID_ECS",
+ "INTEGER_INVALID_CASE",
+ "str_example1",
+ "str_example2",
+ "str_example3"};
std::set<std::string> strings;
for (auto entry : BIOSTableIter<PLDM_BIOS_STRING_TABLE>(
stringTable->data(), stringTable->size()))
@@ -206,8 +207,8 @@
attrValueTable->data(), attrValueTable->size()))
{
auto header = table::attribute_value::decodeHeader(entry);
- auto attrEntry = table::attribute::findByHandle(*attrTable,
- header.attrHandle);
+ auto attrEntry =
+ table::attribute::findByHandle(*attrTable, header.attrHandle);
auto attrHeader = table::attribute::decodeHeader(attrEntry);
auto attrName = biosStringTable.findString(attrHeader.stringHandle);
auto jsonEntry = findJsonEntry(attrName);
@@ -368,9 +369,8 @@
EXPECT_EQ(rc, PLDM_SUCCESS);
auto attrValueTable = biosConfig.getBIOSTable(PLDM_BIOS_ATTR_VAL_TABLE);
- auto findEntry =
- [&attrValueTable](
- uint16_t handle) -> const pldm_bios_attr_val_table_entry* {
+ auto findEntry = [&attrValueTable](uint16_t handle)
+ -> const pldm_bios_attr_val_table_entry* {
for (auto entry : BIOSTableIter<PLDM_BIOS_ATTR_VAL_TABLE>(
attrValueTable->data(), attrValueTable->size()))
{