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: I077deb6e98025e4e8c6abd4d039f9af4db19342b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/extensions/openpower-pels/registry.cpp b/extensions/openpower-pels/registry.cpp
index c9c4169..e646928 100644
--- a/extensions/openpower-pels/registry.cpp
+++ b/extensions/openpower-pels/registry.cpp
@@ -560,10 +560,10 @@
const auto& callouts = json["CalloutsWithTheirADValues"];
// find the entry with that AD value
- auto it = std::find_if(
- callouts.begin(), callouts.end(), [adValue](const nlohmann::json& j) {
- return *adValue == j["ADValue"].get<std::string>();
- });
+ auto it = std::find_if(callouts.begin(), callouts.end(),
+ [adValue](const nlohmann::json& j) {
+ return *adValue == j["ADValue"].get<std::string>();
+ });
if (it == callouts.end())
{
@@ -658,13 +658,12 @@
auto& reg = (_registry) ? _registry : registryTmp;
const auto& registry = reg.value();
// Find an entry with this name in the PEL array.
- auto e = std::find_if(
- registry["PELs"].begin(), registry["PELs"].end(),
- [&name, &type](const auto& j) {
- return ((name == j["Name"] && type == LookupType::name) ||
- (name == j["SRC"]["ReasonCode"] &&
- type == LookupType::reasonCode));
- });
+ auto e = std::find_if(registry["PELs"].begin(), registry["PELs"].end(),
+ [&name, &type](const auto& j) {
+ return (
+ (name == j["Name"] && type == LookupType::name) ||
+ (name == j["SRC"]["ReasonCode"] && type == LookupType::reasonCode));
+ });
if (e != registry["PELs"].end())
{