File tree Expand file tree Collapse file tree 8 files changed +84
-3
lines changed Expand file tree Collapse file tree 8 files changed +84
-3
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ DeclarationFragmentsBuilder::getFragmentsForEnum(const EnumDecl *EnumDecl) {
470
470
getFragmentsForType (IntegerType, EnumDecl->getASTContext (), After))
471
471
.append (std::move (After));
472
472
473
- return Fragments;
473
+ return Fragments. append ( " ; " , DeclarationFragments::FragmentKind::Text) ;
474
474
}
475
475
476
476
DeclarationFragments
@@ -493,7 +493,8 @@ DeclarationFragmentsBuilder::getFragmentsForStruct(const RecordDecl *Record) {
493
493
if (!Record->getName ().empty ())
494
494
Fragments.appendSpace ().append (
495
495
Record->getName (), DeclarationFragments::FragmentKind::Identifier);
496
- return Fragments;
496
+
497
+ return Fragments.append (" ;" , DeclarationFragments::FragmentKind::Text);
497
498
}
498
499
499
500
DeclarationFragments
@@ -743,7 +744,7 @@ DeclarationFragments DeclarationFragmentsBuilder::getFragmentsForTypedef(
743
744
.appendSpace ()
744
745
.append (Decl->getName (), DeclarationFragments::FragmentKind::Identifier);
745
746
746
- return Fragments;
747
+ return Fragments. append ( " ; " , DeclarationFragments::FragmentKind::Text) ;
747
748
}
748
749
749
750
template <typename FunctionT>
Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ struct Vehicle {
94
94
"kind" : "typeIdentifier" ,
95
95
"preciseIdentifier" : "c:i" ,
96
96
"spelling" : "unsigned int"
97
+ },
98
+ {
99
+ "kind" : "text ",
100
+ " spelling ": " ;"
97
101
}
98
102
],
99
103
" docComment ": {
@@ -241,6 +245,10 @@ struct Vehicle {
241
245
{
242
246
" kind ": " identifier ",
243
247
" spelling ": " Vehicle "
248
+ },
249
+ {
250
+ " kind ": " text ",
251
+ " spelling ": " ;"
244
252
}
245
253
],
246
254
" docComment ": {
Original file line number Diff line number Diff line change @@ -153,6 +153,10 @@ enum {
153
153
"kind" : "typeIdentifier" ,
154
154
"preciseIdentifier" : "c:i" ,
155
155
"spelling" : "unsigned int"
156
+ },
157
+ {
158
+ "kind" : "text ",
159
+ " spelling ": " ;"
156
160
}
157
161
],
158
162
" docComment ": {
@@ -461,6 +465,10 @@ enum {
461
465
"kind ": "typeIdentifier ",
462
466
"preciseIdentifier ": "c :c ",
463
467
"spelling ": "unsigned char "
468
+ },
469
+ {
470
+ "kind ": "text ",
471
+ "spelling ": ";"
464
472
}
465
473
],
466
474
"identifier ": {
@@ -684,6 +692,10 @@ enum {
684
692
"kind ": "typeIdentifier ",
685
693
"preciseIdentifier ": "c :i ",
686
694
"spelling ": "unsigned int "
695
+ },
696
+ {
697
+ "kind ": "text ",
698
+ "spelling ": ";"
687
699
}
688
700
],
689
701
"identifier ": {
@@ -772,6 +784,10 @@ enum {
772
784
"kind ": "typeIdentifier ",
773
785
"preciseIdentifier ": "c :i ",
774
786
"spelling ": "unsigned int "
787
+ },
788
+ {
789
+ "kind ": "text ",
790
+ "spelling ": ";"
775
791
}
776
792
],
777
793
"identifier ": {
Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ struct Color {
89
89
{
90
90
" kind ": " identifier ",
91
91
" spelling ": " Color "
92
+ },
93
+ {
94
+ " kind ": " text ",
95
+ " spelling ": " ;"
92
96
}
93
97
],
94
98
" docComment ": {
Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ typedef int MyInt;
66
66
{
67
67
"kind ": "identifier ",
68
68
"spelling ": "MyInt "
69
+ },
70
+ {
71
+ "kind ": "text ",
72
+ "spelling ": ";"
69
73
}
70
74
],
71
75
" identifier ": {
Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ typedef MyEnumEnum MyEnumEnumEnum;
75
75
{
76
76
" kind ": " identifier ",
77
77
" spelling ": " MyEnum "
78
+ },
79
+ {
80
+ " kind ": " text ",
81
+ " spelling ": " ;"
78
82
}
79
83
],
80
84
" identifier ": {
@@ -170,6 +174,10 @@ typedef MyEnumEnum MyEnumEnumEnum;
170
174
{
171
175
" kind ": " identifier ",
172
176
" spelling ": " MyStruct "
177
+ },
178
+ {
179
+ " kind ": " text ",
180
+ " spelling ": " ;"
173
181
}
174
182
],
175
183
" identifier ": {
@@ -223,6 +231,10 @@ typedef MyEnumEnum MyEnumEnumEnum;
223
231
{
224
232
" kind ": " identifier ",
225
233
" spelling ": " MyStructStruct "
234
+ },
235
+ {
236
+ " kind ": " text ",
237
+ " spelling ": " ;"
226
238
}
227
239
],
228
240
" identifier ": {
@@ -283,6 +295,10 @@ typedef MyEnumEnum MyEnumEnumEnum;
283
295
{
284
296
" kind ": " identifier ",
285
297
" spelling ": " MyStructStructStruct "
298
+ },
299
+ {
300
+ " kind ": " text ",
301
+ " spelling ": " ;"
286
302
}
287
303
],
288
304
" identifier ": {
@@ -343,6 +359,10 @@ typedef MyEnumEnum MyEnumEnumEnum;
343
359
{
344
360
" kind ": " identifier ",
345
361
" spelling ": " MyEnumEnum "
362
+ },
363
+ {
364
+ " kind ": " text ",
365
+ " spelling ": " ;"
346
366
}
347
367
],
348
368
" identifier ": {
@@ -403,6 +423,10 @@ typedef MyEnumEnum MyEnumEnumEnum;
403
423
{
404
424
" kind ": " identifier ",
405
425
" spelling ": " MyEnumEnumEnum "
426
+ },
427
+ {
428
+ " kind ": " text ",
429
+ " spelling ": " ;"
406
430
}
407
431
],
408
432
" identifier ": {
Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ typedef MyIntInt MyIntIntInt;
68
68
{
69
69
"kind ": "identifier ",
70
70
"spelling ": "MyInt "
71
+ },
72
+ {
73
+ "kind ": "text ",
74
+ "spelling ": ";"
71
75
}
72
76
],
73
77
" identifier ": {
@@ -128,6 +132,10 @@ typedef MyIntInt MyIntIntInt;
128
132
{
129
133
" kind ": " identifier ",
130
134
" spelling ": " MyIntInt "
135
+ },
136
+ {
137
+ " kind ": " text ",
138
+ " spelling ": " ;"
131
139
}
132
140
],
133
141
" identifier ": {
@@ -188,6 +196,10 @@ typedef MyIntInt MyIntIntInt;
188
196
{
189
197
" kind ": " identifier ",
190
198
" spelling ": " MyIntIntInt "
199
+ },
200
+ {
201
+ " kind ": " text ",
202
+ " spelling ": " ;"
191
203
}
192
204
],
193
205
" identifier ": {
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ typedef _HiddenTypedef ExposedTypedefToHidden;
135
135
{
136
136
" kind ": " identifier ",
137
137
" spelling ": " ExposedRecord "
138
+ },
139
+ {
140
+ " kind ": " text ",
141
+ " spelling ": " ;"
138
142
}
139
143
],
140
144
" identifier ": {
@@ -296,6 +300,10 @@ typedef _HiddenTypedef ExposedTypedefToHidden;
296
300
{
297
301
"kind ": "identifier ",
298
302
"spelling ": "ExposedTypedef "
303
+ },
304
+ {
305
+ "kind ": "text ",
306
+ "spelling ": ";"
299
307
}
300
308
],
301
309
" identifier ": {
@@ -356,6 +364,10 @@ typedef _HiddenTypedef ExposedTypedefToHidden;
356
364
{
357
365
" kind ": " identifier ",
358
366
" spelling ": " ExposedTypedefToHidden "
367
+ },
368
+ {
369
+ " kind ": " text ",
370
+ " spelling ": " ;"
359
371
}
360
372
],
361
373
" identifier ": {
You can’t perform that action at this time.
0 commit comments