Skip to content

Commit 2c8543d

Browse files
authored
Fix headers config in .clang-tidy (#292)
- Use correct option to manage excluded headers in misc-include-cleaner diagnostic - Enable back default 'clang-analyzer-optin.cplusplus.UninitializedObject' diagnostic
1 parent 033d8e3 commit 2c8543d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.clang-tidy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Checks: >
1212
-bugprone-exception-escape,
1313
-bugprone-implicit-widening-of-multiplication-result,
1414
-bugprone-narrowing-conversions,
15-
-clang-analyzer-optin.cplusplus.UninitializedObject,
1615
-misc-const-correctness,
1716
-misc-header-include-cycle,
1817
-misc-no-recursion,
@@ -27,7 +26,6 @@ Checks: >
2726
-readability-named-parameter
2827
2928
WarningsAsErrors: "*"
30-
HeaderFilterRegex: '^(?!.*opencv2).*'
3129

3230
CheckOptions:
3331
- key: readability-identifier-naming.ClassCase
@@ -80,3 +78,5 @@ CheckOptions:
8078
value: 1
8179
- key: readability-function-cognitive-complexity.Threshold
8280
value: 25 # default: 25
81+
- key: misc-include-cleaner.IgnoreHeaders
82+
value: '(opencv2/.*|__chrono/.*)'

0 commit comments

Comments
 (0)