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/monitor/power_off_cause.hpp b/monitor/power_off_cause.hpp
index f40e1fe..63b0cfd 100644
--- a/monitor/power_off_cause.hpp
+++ b/monitor/power_off_cause.hpp
@@ -109,10 +109,10 @@
*/
bool satisfied(const FanHealth& fanHealth) override
{
- size_t count = std::count_if(
- fanHealth.begin(), fanHealth.end(), [](const auto& fan) {
- return !std::get<presentHealthPos>(fan.second);
- });
+ size_t count = std::count_if(fanHealth.begin(), fanHealth.end(),
+ [](const auto& fan) {
+ return !std::get<presentHealthPos>(fan.second);
+ });
return count >= _count;
}
@@ -152,15 +152,13 @@
*/
bool satisfied(const FanHealth& fanHealth) override
{
- size_t count = std::accumulate(
- fanHealth.begin(), fanHealth.end(), 0,
- [](int sum, const auto& fan) {
- const auto& tachs = std::get<sensorFuncHealthPos>(fan.second);
- auto nonFuncTachs =
- std::count_if(tachs.begin(), tachs.end(),
- [](bool tach) { return !tach; });
- return sum + nonFuncTachs;
- });
+ size_t count = std::accumulate(fanHealth.begin(), fanHealth.end(), 0,
+ [](int sum, const auto& fan) {
+ const auto& tachs = std::get<sensorFuncHealthPos>(fan.second);
+ auto nonFuncTachs = std::count_if(tachs.begin(), tachs.end(),
+ [](bool tach) { return !tach; });
+ return sum + nonFuncTachs;
+ });
return count >= _count;
}