Skip to content

Commit 180e752

Browse files
committed
C++: Update test after extractor changes
Also remove incorrect FP comment. clang does not support `#pragma hdrstop` in its non-cl-emulation mode.
1 parent 61e30b9 commit 180e752

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
| b.c:5:3:5:34 | return ... | 10 |
22
| c.c:2:3:2:20 | return ... | 5 |
33
| e.c:2:3:2:19 | return ... | 17 |
4+
| g.c:3:3:3:12 | return ... | 20 |
45
| i.c:3:3:3:12 | return ... | 30 |
56
| i.c:8:3:8:12 | return ... | 31 |
67
| i.c:13:3:13:12 | return ... | 32 |
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef SEEN_H
22
static int h() {
3-
return 30; // [FALSE POSITIVE] (#pragma hdrstop bug, SEEN_H should not be defined in the precompiled header)
3+
return 30;
44
}
55
#endif
66
#ifdef H1
@@ -10,7 +10,7 @@ static int h1() {
1010
#endif
1111
#ifdef H2
1212
static int h2() {
13-
return 32; // [FALSE POSITIVE] (#pragma hdrstop bug, H2 should not be defined in the precompiled header)
13+
return 32;
1414
}
1515
#endif
1616
// semmle-extractor-options: --clang -include-pch ${testdir}/clang-pch.testproj/h.pch

0 commit comments

Comments
 (0)