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: I267a17e007b99caed10aef060e7dd9a0bcc5fc2e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/average.cpp b/average.cpp
index c5864bd..7b12d70 100644
--- a/average.cpp
+++ b/average.cpp
@@ -43,9 +43,9 @@
     // (a2*i2-a1*i1)/(i2-i1) =
     // (a2*(i1+delta)-a1*i1)/delta =
     // (a2-a1)(i1/delta)+a2
-    value =
-        (curAverage - preAverage) * (static_cast<double>(preInterval) / delta) +
-        curAverage;
+    value = (curAverage - preAverage) *
+                (static_cast<double>(preInterval) / delta) +
+            curAverage;
 
     return value;
 }