diff options
Diffstat (limited to '.clang-tidy')
| -rw-r--r-- | .clang-tidy | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/.clang-tidy b/.clang-tidy index 1962859..9540023 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,6 +1,6 @@ --- -# Checks for zash. Run with `make tidy`. Every check named here either -# finds real bugs in a shell (memory, signals, integer handling) or keeps the +# Checks for ztop. Run with `make tidy`. Every check named here either +# finds real bugs here (memory, signals, integer handling) or keeps the # code in the style of the rest of the tree. Checks that disagree with the # project's choices are switched off below, with the reason. Checks: > @@ -54,6 +54,7 @@ Checks: > -readability-function-size, -readability-inconsistent-declaration-parameter-name, -bugprone-implicit-widening-of-multiplication-result, + -bugprone-signed-bitwise, -performance-no-int-to-ptr # Not enabled, on purpose: @@ -80,9 +81,16 @@ Checks: > # readability-magic-numbers, readability-identifier-length # (noise in a parser and a bit-twiddling arithmetic # scanner) +# bugprone-signed-bitwise +# (LLVM 23 flags unsigned operands: it reports +# `unsigned b = a >> 2;` and `p[0] = (unsigned +# char)(len >> 8);`, so it says nothing about +# signedness here. Reading a big-endian field is +# memcpy plus an explicit shift, which the check +# does not improve.) WarningsAsErrors: '' -HeaderFilterRegex: '^.*/src/.*\.h$' +HeaderFilterRegex: "^(.*/)?(src|tui)/.*\\.h$" FormatStyle: file SystemHeaders: false |
