File tree Expand file tree Collapse file tree 5 files changed +27
-0
lines changed
cpp/ql/test/library-tests/declarationEntry/declarationEntry Expand file tree Collapse file tree 5 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,11 @@ class myTemplateClass
33
33
34
34
myTemplateClass<int > mtc_int;
35
35
myTemplateClass<short > mtc_short;
36
+
37
+ // Class (UserType)
38
+
39
+ class myClass
40
+ {
41
+ public:
42
+ int myMemberVariable;
43
+ };
Original file line number Diff line number Diff line change 27
27
| declarationEntry.cpp:31:4:31:19 | myMemberVariable | declarationEntry.cpp:31:4:31:19 | definition of myMemberVariable | 1 | 1 |
28
28
| declarationEntry.cpp:34:22:34:28 | mtc_int | declarationEntry.cpp:34:22:34:28 | definition of mtc_int | 1 | 1 |
29
29
| declarationEntry.cpp:35:24:35:32 | mtc_short | declarationEntry.cpp:35:24:35:32 | definition of mtc_short | 1 | 1 |
30
+ | declarationEntry.cpp:39:7:39:7 | operator= | declarationEntry.cpp:39:7:39:7 | declaration of operator= | 1 | 1 |
31
+ | declarationEntry.cpp:39:7:39:7 | operator= | declarationEntry.cpp:39:7:39:7 | declaration of operator= | 1 | 1 |
32
+ | declarationEntry.cpp:39:7:39:13 | myClass | declarationEntry.cpp:39:7:39:13 | definition of myClass | 1 | 1 |
33
+ | declarationEntry.cpp:39:7:39:13 | myClass | forwardDeclaration.cpp:1:7:1:13 | declaration of myClass | 0 | 1 |
34
+ | declarationEntry.cpp:42:6:42:21 | myMemberVariable | declarationEntry.cpp:42:6:42:21 | definition of myMemberVariable | 1 | 1 |
35
+ | forwardDeclaration.cpp:3:10:3:19 | myClassPtr | forwardDeclaration.cpp:3:10:3:19 | definition of myClassPtr | 1 | 1 |
30
36
| macro.c:2:1:2:3 | foo | macro.c:2:1:2:3 | declaration of foo | 1 | 1 |
31
37
| macro.c:4:5:4:8 | main | macro.c:4:5:4:8 | definition of main | 1 | 1 |
Original file line number Diff line number Diff line change 10
10
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | | 0 | |
11
11
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | | 0 | |
12
12
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | | 0 | |
13
+ | declarationEntry.cpp:39:7:39:7 | declaration of operator= | | 0 | |
14
+ | declarationEntry.cpp:39:7:39:7 | declaration of operator= | | 0 | |
13
15
| macro.c:2:1:2:3 | declaration of foo | | 2 | c_linkage, static |
14
16
| macro.c:4:5:4:8 | definition of main | | 1 | c_linkage |
Original file line number Diff line number Diff line change
1
+ class myClass ;
2
+
3
+ myClass *myClassPtr;
Original file line number Diff line number Diff line change 25
25
| declarationEntry.cpp:31:4:31:19 | definition of myMemberVariable | declarationEntry.cpp:31:4:31:19 | myMemberVariable | yes |
26
26
| declarationEntry.cpp:34:22:34:28 | definition of mtc_int | declarationEntry.cpp:34:22:34:28 | mtc_int | yes |
27
27
| declarationEntry.cpp:35:24:35:32 | definition of mtc_short | declarationEntry.cpp:35:24:35:32 | mtc_short | yes |
28
+ | declarationEntry.cpp:39:7:39:7 | declaration of operator= | declarationEntry.cpp:39:7:39:7 | operator= | yes |
29
+ | declarationEntry.cpp:39:7:39:7 | declaration of operator= | declarationEntry.cpp:39:7:39:7 | operator= | yes |
30
+ | declarationEntry.cpp:39:7:39:13 | definition of myClass | declarationEntry.cpp:39:7:39:13 | myClass | yes |
31
+ | declarationEntry.cpp:42:6:42:21 | definition of myMemberVariable | declarationEntry.cpp:42:6:42:21 | myMemberVariable | yes |
32
+ | file://:0:0:0:0 | declaration of 1st parameter | file://:0:0:0:0 | (unnamed parameter 0) | yes |
33
+ | file://:0:0:0:0 | declaration of 1st parameter | file://:0:0:0:0 | (unnamed parameter 0) | yes |
28
34
| file://:0:0:0:0 | declaration of 1st parameter | file://:0:0:0:0 | (unnamed parameter 0) | yes |
29
35
| file://:0:0:0:0 | declaration of 1st parameter | file://:0:0:0:0 | (unnamed parameter 0) | yes |
30
36
| file://:0:0:0:0 | declaration of 1st parameter | file://:0:0:0:0 | (unnamed parameter 0) | yes |
33
39
| file://:0:0:0:0 | definition of gp_offset | file://:0:0:0:0 | gp_offset | yes |
34
40
| file://:0:0:0:0 | definition of overflow_arg_area | file://:0:0:0:0 | overflow_arg_area | yes |
35
41
| file://:0:0:0:0 | definition of reg_save_area | file://:0:0:0:0 | reg_save_area | yes |
42
+ | forwardDeclaration.cpp:1:7:1:13 | declaration of myClass | declarationEntry.cpp:39:7:39:13 | myClass | no |
43
+ | forwardDeclaration.cpp:3:10:3:19 | definition of myClassPtr | forwardDeclaration.cpp:3:10:3:19 | myClassPtr | yes |
36
44
| macro.c:2:1:2:3 | declaration of foo | macro.c:2:1:2:3 | foo | yes |
37
45
| macro.c:4:5:4:8 | definition of main | macro.c:4:5:4:8 | main | yes |
You can’t perform that action at this time.
0 commit comments