clang-tidy: adjust format to match config-clang-tidy tool
The tool introduced by Ib338f7dcbc7f1049122399e0b616f77ec5eb7dc2
creates clang-tidy files in a format / layout that is different
stylistically from the one here. Adjust the format here to match
the style generated by that tool.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I1989fe7e914ee7b1fab8bfb1a083c59f62c38bed
diff --git a/style/cpp/.clang-tidy b/style/cpp/.clang-tidy
index 31cac99..0643780 100644
--- a/style/cpp/.clang-tidy
+++ b/style/cpp/.clang-tidy
@@ -1,17 +1,21 @@
-Checks: '
- -*,
+Checks: '-*,
bugprone-unchecked-optional-access,
modernize-use-nullptr,
readability-function-size,
readability-function-cognitive-complexity
-'
+ '
+
CheckOptions:
- - { key: readability-function-size.LineThreshold, value: 60 } # [1]
- - { key: readability-function-size.ParameterThreshold, value: 6 } # [2]
- - { key: readability-function-cognitive-complexity.Threshold, value: 25 } # [3]
+- key: readability-function-size.LineThreshold
+ value: 60 # [1]
+- key: readability-function-size.ParameterThreshold
+ value: 6 # [2]
+- key: readability-function-cognitive-complexity.Threshold
+ value: 25 # [3]
+
+HeaderFilterRegex: '(?!^subprojects).*'
WarningsAsErrors: '*'
-HeaderFilterRegex: '(?!^subprojects).*'
# [1] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple
# [2] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f2-a-function-should-perform-a-single-logical-operation