CPP: Detect Microsoft compilations somewhat more reliably.

This commit is contained in:
Geoffrey White
2019-03-13 13:50:17 +00:00
parent 975a0bbf0d
commit 4a25c37ecc

View File

@@ -302,7 +302,10 @@ class File extends Container, @file {
predicate compiledAsMicrosoft() {
exists(Compilation c |
c.getAFileCompiled() = this and
c.getAnArgument() = "--microsoft"
(
c.getAnArgument() = "--microsoft" or
c.getAnArgument().matches("%\\\\cl.exe")
)
)
}