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: I1ac255c58971ac5cc4697b8bb1069067aad02d18
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/metrics/collection_data.cpp b/src/metrics/collection_data.cpp
index 7ab5354..3610cba 100644
--- a/src/metrics/collection_data.cpp
+++ b/src/metrics/collection_data.cpp
@@ -85,8 +85,8 @@
if (timestamp > duration.t)
{
- readings.front().first =
- std::max(readings.front().first, timestamp - duration.t);
+ readings.front().first = std::max(readings.front().first,
+ timestamp - duration.t);
}
}
@@ -139,9 +139,8 @@
case CollectionTimeScope::interval:
std::generate_n(std::back_inserter(result), size,
[cf = makeCollectionFunction(op), duration] {
- return std::make_unique<DataInterval>(cf,
- duration);
- });
+ return std::make_unique<DataInterval>(cf, duration);
+ });
break;
case CollectionTimeScope::point:
std::generate_n(std::back_inserter(result), size,
@@ -150,8 +149,8 @@
case CollectionTimeScope::startup:
std::generate_n(std::back_inserter(result), size,
[cf = makeCollectionFunction(op)] {
- return std::make_unique<DataStartup>(cf);
- });
+ return std::make_unique<DataStartup>(cf);
+ });
break;
}