We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b555f50 + 5e71207 commit 8c17278Copy full SHA for 8c17278
cpp/ql/src/semmle/code/cpp/File.qll
@@ -309,6 +309,12 @@ class File extends Container, @file {
309
) or exists(File parent |
310
parent.compiledAsMicrosoft() and
311
parent.getAnIncludedFile() = this
312
+ ) or (
313
+ getAbsolutePath().charAt(1) = ":"
314
+ // this is not ideal, it detects compilation on a Windows file system
315
+ // as a heuristic approximation to compilation with a Microsoft compiler.
316
317
+ getAbsolutePath().charAt(1) = "/"
318
)
319
}
320
0 commit comments