mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Merge pull request #1191 from geoffw0/microsoft
CPP: Workaround improvement for File.compiledAsMicrosoft.
This commit is contained in:
@@ -309,6 +309,12 @@ class File extends Container, @file {
|
||||
) or exists(File parent |
|
||||
parent.compiledAsMicrosoft() and
|
||||
parent.getAnIncludedFile() = this
|
||||
) or (
|
||||
getAbsolutePath().charAt(1) = ":"
|
||||
// this is not ideal, it detects compilation on a Windows file system
|
||||
// as a heuristic approximation to compilation with a Microsoft compiler.
|
||||
) or (
|
||||
getAbsolutePath().charAt(1) = "/"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user