Skip to content

Commit 288ee92

Browse files
authored
C++: Add clang-cl.exe to compiledAsMicrosoft().
1 parent 01cc2f2 commit 288ee92

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)