File tree 3 files changed +18
-4
lines changed
cpp/ql/test/library-tests/preprocessor/preprocessor
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -68,3 +68,10 @@ int templateClassContext<T> :: val = MACRO_TEMPLATECLASSCONTEXT_REFERENCED;
68
68
69
69
#define INSTANTIATION
70
70
templateClassContext<int > tcci;
71
+
72
+ #define BAR
73
+
74
+ #if defined(BAR) && \
75
+ defined (BAR)
76
+ #warning BAR defined
77
+ #endif
Original file line number Diff line number Diff line change 4
4
//#pragma byte_order(big_endian)
5
5
#warning "Not in Kansas any more"
6
6
7
- // #define MULTILINE \
7
+ #define MULTILINE \
8
8
/* Hello */ \
9
9
world \
10
10
/* from */ \
11
11
a long \
12
12
/* macro */
13
- // #undef \
13
+ #undef \
14
14
MULTILINE
15
15
16
- // #include \
17
- < pp.h> \
16
+ #include \
17
+ " pp.h" \
18
18
\
Original file line number Diff line number Diff line change 27
27
| pp.cpp:0:0:0:0 | pp.cpp | 60 | 3 | 60 | 21 | Macro | IN_TEMPLATE | |
28
28
| pp.cpp:0:0:0:0 | pp.cpp | 61 | 1 | 61 | 7 | PreprocessorEndif | N/A | N/A |
29
29
| pp.cpp:0:0:0:0 | pp.cpp | 69 | 1 | 69 | 21 | Macro | INSTANTIATION | |
30
+ | pp.cpp:0:0:0:0 | pp.cpp | 72 | 1 | 72 | 11 | Macro | BAR | |
31
+ | pp.cpp:0:0:0:0 | pp.cpp | 74 | 1 | 74 | 21 | PreprocessorIf | defined(BAR) && \\ | N/A |
32
+ | pp.cpp:0:0:0:0 | pp.cpp | 76 | 1 | 76 | 20 | PreprocessorWarning | BAR defined | N/A |
33
+ | pp.cpp:0:0:0:0 | pp.cpp | 77 | 1 | 77 | 6 | PreprocessorEndif | N/A | N/A |
30
34
| pp.h:0:0:0:0 | pp.h | 1 | 1 | 1 | 12 | PreprocessorPragma | once | N/A |
31
35
| pp.h:0:0:0:0 | pp.h | 3 | 1 | 3 | 27 | PreprocessorLine | 33 "emerald_city.h" | N/A |
32
36
| pp.h:0:0:0:0 | pp.h | 5 | 1 | 5 | 33 | PreprocessorWarning | "Not in Kansas any more" | N/A |
37
+ | pp.h:0:0:0:0 | pp.h | 7 | 1 | 11 | 8 | Macro | MULTILINE | world a long |
38
+ | pp.h:0:0:0:0 | pp.h | 13 | 1 | 14 | 11 | PreprocessorUndef | MULTILINE | N/A |
39
+ | pp.h:0:0:0:0 | pp.h | 16 | 1 | 17 | 8 | Include | "pp.h" | N/A |
You can’t perform that action at this time.
0 commit comments