Skip to content

Commit 0edae89

Browse files
authored
Merge pull request #5380 from github/criemen/clang-cl
C++: Add clang-cl.exe to `compiledAsMicrosoft()`.
2 parents 01cc2f2 + 288ee92 commit 0edae89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ class File extends Container, @file {
276276
c.getAFileCompiled() = this and
277277
(
278278
c.getAnArgument() = "--microsoft" or
279-
c.getAnArgument().toLowerCase().replaceAll("\\", "/").matches("%/cl.exe")
279+
c.getAnArgument()
280+
.toLowerCase()
281+
.replaceAll("\\", "/")
282+
.matches(["%/cl.exe", "%/clang-cl.exe"])
280283
)
281284
)
282285
or

0 commit comments

Comments
 (0)