In D92191, a bunch of test cases were added to check clang-scan-deps works in clang-cl mode as well.
We don't need to duplicate all test cases, though. Testing the few special cases we have in clang-scan-deps for clang-cl should be good enough:
- Deducing output path (and therefore target name in our make output).
- Ignoring -Xclang arguments in step 1.
- Deducing resource directory by invoking the compiler executuable.
This test de-duplicates the extra clang-cl test cases.
I was wondering whether it could be a concern that this test will be skipped on Windows systems, where clang-cl specific development would most likely occur.
However I'm pretty sure it's ok, since this test is pretty simple and small, has little chances to break during most development iterations, and we would run the tests under linux at some point anyway.