Merge pull request #5380 from github/criemen/clang-cl

C++: Add clang-cl.exe to `compiledAsMicrosoft()`.
This commit is contained in:
Mathias Vorreiter Pedersen
2021-03-11 13:56:25 +01:00
committed by GitHub

View File

@@ -276,7 +276,10 @@ class File extends Container, @file {
c.getAFileCompiled() = this and
(
c.getAnArgument() = "--microsoft" or
c.getAnArgument().toLowerCase().replaceAll("\\", "/").matches("%/cl.exe")
c.getAnArgument()
.toLowerCase()
.replaceAll("\\", "/")
.matches(["%/cl.exe", "%/clang-cl.exe"])
)
)
or