clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Ie32798cbf7083f3e59a4f36ff9459bb737c97476
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/average.cpp b/average.cpp
index 2cc5240..9e8e5d8 100644
--- a/average.cpp
+++ b/average.cpp
@@ -2,8 +2,8 @@
#include <cassert>
-std::optional<Average::averageValue>
- Average::getAverageValue(const Average::averageKey& sensorKey) const
+std::optional<Average::averageValue> Average::getAverageValue(
+ const Average::averageKey& sensorKey) const
{
const auto it = _previousAverageMap.find(sensorKey);
if (it == _previousAverageMap.end())
@@ -20,9 +20,9 @@
_previousAverageMap[sensorKey] = sensorValue;
}
-std::optional<int64_t>
- Average::calcAverage(int64_t preAverage, int64_t preInterval,
- int64_t curAverage, int64_t curInterval)
+std::optional<int64_t> Average::calcAverage(
+ int64_t preAverage, int64_t preInterval, int64_t curAverage,
+ int64_t curInterval)
{
int64_t value = 0;
// Estimate that the interval will overflow about 292471