clang-format: update latest spec and reformat with clang-21
Copy the latest format file from the docs repository and apply using
clang-format-21.
See I795e88ada8e676c242b5a18888ce9c08afdedc93 for clang-21 enablement.
Change-Id: Ie541f039aa995c7cd7654ae28ece19884595eb32
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/tests/dsp/platform.cpp b/tests/dsp/platform.cpp
index 3b202f1..1760bcb 100644
--- a/tests/dsp/platform.cpp
+++ b/tests/dsp/platform.cpp
@@ -6234,6 +6234,7 @@
int rc;
std::vector<uint8_t> pdr1{
// Common PDR Header
+ // clang-format off
0x01, 0x0, 0x0, 0x0, // Record Handle
0x01, // PDR Header Version
PLDM_FILE_DESCRIPTOR_PDR, // PDRType
@@ -6256,6 +6257,7 @@
0x06, // File Name Length = 6
0x46, 0x69, 0x6C, 0x65, 0x31,
0x00, // File Name = "File1\NULL"
+ // clang-format on
};
struct pldm_platform_file_descriptor_pdr decodedPdr = {};
@@ -6277,6 +6279,7 @@
std::vector<uint8_t> pdr1{
// Common PDR Header
+ // clang-format off
0x01, 0x0, 0x0, 0x0, // Record Handle
0x01, // PDR Header Version
PLDM_FILE_DESCRIPTOR_PDR, // PDRType
@@ -6299,6 +6302,7 @@
0x06, // File Name Length = 6
0x46, 0x69, 0x6C, 0x65, 0x31,
0x00, // File Name = "File1\NULL"
+ // clang-format on
};
struct pldm_platform_file_descriptor_pdr decodedPdr = {};
@@ -6317,6 +6321,7 @@
/*Un-matched File Name Length*/
std::vector<uint8_t> pdr1{
// Common PDR Header
+ // clang-format off
0x01, 0x0, 0x0, 0x0, // Record Handle
0x01, // PDR Header Version
PLDM_FILE_DESCRIPTOR_PDR, // PDRType
@@ -6339,6 +6344,7 @@
0x05, // File Name Length = 5
0x46, 0x69, 0x6C, 0x65, 0x31,
0x00, // File Name = "File1\NULL"
+ // clang-format on
};
struct pldm_platform_file_descriptor_pdr decodedPdr = {};