include-what-you-use / include-what-you-use

A tool for use with clang to analyze #includes in C and C++ source files

Home Page:https://include-what-you-use.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iwyu_tool: add option to filter out files from analysis

firewave opened this issue · comments

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.

run-clang-tidy recently added the -source-filter option to achieve this: llvm/llvm-project@8dfc023.

See also #94.