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/repository.cpp b/extensions/openpower-pels/repository.cpp
index e04b9a8..b19ce7a 100644
--- a/extensions/openpower-pels/repository.cpp
+++ b/extensions/openpower-pels/repository.cpp
@@ -566,18 +566,19 @@
{
std::vector<Repository::AttributesReference> attributes;
- std::for_each(
- _pelAttributes.begin(), _pelAttributes.end(),
- [&attributes](auto& pelEntry) { attributes.push_back(pelEntry); });
+ std::for_each(_pelAttributes.begin(), _pelAttributes.end(),
+ [&attributes](auto& pelEntry) {
+ attributes.push_back(pelEntry);
+ });
std::sort(attributes.begin(), attributes.end(),
[order](const auto& left, const auto& right) {
- if (order == SortOrder::ascending)
- {
- return left.get().second.path < right.get().second.path;
- }
- return left.get().second.path > right.get().second.path;
- });
+ if (order == SortOrder::ascending)
+ {
+ return left.get().second.path < right.get().second.path;
+ }
+ return left.get().second.path > right.get().second.path;
+ });
return attributes;
}
@@ -696,18 +697,18 @@
// Pass 4: delete all PELs
static const std::vector<std::function<bool(const PELAttributes& pel)>>
stateChecks{[](const auto& pel) {
- return pel.hmcState == TransmissionState::acked;
+ return pel.hmcState == TransmissionState::acked;
},
[](const auto& pel) {
- return pel.hostState == TransmissionState::acked;
- },
+ return pel.hostState == TransmissionState::acked;
+ },
- [](const auto& pel) {
- return pel.hostState == TransmissionState::sent;
- },
+ [](const auto& pel) {
+ return pel.hostState == TransmissionState::sent;
+ },
- [](const auto& /*pel*/) { return true; }};
+ [](const auto& /*pel*/) { return true; }};
for (const auto& stateCheck : stateChecks)
{