[CMake] additional arguments with CMAKE_CXX_CLANG_TIDY variable

Michael Ellery mellery451 at gmail.com
Tue Nov 8 13:27:24 EST 2016


> On Nov 8, 2016, at 10:06 AM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> 
> On 11/8/2016 11:20 AM, Michael Ellery wrote:
>> /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/.....
> That should still work.  It is passing that to -E __run_iwyu which should expand the arguments.
> 
> https://gitlab.kitware.com/cmake/cmake/blob/master/Source/cmcmd.cxx#L353
> cmSystemTools::ExpandListArgument will separate out the arguments.  My guess is the * might be causing the trouble somehow.
> 
> -Bill
> 
> 

Thanks - a quick test using `checks=google-runtime-memset`  (for example) does NOT fail, so your speculation about * causing issues seems pretty likely. I’m not sure if this is a bug or if there is some other workaround for special arg characters...



More information about the CMake mailing list