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: I39f8c77091744c8516e043054b4ed7207d85aa08
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/occ_ffdc.cpp b/occ_ffdc.cpp
index f83f74a..1119a9d 100644
--- a/occ_ffdc.cpp
+++ b/occ_ffdc.cpp
@@ -56,8 +56,8 @@
}
// Add journal traces to PEL FFDC
- auto occJournalFile =
- addJournalEntries(pelFFDCInfo, "openpower-occ-control", 25);
+ auto occJournalFile = addJournalEntries(pelFFDCInfo,
+ "openpower-occ-control", 25);
std::map<std::string, std::string> additionalData;
additionalData.emplace("SRC6", std::to_string(src6));
@@ -68,11 +68,11 @@
try
{
- std::string service =
- utils::getService(loggingObjectPath, opLoggingInterface);
- auto method =
- bus.new_method_call(service.c_str(), loggingObjectPath,
- opLoggingInterface, "CreatePELWithFFDCFiles");
+ std::string service = utils::getService(loggingObjectPath,
+ opLoggingInterface);
+ auto method = bus.new_method_call(service.c_str(), loggingObjectPath,
+ opLoggingInterface,
+ "CreatePELWithFFDCFiles");
// Set level to Notice (Informational). Error should trigger an OCC
// reset and if it does not recover, HTMGT/HBRT will create an
@@ -127,14 +127,14 @@
{
FFDCFiles ffdc;
// Add journal traces to PEL FFDC
- auto occJournalFile =
- addJournalEntries(ffdc, "openpower-occ-control", 25);
+ auto occJournalFile = addJournalEntries(ffdc, "openpower-occ-control",
+ 25);
- std::string service =
- utils::getService(loggingObjectPath, opLoggingInterface);
- auto method =
- bus.new_method_call(service.c_str(), loggingObjectPath,
- opLoggingInterface, "CreatePELWithFFDCFiles");
+ std::string service = utils::getService(loggingObjectPath,
+ opLoggingInterface);
+ auto method = bus.new_method_call(service.c_str(), loggingObjectPath,
+ opLoggingInterface,
+ "CreatePELWithFFDCFiles");
// Set level to Notice (Informational). Error should trigger an OCC
// reset and if it does not recover, HTMGT/HBRT will create an
@@ -194,8 +194,8 @@
if (total > sbe_status_header_size)
{
- std::string templateString =
- fs::temp_directory_path() / "OCC_FFDC_XXXXXX";
+ std::string templateString = fs::temp_directory_path() /
+ "OCC_FFDC_XXXXXX";
tfd = mkostemp(templateString.data(), O_RDWR);
if (tfd < 0)
{