Open bradking opened 4 years ago
For reference, this came up in CMake here:
https://gitlab.kitware.com/cmake/cmake/-/issues/20512
I'm trying to use clang-tidy version 11.0 with CMake and this issue is a stopper for us. Any news on this issue? Has it been solved in a more recent version?
And it seems clang-tidy version 13.0 has the same issue.
Extended Description
It does not seem possible to invoke clang-tidy with a
cl
command line that uses slash-style options:I tried the following with clang-tidy 7 and 10.
With a source
foo.cpp
:I tried the following combinations:
Without
--extra-arg-before=--driver-mode=cl
,/std:...
is accepted but does nothing. With--extra-arg-before=--driver-mode=cl
, only thecl
option forms starting in-
instead of/
seem to work.