Skip to content

Commit aa3e8d6

Browse files
authored
Merge pull request github#12815 from jketema/anon
C++: Update test expectations after extractor changes
2 parents a3c66b6 + 1a876f7 commit aa3e8d6

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

cpp/ql/test/library-tests/attributes/type_attributes/type_attributes.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
| file://:0:0:0:0 | short __attribute((__may_alias__)) | type_attributes.c:25:30:25:42 | may_alias |
22
| type_attributes.c:5:36:5:51 | my_packed_struct | type_attributes.c:5:23:5:32 | packed |
3-
| type_attributes.c:10:54:10:54 | union <unnamed> | type_attributes.c:10:30:10:50 | transparent_union |
4-
| type_attributes.c:16:54:16:54 | union <unnamed> | type_attributes.c:16:30:16:50 | transparent_union |
3+
| type_attributes.c:10:54:10:54 | (unnamed class/struct/union) | type_attributes.c:10:30:10:50 | transparent_union |
4+
| type_attributes.c:16:54:16:54 | (unnamed class/struct/union) | type_attributes.c:16:30:16:50 | transparent_union |
55
| type_attributes.c:21:37:21:45 | unusedInt | type_attributes.c:21:24:21:29 | unused |
66
| type_attributes.c:23:13:23:18 | depInt | type_attributes.c:23:36:23:45 | deprecated |
77
| type_attributes_ms.cpp:1:29:1:29 | X | type_attributes_ms.cpp:1:19:1:26 | novtable |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
| (unnamed class/struct/union) |
12
| float[3] |
23
| float[3][3] |
34
| foo[1] |
4-
| struct <unnamed> |

cpp/ql/test/library-tests/structs/compatible_c/compatible.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
| a1.c:6:16:6:16 | struct <unnamed> | 0 members | 2 locations | -1 | <none> |
2-
| a1.c:10:16:10:16 | struct <unnamed> | 1 members | 2 locations | 0 | x |
3-
| a1.c:17:16:17:16 | struct <unnamed> | 1 members | 2 locations | 0 | x |
1+
| a1.c:6:16:6:16 | (unnamed class/struct/union) | 0 members | 2 locations | -1 | <none> |
2+
| a1.c:10:16:10:16 | (unnamed class/struct/union) | 1 members | 2 locations | 0 | x |
3+
| a1.c:17:16:17:16 | (unnamed class/struct/union) | 1 members | 2 locations | 0 | x |
44
| a1.c:24:8:24:10 | Foo | 3 members | 2 locations | 0 | empty |
55
| a1.c:24:8:24:10 | Foo | 3 members | 2 locations | 1 | nonempty |
66
| a1.c:24:8:24:10 | Foo | 3 members | 2 locations | 2 | i |
@@ -9,9 +9,9 @@
99
| a1.c:36:8:36:10 | Bar | 3 members | 2 locations | 0 | empty |
1010
| a1.c:36:8:36:10 | Bar | 3 members | 2 locations | 1 | nonempty |
1111
| a1.c:36:8:36:10 | Bar | 3 members | 2 locations | 2 | i |
12-
| a2.c:6:16:6:16 | struct <unnamed> | 0 members | 2 locations | -1 | <none> |
13-
| a2.c:10:16:10:16 | struct <unnamed> | 1 members | 2 locations | 0 | x |
14-
| a2.c:17:16:17:16 | struct <unnamed> | 1 members | 2 locations | 0 | x |
12+
| a2.c:6:16:6:16 | (unnamed class/struct/union) | 0 members | 2 locations | -1 | <none> |
13+
| a2.c:10:16:10:16 | (unnamed class/struct/union) | 1 members | 2 locations | 0 | x |
14+
| a2.c:17:16:17:16 | (unnamed class/struct/union) | 1 members | 2 locations | 0 | x |
1515
| a2.c:24:8:24:10 | Foo | 3 members | 2 locations | 0 | empty |
1616
| a2.c:24:8:24:10 | Foo | 3 members | 2 locations | 1 | nonempty |
1717
| a2.c:24:8:24:10 | Foo | 3 members | 2 locations | 2 | i |

cpp/ql/test/library-tests/structs/compatible_c/compatible_types.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
| a1.c:10:16:10:16 | struct <unnamed> | 0 | file://:0:0:0:0 | int | 1 types |
2-
| a1.c:17:16:17:16 | struct <unnamed> | 0 | file://:0:0:0:0 | int | 1 types |
1+
| a1.c:10:16:10:16 | (unnamed class/struct/union) | 0 | file://:0:0:0:0 | int | 1 types |
2+
| a1.c:17:16:17:16 | (unnamed class/struct/union) | 0 | file://:0:0:0:0 | int | 1 types |
33
| a1.c:24:8:24:10 | Foo | 0 | file://:0:0:0:0 | anon_empty_t * | 1 types |
44
| a1.c:24:8:24:10 | Foo | 1 | file://:0:0:0:0 | anon_nonempty_t * | 1 types |
55
| a1.c:24:8:24:10 | Foo | 2 | file://:0:0:0:0 | int | 1 types |
66
| a1.c:32:8:32:15 | NonEmpty | 0 | file://:0:0:0:0 | int | 1 types |
77
| a1.c:36:8:36:10 | Bar | 0 | file://:0:0:0:0 | Empty * | 1 types |
88
| a1.c:36:8:36:10 | Bar | 1 | file://:0:0:0:0 | NonEmpty * | 1 types |
99
| a1.c:36:8:36:10 | Bar | 2 | file://:0:0:0:0 | int | 1 types |
10-
| a2.c:10:16:10:16 | struct <unnamed> | 0 | file://:0:0:0:0 | int | 1 types |
11-
| a2.c:17:16:17:16 | struct <unnamed> | 0 | file://:0:0:0:0 | int | 1 types |
10+
| a2.c:10:16:10:16 | (unnamed class/struct/union) | 0 | file://:0:0:0:0 | int | 1 types |
11+
| a2.c:17:16:17:16 | (unnamed class/struct/union) | 0 | file://:0:0:0:0 | int | 1 types |
1212
| a2.c:24:8:24:10 | Foo | 0 | file://:0:0:0:0 | anon_empty_t * | 1 types |
1313
| a2.c:24:8:24:10 | Foo | 1 | file://:0:0:0:0 | anon_nonempty_t * | 1 types |
1414
| a2.c:24:8:24:10 | Foo | 2 | file://:0:0:0:0 | int | 1 types |

0 commit comments

Comments
 (0)