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/oem/ibm/pldm_oem_ibm.cpp b/pldmtool/oem/ibm/pldm_oem_ibm.cpp
index a5eb71a..cdaa2d5 100644
--- a/pldmtool/oem/ibm/pldm_oem_ibm.cpp
+++ b/pldmtool/oem/ibm/pldm_oem_ibm.cpp
@@ -108,8 +108,7 @@
return {PLDM_ERROR, {}};
}
- void parseResponseMsg(pldm_msg*, size_t) override
- {}
+ void parseResponseMsg(pldm_msg*, size_t) override {}
void exec()
{
std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) +
@@ -182,7 +181,7 @@
startptr += sizeof(filetableData->file_name_length);
fdata["FileName"] = (std::string(
- reinterpret_cast<char const*>(startptr), nameLength));
+ reinterpret_cast<const char*>(startptr), nameLength));
startptr += nameLength;
auto fileSize = *(reinterpret_cast<uint32_t*>(startptr));
@@ -209,8 +208,8 @@
commands.push_back(std::make_unique<GetAlertStatus>(
"oem_ibm", "getAlertStatus", getAlertStatus));
- auto getFileTable =
- oem_ibm->add_subcommand("GetFileTable", "get file table");
+ auto getFileTable = oem_ibm->add_subcommand("GetFileTable",
+ "get file table");
commands.push_back(std::make_unique<GetFileTable>("oem_ibm", "getFileTable",
getFileTable));