Resolve "<LANG>_CLANG_TIDY interferes with <LANG>_COMPILER_LAUNCHER"
When using ccache with clang-tidy, ccache needs to wrap compiler invocation, rather than cmake innvocation.
This fix reverses the relationship between tidy-like runners and ccache-like runners, so if both are specified, the command line changes from:
ccache cmake -E __run_co_compile --tidy=clang-tidy ... -- g++ ...
to:
cmake -E __run_co_compile --tidy=clang-tidy ... -- ccache g++ ...
Fixes: #16493 (closed)
Edited by Brad King