Skip to content

Commit 4a72843

Browse files
Distinguish tag kind in anonymous QualName
With this change, we now write `struct @foo` instead of just `@foo`.
1 parent d95a537 commit 4a72843

24 files changed

+82
-60
lines changed

hs-bindgen/fixtures/anonymous.bindingspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,31 @@ types:
2727
- Show
2828
- Storable
2929
- headers: anonymous.h
30-
cname: '@S1_c'
30+
cname: struct @S1_c
3131
module: Example
3232
identifier: S1_c
3333
instances:
3434
- Eq
3535
- Show
3636
- Storable
3737
- headers: anonymous.h
38-
cname: '@S2_inner'
38+
cname: struct @S2_inner
3939
module: Example
4040
identifier: S2_inner
4141
instances:
4242
- Eq
4343
- Show
4444
- Storable
4545
- headers: anonymous.h
46-
cname: '@S2_inner_deep'
46+
cname: struct @S2_inner_deep
4747
module: Example
4848
identifier: S2_inner_deep
4949
instances:
5050
- Eq
5151
- Show
5252
- Storable
5353
- headers: anonymous.h
54-
cname: '@S3_c'
54+
cname: struct @S3_c
5555
module: Example
5656
identifier: S3_c
5757
instances:

hs-bindgen/fixtures/attributes.bindingspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ types:
2727
- Show
2828
- Storable
2929
- headers: attributes.h
30-
cname: '@baz'
30+
cname: struct @baz
3131
module: Example
3232
identifier: Baz
3333
instances:
3434
- Eq
3535
- Show
3636
- Storable
3737
- headers: attributes.h
38-
cname: '@qux'
38+
cname: struct @qux
3939
module: Example
4040
identifier: Qux
4141
instances:

hs-bindgen/fixtures/distilled_lib_1.bindingspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ types:
5656
- Real
5757
- Storable
5858
- headers: distilled_lib_1.h
59-
cname: '@a_typedef_enum_e'
59+
cname: enum @a_typedef_enum_e
6060
module: Example
6161
identifier: A_typedef_enum_e
6262
instances:
@@ -66,7 +66,7 @@ types:
6666
- Show
6767
- Storable
6868
- headers: distilled_lib_1.h
69-
cname: '@another_typedef_enum_e'
69+
cname: enum @another_typedef_enum_e
7070
module: Example
7171
identifier: Another_typedef_enum_e
7272
instances:
@@ -76,7 +76,7 @@ types:
7676
- Show
7777
- Storable
7878
- headers: distilled_lib_1.h
79-
cname: '@another_typedef_struct_t'
79+
cname: struct @another_typedef_struct_t
8080
module: Example
8181
identifier: Another_typedef_struct_t
8282
instances:

hs-bindgen/fixtures/doxygen_docs.bindingspec.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,37 +73,37 @@ types:
7373
- Real
7474
- Storable
7575
- headers: doxygen_docs.h
76-
cname: '@bitfield_t'
76+
cname: struct @bitfield_t
7777
module: Example
7878
identifier: Bitfield_t
7979
instances:
8080
- Eq
8181
- Show
8282
- Storable
8383
- headers: doxygen_docs.h
84-
cname: '@config_t'
84+
cname: struct @config_t
8585
module: Example
8686
identifier: Config_t
8787
instances:
8888
- Eq
8989
- Show
9090
- Storable
9191
- headers: doxygen_docs.h
92-
cname: '@data_union_t'
92+
cname: union @data_union_t
9393
module: Example
9494
identifier: Data_union_t
9595
instances:
9696
- Storable
9797
- headers: doxygen_docs.h
98-
cname: '@data_union_t_as_parts'
98+
cname: struct @data_union_t_as_parts
9999
module: Example
100100
identifier: Data_union_t_as_parts
101101
instances:
102102
- Eq
103103
- Show
104104
- Storable
105105
- headers: doxygen_docs.h
106-
cname: '@status_code_t'
106+
cname: enum @status_code_t
107107
module: Example
108108
identifier: Status_code_t
109109
instances:

hs-bindgen/fixtures/enum_cpp_syntax.bindingspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version:
33
binding_specification: '1.0'
44
types:
55
- headers: enum_cpp_syntax.h
6-
cname: '@foo_enum'
6+
cname: enum @foo_enum
77
module: Example
88
identifier: Foo_enum
99
instances:

hs-bindgen/fixtures/enums.bindingspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ types:
8383
- Show
8484
- Storable
8585
- headers: enums.h
86-
cname: '@enumA'
86+
cname: enum @enumA
8787
module: Example
8888
identifier: EnumA
8989
instances:

hs-bindgen/fixtures/flam.bindingspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ types:
3535
- Show
3636
- Storable
3737
- headers: flam.h
38-
cname: '@foo_bar'
38+
cname: struct @foo_bar
3939
module: Example
4040
identifier: Foo_bar
4141
instances:

hs-bindgen/fixtures/fun_attributes.bindingspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ types:
2121
- Real
2222
- Storable
2323
- headers: fun_attributes.h
24-
cname: '@FILE'
24+
cname: struct @FILE
2525
module: Example
2626
identifier: FILE
2727
instances:

hs-bindgen/fixtures/globals.bindingspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ types:
5252
- Show
5353
- Storable
5454
- headers: globals.h
55-
cname: '@struct1_t'
55+
cname: struct @struct1_t
5656
module: Example
5757
identifier: Struct1_t
5858
instances:
5959
- Eq
6060
- Show
6161
- Storable
6262
- headers: globals.h
63-
cname: '@struct2_t'
63+
cname: struct @struct2_t
6464
module: Example
6565
identifier: Struct2_t
6666
instances:
6767
- Eq
6868
- Show
6969
- Storable
7070
- headers: globals.h
71-
cname: '@version_t'
71+
cname: struct @version_t
7272
module: Example
7373
identifier: Version_t
7474
instances:

hs-bindgen/fixtures/hsb_complex_test.bindingspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version:
33
binding_specification: '1.0'
44
types:
55
- headers: hsb_complex_test.h
6-
cname: complex_object_t
6+
cname: struct @complex_object_t
77
module: Example
88
identifier: Complex_object_t
99
instances:

0 commit comments

Comments
 (0)