Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a25c37

Browse files
committed
CPP: Detect Microsoft compilations somewhat more reliably.
1 parent 975a0bb commit 4a25c37

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cpp/ql/src/semmle/code/cpp/File.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,10 @@ class File extends Container, @file {
302302
predicate compiledAsMicrosoft() {
303303
exists(Compilation c |
304304
c.getAFileCompiled() = this and
305-
c.getAnArgument() = "--microsoft"
305+
(
306+
c.getAnArgument() = "--microsoft" or
307+
c.getAnArgument().matches("%\\\\cl.exe")
308+
)
306309
)
307310
}
308311

0 commit comments

Comments
 (0)