From 1c3411eb50d0860ab7150f08de2911f753120065 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Wed, 5 Feb 2025 00:07:20 +0100 Subject: [PATCH] Fix headers config in .clang-tidy - Use correct option to manage excluded headers in misc-include-cleaner diagnostic - Enable back default 'clang-analyzer-optin.cplusplus.UninitializedObject' diagnostic --- .clang-tidy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 84d708dd4..ce8e4fa91 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -12,7 +12,6 @@ Checks: > -bugprone-exception-escape, -bugprone-implicit-widening-of-multiplication-result, -bugprone-narrowing-conversions, - -clang-analyzer-optin.cplusplus.UninitializedObject, -misc-const-correctness, -misc-header-include-cycle, -misc-no-recursion, @@ -27,7 +26,6 @@ Checks: > -readability-named-parameter WarningsAsErrors: "*" -HeaderFilterRegex: '^(?!.*opencv2).*' CheckOptions: - key: readability-identifier-naming.ClassCase @@ -80,3 +78,5 @@ CheckOptions: value: 1 - key: readability-function-cognitive-complexity.Threshold value: 25 # default: 25 + - key: misc-include-cleaner.IgnoreHeaders + value: '(opencv2/.*|__chrono/.*)'