Skip to content

Commit 5e71207

Browse files
committed
CPP: Add '/' case.
1 parent c3ec7b5 commit 5e71207

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ class File extends Container, @file {
313313
getAbsolutePath().charAt(1) = ":"
314314
// this is not ideal, it detects compilation on a Windows file system
315315
// as a heuristic approximation to compilation with a Microsoft compiler.
316+
) or (
317+
getAbsolutePath().charAt(1) = "/"
316318
)
317319
}
318320

0 commit comments

Comments
 (0)