clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I61b093f75011417cc9c7acf9605200f4fa429bac
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/pldmtool/pldm_bios_cmd.cpp b/pldmtool/pldm_bios_cmd.cpp
index bea7690..7c0adc5 100644
--- a/pldmtool/pldm_bios_cmd.cpp
+++ b/pldmtool/pldm_bios_cmd.cpp
@@ -60,9 +60,9 @@
uint8_t seconds, minutes, hours, day, month;
uint16_t year;
- auto rc =
- decode_get_date_time_resp(responsePtr, payloadLength, &cc, &seconds,
- &minutes, &hours, &day, &month, &year);
+ auto rc = decode_get_date_time_resp(responsePtr, payloadLength, &cc,
+ &seconds, &minutes, &hours, &day,
+ &month, &year);
if (rc != PLDM_SUCCESS || cc != PLDM_SUCCESS)
{
std::cerr << "Response Message Error: "
@@ -191,8 +191,7 @@
return {PLDM_ERROR, {}};
}
- void parseResponseMsg(pldm_msg*, size_t) override
- {}
+ void parseResponseMsg(pldm_msg*, size_t) override {}
std::optional<Table> getBIOSTable(pldm_bios_table_types tableType)
{
@@ -786,8 +785,8 @@
return;
}
- auto attrEntry =
- findAttrEntryByName(attrName, *attrTable, *stringTable);
+ auto attrEntry = findAttrEntryByName(attrName, *attrTable,
+ *stringTable);
if (attrEntry == nullptr)
{
std::cout << "Could not find attribute :" << attrName << std::endl;
@@ -929,8 +928,8 @@
commands.push_back(
std::make_unique<GetDateTime>("bios", "GetDateTime", getDateTime));
- auto setDateTime =
- bios->add_subcommand("SetDateTime", "set host date time");
+ auto setDateTime = bios->add_subcommand("SetDateTime",
+ "set host date time");
commands.push_back(
std::make_unique<SetDateTime>("bios", "setDateTime", setDateTime));