Skip to content

Commit 133838d

Browse files
committed
C++: update tests to expect type of this
1 parent d1d7fac commit 133838d

File tree

4 files changed

+6
-24
lines changed

4 files changed

+6
-24
lines changed

cpp/ql/test/library-tests/dataflow/fields/dataflow-consistency.expected

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@ uniqueEnclosingCallable
22
| C.cpp:37:24:37:33 | 0 | Node should have one enclosing callable but has 0. |
33
| C.cpp:37:24:37:33 | new | Node should have one enclosing callable but has 0. |
44
uniqueTypeBound
5-
| complex.cpp:22:11:22:17 | constructor init of field f [post-this] | Node should have one type bound but has 0. |
6-
| complex.cpp:22:11:22:17 | constructor init of field f [pre-this] | Node should have one type bound but has 0. |
7-
| complex.cpp:25:7:25:7 | constructor init of field inner [post-this] | Node should have one type bound but has 0. |
8-
| complex.cpp:25:7:25:7 | constructor init of field inner [pre-this] | Node should have one type bound but has 0. |
95
uniqueTypeRepr
10-
| complex.cpp:22:11:22:17 | constructor init of field f [post-this] | Node should have one type representation but has 0. |
11-
| complex.cpp:22:11:22:17 | constructor init of field f [pre-this] | Node should have one type representation but has 0. |
12-
| complex.cpp:25:7:25:7 | constructor init of field inner [post-this] | Node should have one type representation but has 0. |
13-
| complex.cpp:25:7:25:7 | constructor init of field inner [pre-this] | Node should have one type representation but has 0. |
146
uniqueNodeLocation
157
missingLocation
168
uniqueNodeToString

cpp/ql/test/library-tests/lambdas/captures/elements.expected

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,10 @@
231231
| file://:0:0:0:0 | const lambda [] type at line 9, col. 5 * |
232232
| file://:0:0:0:0 | const lambda [] type at line 9, col. 15 |
233233
| file://:0:0:0:0 | const lambda [] type at line 9, col. 15 & |
234+
| file://:0:0:0:0 | const lambda [] type at line 9, col. 15 * |
234235
| file://:0:0:0:0 | const lambda [] type at line 15, col. 5 |
235236
| file://:0:0:0:0 | const lambda [] type at line 15, col. 5 & |
237+
| file://:0:0:0:0 | const lambda [] type at line 15, col. 5 * |
236238
| file://:0:0:0:0 | const lambda [] type at line 22, col. 19 |
237239
| file://:0:0:0:0 | const lambda [] type at line 22, col. 19 & |
238240
| file://:0:0:0:0 | const lambda [] type at line 22, col. 19 * |
@@ -277,8 +279,10 @@
277279
| file://:0:0:0:0 | lambda [] type at line 9, col. 5 * |
278280
| file://:0:0:0:0 | lambda [] type at line 9, col. 15 & |
279281
| file://:0:0:0:0 | lambda [] type at line 9, col. 15 && |
282+
| file://:0:0:0:0 | lambda [] type at line 9, col. 15 * |
280283
| file://:0:0:0:0 | lambda [] type at line 15, col. 5 & |
281284
| file://:0:0:0:0 | lambda [] type at line 15, col. 5 && |
285+
| file://:0:0:0:0 | lambda [] type at line 15, col. 5 * |
282286
| file://:0:0:0:0 | lambda [] type at line 22, col. 19 & |
283287
| file://:0:0:0:0 | lambda [] type at line 22, col. 19 && |
284288
| file://:0:0:0:0 | lambda [] type at line 22, col. 19 * |

cpp/ql/test/library-tests/syntax-zoo/dataflow-consistency.expected

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,9 @@ uniqueEnclosingCallable
99
| misc.c:210:24:210:28 | ... + ... | Node should have one enclosing callable but has 0. |
1010
| misc.c:210:28:210:28 | 1 | Node should have one enclosing callable but has 0. |
1111
uniqueTypeBound
12-
| bad_asts.cpp:19:10:19:10 | constructor init of field x [post-this] | Node should have one type bound but has 0. |
13-
| bad_asts.cpp:19:10:19:10 | constructor init of field x [pre-this] | Node should have one type bound but has 0. |
14-
| bad_asts.cpp:19:10:19:10 | constructor init of field y [post-this] | Node should have one type bound but has 0. |
15-
| bad_asts.cpp:19:10:19:10 | constructor init of field y [pre-this] | Node should have one type bound but has 0. |
1612
| cpp17.cpp:15:5:15:45 | call to unknown function | Node should have one type bound but has 0. |
17-
| ir.cpp:784:15:784:15 | constructor init of field middlevb2_s [post-this] | Node should have one type bound but has 0. |
18-
| ir.cpp:784:15:784:15 | constructor init of field middlevb2_s [pre-this] | Node should have one type bound but has 0. |
19-
| static_init_templates.cpp:240:7:240:7 | constructor init of field mcc [post-this] | Node should have one type bound but has 0. |
20-
| static_init_templates.cpp:240:7:240:7 | constructor init of field mcc [pre-this] | Node should have one type bound but has 0. |
2113
uniqueTypeRepr
22-
| bad_asts.cpp:19:10:19:10 | constructor init of field x [post-this] | Node should have one type representation but has 0. |
23-
| bad_asts.cpp:19:10:19:10 | constructor init of field x [pre-this] | Node should have one type representation but has 0. |
24-
| bad_asts.cpp:19:10:19:10 | constructor init of field y [post-this] | Node should have one type representation but has 0. |
25-
| bad_asts.cpp:19:10:19:10 | constructor init of field y [pre-this] | Node should have one type representation but has 0. |
2614
| cpp17.cpp:15:5:15:45 | call to unknown function | Node should have one type representation but has 0. |
27-
| ir.cpp:784:15:784:15 | constructor init of field middlevb2_s [post-this] | Node should have one type representation but has 0. |
28-
| ir.cpp:784:15:784:15 | constructor init of field middlevb2_s [pre-this] | Node should have one type representation but has 0. |
29-
| static_init_templates.cpp:240:7:240:7 | constructor init of field mcc [post-this] | Node should have one type representation but has 0. |
30-
| static_init_templates.cpp:240:7:240:7 | constructor init of field mcc [pre-this] | Node should have one type representation but has 0. |
3115
uniqueNodeLocation
3216
| break_labels.c:2:11:2:11 | i | Node should have one location but has 4. |
3317
| break_labels.c:2:11:2:11 | x | Node should have one location but has 4. |

cpp/ql/test/library-tests/templates/instantiations_functions/elements.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
| file://:0:0:0:0 | char8_t |
5555
| file://:0:0:0:0 | char16_t |
5656
| file://:0:0:0:0 | char32_t |
57+
| file://:0:0:0:0 | composite<B> * |
5758
| file://:0:0:0:0 | composite<int> & |
5859
| file://:0:0:0:0 | composite<int> && |
5960
| file://:0:0:0:0 | composite<int> * |
@@ -156,6 +157,7 @@
156157
| file://:0:0:0:0 | restrict |
157158
| file://:0:0:0:0 | rule & |
158159
| file://:0:0:0:0 | rule && |
160+
| file://:0:0:0:0 | rule * |
159161
| file://:0:0:0:0 | sealed |
160162
| file://:0:0:0:0 | selectany |
161163
| file://:0:0:0:0 | short |

0 commit comments

Comments
 (0)