clang-format: copy latest and re-format
clang-format-17 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: Ib459ac591ed3031de84d0239948d8daa583ef8a5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/extensions/openpower-pels/repository.cpp b/extensions/openpower-pels/repository.cpp
index 1860154..70738b0 100644
--- a/extensions/openpower-pels/repository.cpp
+++ b/extensions/openpower-pels/repository.cpp
@@ -593,10 +593,9 @@
{
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) {
@@ -723,17 +722,17 @@
static const std::vector<std::function<bool(const PELAttributes& pel)>>
stateChecks{[](const auto& pel) {
return pel.hmcState == TransmissionState::acked;
- },
+ },
[](const auto& pel) {
return pel.hostState == TransmissionState::acked;
- },
+ },
- [](const auto& pel) {
+ [](const auto& pel) {
return pel.hostState == TransmissionState::sent;
- },
+ },
- [](const auto& /*pel*/) { return true; }};
+ [](const auto& /*pel*/) { return true; }};
for (const auto& stateCheck : stateChecks)
{