[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 09:50:51 PDT 2024
5chmidti wrote:
> I have read the issues in detail and it doesn't look like it has been resolved? But just want to filter out the content not interested in, even if you don't use `exclude-header-filter` The output is the same as above,It will not expand the contents(`Supppressed 3386 warnings...`).
Sadly no, this does not exist yet and the linked issue is for tracking that feature.
The option implemented in this PR allows to filter out from the generated diagnostics those, that have been generated and their file name matched the regex, but not to ignore the code in those headers all together. This means that we still analyze that code and diagnose it, we just don't show the diagnostic for it.
Most likely, the reason you are not seeing a difference in the number of suppressed diagnostics, is that the QT headers are already marked as system includes by your build system, which are automatically excluded from analysis unless the `--system-headers` flag is set.
(In case this does not answer your question or the issue I linked is not what you're after, please file an issue so that it will be more searchable for others and so that the conversation gets scoped to that issue and not in a PR conversation, which will likely not be searched for by others.)
https://github.com/llvm/llvm-project/pull/91400
More information about the cfe-commits
mailing list