clang-tidy: format with config-clang-tidy
Reformat the .clang-tidy file for consistency using the
config-clang-tidy tool from openbmc-build-scripts.
Change-Id: I90e028e21d3bae120e22b42560222592f82fa012
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/.clang-tidy b/.clang-tidy
index 6153e73..c31ad57 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,14 +1,18 @@
-Checks: '
- -*,
+Checks: '-*,
bugprone-unchecked-optional-access,
modernize-use-nullptr,
- readability-function-size,
- readability-function-cognitive-complexity
-'
+ readability-function-cognitive-complexity,
+ readability-function-size
+ '
+
CheckOptions:
- - { key: readability-function-size.LineThreshold, value: 60 }
- - { key: readability-function-size.ParameterThreshold, value: 6 }
- - { key: readability-function-cognitive-complexity.Threshold, value: 25 }
+- key: readability-function-cognitive-complexity.Threshold
+ value: 25
+- key: readability-function-size.LineThreshold
+ value: 60
+- key: readability-function-size.ParameterThreshold
+ value: 6
+
+HeaderFilterRegex: (?!^subprojects).*
WarningsAsErrors: '*'
-HeaderFilterRegex: '(?!^subprojects).*'