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/bios_table.hpp b/libpldmresponder/bios_table.hpp
index 5959c7c..8b5f8bc 100644
--- a/libpldmresponder/bios_table.hpp
+++ b/libpldmresponder/bios_table.hpp
@@ -164,8 +164,8 @@
* @param[in] str - string itself
* @return pointer to the constructed entry
*/
-const pldm_bios_string_table_entry* constructEntry(Table& table,
- const std::string& str);
+const pldm_bios_string_table_entry*
+ constructEntry(Table& table, const std::string& str);
} // namespace string
@@ -193,16 +193,16 @@
* @param[in] handle - attribute handle
* @return Pointer to the attribute table entry
*/
-const pldm_bios_attr_table_entry* findByHandle(const Table& table,
- uint16_t handle);
+const pldm_bios_attr_table_entry*
+ findByHandle(const Table& table, uint16_t handle);
/** @brief Find attribute entry by string handle
* @param[in] table - attribute table
* @param[in] handle - string handle
* @return Pointer to the attribute table entry
*/
-const pldm_bios_attr_table_entry* findByStringHandle(const Table& table,
- uint16_t handle);
+const pldm_bios_attr_table_entry*
+ findByStringHandle(const Table& table, uint16_t handle);
/** @struct StringField
* @brief String field of attribute table
@@ -228,9 +228,8 @@
* @param[in] info - string info
* @return pointer to the constructed entry
*/
-const pldm_bios_attr_table_entry*
- constructStringEntry(Table& table,
- pldm_bios_table_attr_entry_string_info* info);
+const pldm_bios_attr_table_entry* constructStringEntry(
+ Table& table, pldm_bios_table_attr_entry_string_info* info);
/** @struct IntegerField
* @brief Integer field of attribute table
@@ -249,9 +248,8 @@
* @param[in] info - integer info
* @return pointer to the constructed entry
*/
-const pldm_bios_attr_table_entry*
- constructIntegerEntry(Table& table,
- pldm_bios_table_attr_entry_integer_info* info);
+const pldm_bios_attr_table_entry* constructIntegerEntry(
+ Table& table, pldm_bios_table_attr_entry_integer_info* info);
/** @brief decode integer entry of attribute table
* @param[in] entry - Pointer to an attribute table entry
@@ -280,9 +278,8 @@
* @param[in] info - enum info
* @return pointer to the constructed entry
*/
-const pldm_bios_attr_table_entry*
- constructEnumEntry(Table& table,
- pldm_bios_table_attr_entry_enum_info* info);
+const pldm_bios_attr_table_entry* constructEnumEntry(
+ Table& table, pldm_bios_table_attr_entry_enum_info* info);
} // namespace attribute
@@ -343,10 +340,8 @@
* @param[in] value - The integer
* @return Pointer to the constructed entry
*/
-const pldm_bios_attr_val_table_entry* constructIntegerEntry(Table& table,
- uint16_t attrHandle,
- uint8_t attrType,
- uint64_t value);
+const pldm_bios_attr_val_table_entry* constructIntegerEntry(
+ Table& table, uint16_t attrHandle, uint8_t attrType, uint64_t value);
/** @brief Construct enum entry of attribute value table at the end of
* the given table