mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
CPP: Detect Microsoft compilations somewhat more reliably.
This commit is contained in:
@@ -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")
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user