clang-format: re-format for clang-19
clang-format-19 isn't compatible with the clang-format-18 output, so we
need to reformat the code with the latest version. A few parameters
in clang-tidy have been deprecated, so adjust the style file
accordingly.
See Ie2f6eb3b043f2d655c9df806815afd7971fd0947 for updated style.
See I88192b41ab7a95599a90915013579608af7bc56f for clang-19 enablement.
Change-Id: I32c52522ee18311ac09500950f82832102ccb5c0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/include/libcper/sections/cper-section-firmware.h b/include/libcper/sections/cper-section-firmware.h
index ea1e19a..8f7f0e9 100644
--- a/include/libcper/sections/cper-section-firmware.h
+++ b/include/libcper/sections/cper-section-firmware.h
@@ -8,18 +8,11 @@
#include <json.h>
#include <libcper/Cper.h>
-#define FIRMWARE_ERROR_RECORD_TYPES_KEYS \
- (int[]) \
- { \
- 0, 1, 2 \
- }
+#define FIRMWARE_ERROR_RECORD_TYPES_KEYS (int[]){ 0, 1, 2 }
#define FIRMWARE_ERROR_RECORD_TYPES_VALUES \
- (const char *[]) \
- { \
- "IPF SAL Error Record", \
- "SOC Firmware Error Record (Type1 Legacy)", \
- "SOC Firmware Error Record (Type2)" \
- }
+ (const char *[]){ "IPF SAL Error Record", \
+ "SOC Firmware Error Record (Type1 Legacy)", \
+ "SOC Firmware Error Record (Type2)" }
json_object *cper_section_firmware_to_ir(void *section);
void ir_section_firmware_to_cper(json_object *section, FILE *out);