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: I1d204ff0a167c43688f2217e9dee5504c71cd4f0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/attn/attn_logging.cpp b/attn/attn_logging.cpp
index 34f3735..a2ee0e3 100644
--- a/attn/attn_logging.cpp
+++ b/attn/attn_logging.cpp
@@ -71,8 +71,8 @@
* @param i_buffer - raw data (if creating raw dump ffdc entry in log)
* @return vector of FFDCFile objects
*/
-std::vector<util::FFDCFile> createFFDCFiles(char* i_buffer = nullptr,
- size_t i_size = 0)
+std::vector<util::FFDCFile>
+ createFFDCFiles(char* i_buffer = nullptr, size_t i_size = 0)
{
std::vector<util::FFDCFile> files{};
@@ -175,8 +175,8 @@
// The entry with key "Subsystem" does not exist in the additional
// map. Log the error, create failure event, and return.
trace::err("Error the key SrcAscii does not exist in the map.");
- eventAttentionFail((int)AttnSection::attnLogging |
- ATTN_INVALID_KEY);
+ eventAttentionFail(
+ (int)AttnSection::attnLogging | ATTN_INVALID_KEY);
return;
}
@@ -234,8 +234,8 @@
// The entry with key "Subsystem" does not exist in the additional
// map. Log the error, create failure event, and return.
trace::err("Error the key SrcAscii does not exist in the map.");
- eventAttentionFail((int)AttnSection::attnLogging |
- ATTN_INVALID_KEY);
+ eventAttentionFail(
+ (int)AttnSection::attnLogging | ATTN_INVALID_KEY);
return;
}
@@ -405,8 +405,8 @@
// return.
trace::err(
"Error the key Subsystem does not exist in the map.");
- eventAttentionFail((int)AttnSection::attnLogging |
- ATTN_INVALID_KEY);
+ eventAttentionFail(
+ (int)AttnSection::attnLogging | ATTN_INVALID_KEY);
return 0;
}
@@ -456,8 +456,8 @@
// The entry with key "Subsystem" does not exist in the additional
// map. Log the error, create failure event, and return.
trace::err("Error the key Subsystem does not exist in the map.");
- eventAttentionFail((int)AttnSection::attnLogging |
- ATTN_INVALID_KEY);
+ eventAttentionFail(
+ (int)AttnSection::attnLogging | ATTN_INVALID_KEY);
return;
}