[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)
Justin Cady via cfe-commits
cfe-commits at lists.llvm.org
Wed May 29 07:04:16 PDT 2024
justincady wrote:
@codectile `--exclude-header-filter` is used in conjunction with `--header-filter` to exclude certain headers from analysis. Check out the tests that were modified as a part of this PR for more examples, but the basic idea is:
```
$ clang-tidy --header-filter='.*' --exclude-header-filter='header1\.h' [...]
```
In that example all headers will be analyzed using the enabled checks _except_ `header1.h`.
https://github.com/llvm/llvm-project/pull/91400
More information about the cfe-commits
mailing list