iwyu_tool: add option to filter out files from analysis
firewave opened this issue · comments
Oliver Stöneberg commented
When you are scanning a project (i.e. compilation database) utilizing Qt there will be generated files which cannot be modified, so it would made sense to exclude them from the analysis. These are moc_*.cpp
and ui_*.h
files so the filter needs to support at least simple wildcards.
Oliver Stöneberg commented
run-clang-tidy
recently added the -source-filter
option to achieve this: llvm/llvm-project@8dfc023.
Oliver Stöneberg commented
See also #94.