summaryrefslogtreecommitdiffhomepage
path: root/.clang-tidy
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-27 18:15:26 -0600
committerGitHub <noreply@github.com>2026-11-27 18:15:26 -0600
commit83e8fbc692b36be5ac9011ccf26b1b232d560008 (patch)
treeab62a06c6a49b343b33d41b502487b233128ad80 /.clang-tidy
parent4c95e6490d189b47cad050744de9768465e0307b (diff)
parentb5bb63d4760f6f6e0282fc9f7eec36b41705458c (diff)
downloadztop-main.tar.gz
Merge pull request #7 from skurtz97/feature/views-and-dec-glyphsHEADmain
views: PS, FS and LOG, and a DEC-graphics frame
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy14
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