I am trying to use clang-tidy integration with cmake and I would like to pass an argument -check. I tried adding -DCMAKE_CXX_CLANG_TIDY="/usr/local/opt/llvm38/bin/clang-tidy-3.8;-checks=*"cmake when invoking, but my makefile commands look like this:
/usr/local/Cellar/cmake/3.6.2/bin/cmake -E __run_iwyu --tidy="/usr/local/opt/llvm38/bin/clang-tidy-3.8;-checks=*" --source=/Users/ellery/work/.....
In other words, it is like; separated arguments are not parsed separately. I also tried setting the target property CXX_CLANG_TIDYdirectly to my target with the same value, and I get the same behavior.
Has anyone successfully called clang-tidywith additional arguments via cmake?
source
share