8 Commits

Author SHA1 Message Date
Ramon Roche
dc4aa749d3 Tools/run-clang-tidy: add -exclude argument for file filtering
Add regex-based file exclusion to the clang-tidy runner script.
This allows excluding paths (submodules, vendored code, tests) from
static analysis without modifying .clang-tidy files in each directory.

The -exclude argument accepts a regex pattern that is matched against
file paths from the compilation database. Matching files are skipped.

Example: -exclude="src/lib/foo|src/modules/bar"

This prepares for the clang-tidy v6 to v18 migration where we need
to exclude external code that we consume but don't maintain.

Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-02-12 21:20:27 -08:00
Jacob Dahl
9e811136a2
ci: clang-tidy: fix attempt (#25328) 2025-07-31 10:35:38 -07:00
jmackay2
eb274775d7
Update tools shebangs to python3 (#24739)
Co-authored-by: jmackay2 <jmackay2@gmail.com>
2025-07-22 22:30:04 -08:00
Julian Kent
770c724f17 Adapt run-clang-tidy.py to Python3 2020-03-02 13:26:03 -05:00
Christian Clauss
41516fbd55 Old style exceptions are Python 3 syntax errors 2019-09-22 17:47:37 -04:00
cclauss
c18104d48b Use print() function in both Python 2 and Python 3
Legacy __print__ statements are syntax errors in Python 3 but __print()__ function works as expected in both Python 2 and Python 3.
2019-09-22 13:54:24 -04:00
Daniel Agar
4e3b4091e8 run-clang-tidy only display output on error 2017-02-01 22:15:50 -05:00
Daniel Agar
226148ea8b import llvm 4.0 run-clang-tidy.py 2017-02-01 22:15:50 -05:00