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: I152f141a5e8343b92b5ce81d3ca16eec77b5606b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/presence/error_reporter.cpp b/presence/error_reporter.cpp
index 6210f7d..1b46bdf 100644
--- a/presence/error_reporter.cpp
+++ b/presence/error_reporter.cpp
@@ -200,9 +200,10 @@
if (powerState)
{
// If there are fans already missing, log it.
- auto missing = std::count_if(
- _fanStates.begin(), _fanStates.end(),
- [](const auto& fanState) { return fanState.second == false; });
+ auto missing = std::count_if(_fanStates.begin(), _fanStates.end(),
+ [](const auto& fanState) {
+ return fanState.second == false;
+ });
if (missing)
{
@@ -211,9 +212,10 @@
}
}
- std::for_each(
- _fanStates.begin(), _fanStates.end(),
- [this](const auto& fanState) { this->checkFan(fanState.first); });
+ std::for_each(_fanStates.begin(), _fanStates.end(),
+ [this](const auto& fanState) {
+ this->checkFan(fanState.first);
+ });
}
} // namespace phosphor::fan::presence