[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 21 13:23:34 PST 2024


================
@@ -97,6 +97,9 @@ The improvements are...
 Improvements to clang-tidy
 --------------------------
 
+- Improved :program:`run-clang-tidy.py` script. Added argument `-source-filter`
+  to filter out source files from the compilation database.
----------------
carlosgalvezp wrote:

I read this as "the option 'source-filter' is used to filter out source files". But in reality it's doing the opposite: it will filter **in** those source files (just like header-filter).

Maybe we can write something like "with the same semantics of header-filter, but for source files"?

https://github.com/llvm/llvm-project/pull/82416


More information about the cfe-commits mailing list