[CMake] Can CXX_CLANG_TIDY use .clang-tidy file?
Bill Hoffman
bill.hoffman at kitware.com
Mon Dec 10 12:31:38 EST 2018
On 12/8/2018 7:47 PM, Mateusz Loskot wrote:
> Hi,
>
> Am I correct clang-tidy run via CXX_CLANG_TIDY
> ignores .clang-tidy configuration file?
>
> I've tried number of ways to help it find the file,
> i.e. copied the file to binary directories from where it seems run via
> usr/local/bin/cmake -E __run_co_compile --tidy=/usr/bin/clang-tidy-7
I don't think anything was done to turn that off on purpose. Can you
run the command from the command line and get it to work? If so, you
should be able to get the same arguments to the clang tidy that CMake is
running.
-Bill
More information about the CMake
mailing list