[cfe-dev] [clang-tidy] Headers taken into account

Alexander Droste via cfe-dev cfe-dev at lists.llvm.org
Sun Nov 6 12:53:47 PST 2016


Hi,

I'd like to know how Clang-Tidy actually determines which headers are taken
into account. When I invoke the following command in an out-of-source build,
'run-clang-tidy.py -fix -checks='-*,modernize-*' -header-filter='.*' -p=.'
with 'build/debug' being pwd, all headers contained in '../../src/**' are
taken into account. Does Clang-Tidy look for '.h,.hxx,etc.' pairs matching a
.cpp or does it look for all headers in folders that contain source files?

Cheers,
Alex



More information about the cfe-dev mailing list