@@ -10,40 +10,30 @@ HeaderFilterRegex: '^.*/(base|src|programs|utils)/.*(h|hpp)$'
1010Checks : [
1111 ' *' ,
1212
13- ' -abseil-* ' ,
13+ ' -abseil-string-find-str-contains ' , # disabled to avoid a misleading suggestion (obsolete absl::StrContains() instead of C++23 std::string::contains())
1414
1515 ' -altera-*' ,
1616
1717 ' -android-*' ,
1818
19+ ' -boost-use-ranges' ,
20+
1921 ' -bugprone-assignment-in-if-condition' ,
2022 ' -bugprone-branch-clone' ,
2123 ' -bugprone-easily-swappable-parameters' ,
2224 ' -bugprone-exception-escape' ,
23- ' -bugprone-forward-declaration-namespace' ,
2425 ' -bugprone-implicit-widening-of-multiplication-result' ,
2526 ' -bugprone-multi-level-implicit-pointer-conversion' ,
2627 ' -bugprone-narrowing-conversions' ,
27- ' -bugprone-not-null-terminated-result' ,
28- ' -bugprone-reserved-identifier' , # useful but too slow, TODO retry when https://reviews.llvm.org/rG1c282052624f9d0bd273bde0b47b30c96699c6c7 is merged
2928 ' -bugprone-unchecked-optional-access' ,
3029 ' -bugprone-crtp-constructor-accessibility' ,
31- ' -bugprone-suspicious-stringview-data-usage ' ,
30+ ' -bugprone-not-null-terminated-result ' ,
3231
3332 ' -cert-dcl16-c' ,
34- ' -cert-dcl37-c' ,
35- ' -cert-dcl51-cpp' ,
3633 ' -cert-err58-cpp' ,
37- ' -cert-msc32-c' ,
38- ' -cert-msc51-cpp' ,
39- ' -cert-oop54-cpp' ,
40- ' -cert-oop57-cpp' ,
41- ' -cert-err33-c' , # Misreports on clang-19: it warns about all functions containing 'remove' in the name, not only about the standard library.
4234
4335 ' -clang-analyzer-optin.performance.Padding' ,
4436
45- ' -clang-analyzer-unix.Malloc' ,
46-
4737 ' -cppcoreguidelines-*' , # impractical in a codebase as large as ClickHouse, also slow
4838
4939 ' -darwin-*' ,
@@ -76,38 +66,34 @@ Checks: [
7666 ' -hicpp-use-emplace' ,
7767 ' -hicpp-vararg' ,
7868
79- ' -linuxkernel-*' ,
80-
8169 ' -llvm-*' ,
8270
8371 ' -llvmlibc-*' ,
8472
85- ' -openmp-*' ,
86-
8773 ' -misc-const-correctness' ,
8874 ' -misc-include-cleaner' , # useful but far too many occurrences
8975 ' -misc-no-recursion' ,
9076 ' -misc-non-private-member-variables-in-classes' ,
91- ' -misc-confusable-identifiers' , # useful but slooo
9277 ' -misc-use-anonymous-namespace' ,
78+ ' -misc-use-internal-linkage' ,
9379
9480 ' -modernize-avoid-c-arrays' ,
9581 ' -modernize-concat-nested-namespaces' ,
96- ' -modernize-macro-to-enum' ,
9782 ' -modernize-pass-by-value' ,
9883 ' -modernize-return-braced-init-list' ,
9984 ' -modernize-use-auto' ,
100- ' -modernize-use-constraints' , # This is a good check, but clang-tidy crashes, see https://github.com/llvm/llvm-project/issues/91872
10185 ' -modernize-use-default-member-init' ,
10286 ' -modernize-use-emplace' ,
10387 ' -modernize-use-nodiscard' ,
88+ ' -modernize-use-ranges' ,
10489 ' -modernize-use-trailing-return-type' ,
10590 ' -modernize-use-designated-initializers' ,
10691
92+ ' -performance-avoid-endl' ,
10793 ' -performance-enum-size' ,
10894 ' -performance-inefficient-string-concatenation' ,
95+ ' -performance-inefficient-vector-operation' ,
10996 ' -performance-no-int-to-ptr' ,
110- ' -performance-avoid-endl' ,
11197 ' -performance-unnecessary-value-param' ,
11298
11399 ' -portability-simd-intrinsics' ,
@@ -122,7 +108,6 @@ Checks: [
122108 ' -readability-identifier-length' ,
123109 ' -readability-identifier-naming' , # useful but too slow
124110 ' -readability-implicit-bool-conversion' ,
125- ' -readability-isolate-declaration' ,
126111 ' -readability-magic-numbers' ,
127112 ' -readability-named-parameter' ,
128113 ' -readability-redundant-declaration' ,
@@ -137,6 +122,7 @@ Checks: [
137122 ' -readability-suspicious-call-argument' ,
138123 ' -readability-uppercase-literal-suffix' ,
139124 ' -readability-use-anyofallof' ,
125+ ' -readability-math-missing-parentheses' ,
140126
141127 ' -zircon-*'
142128]
@@ -173,4 +159,4 @@ CheckOptions:
173159 performance-move-const-arg.CheckTriviallyCopyableMove : false
174160 # Workaround clang-tidy bug: https://github.com/llvm/llvm-project/issues/46097
175161 readability-identifier-naming.TypeTemplateParameterIgnoredRegexp : expr-type
176- cppcoreguidelines-avoid-do-while.IgnoreMacros : true
162+ cppcoreguidelines-avoid-do-while.IgnoreMacros : true
0 commit comments