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: I7801712fe34e10fec586d1e962afebd9ebcce46c
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/count.hpp b/src/count.hpp
index f5c4bb3..efc00fe 100644
--- a/src/count.hpp
+++ b/src/count.hpp
@@ -55,27 +55,26 @@
{
// Count the number of properties in the index that
// pass the condition specified in the config file.
- auto count = std::count_if(
- index.cbegin(), index.cend(),
- [this](const auto& item)
- // *INDENT-OFF*
+ auto count = std::count_if(index.cbegin(), index.cend(),
+ [this](const auto& item)
+ // *INDENT-OFF*
+ {
+ // Get the property value from storage[0],
+ // and save the op result in storage[1].
+ const auto& storage = std::get<storageIndex>(item.second);
+ // Don't count properties that don't exist.
+ if (!std::get<valueIndex>(storage.get()).has_value())
{
- // Get the property value from storage[0],
- // and save the op result in storage[1].
- const auto& storage = std::get<storageIndex>(item.second);
- // Don't count properties that don't exist.
- if (!std::get<valueIndex>(storage.get()).has_value())
- {
- return false;
- }
- const auto& value =
- std::any_cast<T>(std::get<valueIndex>(storage.get()));
- auto r = propertyOp(value);
+ return false;
+ }
+ const auto& value =
+ std::any_cast<T>(std::get<valueIndex>(storage.get()));
+ auto r = propertyOp(value);
- std::get<resultIndex>(storage.get()) = r;
+ std::get<resultIndex>(storage.get()) = r;
- return r;
- });
+ return r;
+ });
// *INDENT-ON*
// Now apply the count condition to the count.