diff options
Diffstat (limited to '.clang-tidy')
| -rw-r--r-- | .clang-tidy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy index 9d346ec..9ba43bf 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -81,6 +81,22 @@ Checks: # precedence over addition in modern mathematical notation. Adding # parentheses to reinforce that certainly won't improve readability. - "-readability-math-missing-parentheses" + + # #if defined(FOO) is fine, and can be more consistent with other + # #if directives. Don't insist on #ifdef instead. + - "-readability-use-concise-preprocessor-directives" + + # clang-tidy, at least version 22.1.4 seems to generate a heap of + # false positives for this warning, asking us to make things + # static that are already used in other modules. + - "-misc-use-internal-linkage" + + # Warning about bool/int conversions could sometimes be useful. + # Unfortunately (as of clang-tidy 22.1.4) it warns in some really + # dumb situations, like not allowing !, && etc. on bool inputs to + # be treated directly as a bool. + - "-readability-implicit-bool-conversion" + WarningsAsErrors: "*" HeaderFileExtensions: - h |
