File tree Expand file tree Collapse file tree 7 files changed +86050
-61857
lines changed Expand file tree Collapse file tree 7 files changed +86050
-61857
lines changed Original file line number Diff line number Diff line change 10
10
#define NODE_ANNOTATION_CHANGE_KIND(NAME) NODE_ANNOTATION(NAME)
11
11
#endif
12
12
13
- #ifndef DECL_ATTR
14
- #define DECL_ATTR(NAME)
15
- #endif
16
-
17
13
#ifndef KEY
18
14
#define KEY(NAME)
19
15
#endif
@@ -96,9 +92,6 @@ NODE_ANNOTATION_CHANGE_KIND(Rename)
96
92
// Keep type rewritten the last one.
97
93
NODE_ANNOTATION_CHANGE_KIND(TypeRewritten)
98
94
99
- DECL_ATTR(deprecated)
100
- DECL_ATTR(fixedLayout)
101
-
102
95
KEY(kind)
103
96
KEY(name)
104
97
KEY(selfIndex)
@@ -110,6 +103,7 @@ KEY(moduleName)
110
103
KEY(throwing)
111
104
KEY(mutating)
112
105
KEY(static)
106
+ KEY(deprecated)
113
107
KEY(typeAttributes)
114
108
KEY(declAttributes)
115
109
KEY(declKind)
@@ -183,7 +177,6 @@ SPECIAL_CASE_ID(UIApplicationMain)
183
177
#undef KNOWN_TYPE
184
178
#undef KNOWN_PROTOCOL
185
179
#undef KEY
186
- #undef DECL_ATTR
187
180
#undef NODE_ANNOTATION_CHANGE_KIND
188
181
#undef NODE_ANNOTATION
189
182
#undef NODE_KIND
Original file line number Diff line number Diff line change 34
34
" P2"
35
35
],
36
36
"declAttributes" : [
37
- " fixedLayout "
37
+ " FixedLayout "
38
38
],
39
39
"children" : [
40
40
{
231
231
"usr" : " s:4cake2C1C3InsACSgXwvp" ,
232
232
"location" : " " ,
233
233
"moduleName" : " cake" ,
234
+ "declAttributes" : [
235
+ " ReferenceOwnership"
236
+ ],
234
237
"ownership" : 1 ,
235
238
"children" : [
236
239
{
246
249
"usr" : " s:4cake2C1C3InsACSgXwvg" ,
247
250
"location" : " " ,
248
251
"moduleName" : " cake" ,
252
+ "declAttributes" : [
253
+ " Transparent"
254
+ ],
249
255
"children" : [
250
256
{
251
257
"kind" : " TypeNominal" ,
271
277
"usr" : " s:4cake2C1C3InsACSgXwvs" ,
272
278
"location" : " " ,
273
279
"moduleName" : " cake" ,
280
+ "declAttributes" : [
281
+ " Transparent"
282
+ ],
274
283
"children" : [
275
284
{
276
285
"kind" : " TypeNominal" ,
303
312
"usr" : " s:4cake2C1C4Ins2ACXovp" ,
304
313
"location" : " " ,
305
314
"moduleName" : " cake" ,
315
+ "declAttributes" : [
316
+ " ReferenceOwnership"
317
+ ],
306
318
"ownership" : 2 ,
307
319
"children" : [
308
320
{
318
330
"usr" : " s:4cake2C1C4Ins2ACXovg" ,
319
331
"location" : " " ,
320
332
"moduleName" : " cake" ,
333
+ "declAttributes" : [
334
+ " Transparent"
335
+ ],
321
336
"children" : [
322
337
{
323
338
"kind" : " TypeNominal" ,
335
350
"usr" : " s:4cake2C1C4Ins2ACXovs" ,
336
351
"location" : " " ,
337
352
"moduleName" : " cake" ,
353
+ "declAttributes" : [
354
+ " Transparent"
355
+ ],
338
356
"children" : [
339
357
{
340
358
"kind" : " TypeNominal" ,
561
579
"usr" : " s:4cake6NumberO8rawValueACSgSi_tcfc" ,
562
580
"location" : " " ,
563
581
"moduleName" : " cake" ,
582
+ "declAttributes" : [
583
+ " Inlinable"
584
+ ],
564
585
"children" : [
565
586
{
566
587
"kind" : " TypeNominal" ,
607
628
"usr" : " s:4cake6NumberO8rawValueSivg" ,
608
629
"location" : " " ,
609
630
"moduleName" : " cake" ,
631
+ "declAttributes" : [
632
+ " Inlinable"
633
+ ],
610
634
"children" : [
611
635
{
612
636
"kind" : " TypeNominal" ,
687
711
" CVarArg"
688
712
],
689
713
"declAttributes" : [
690
- " fixedLayout "
714
+ " FixedLayout "
691
715
],
692
716
"children" : [
693
717
{
Original file line number Diff line number Diff line change 16
16
"ObjcProt",
17
17
"NSObjectProtocol"
18
18
],
19
+ "declAttributes": [
20
+ "ObjC"
21
+ ],
19
22
"children": [
20
23
{
21
24
"kind": "Function",
25
28
"usr": "c:objc(cs)ClangInterface(im)someFunction",
26
29
"location": "",
27
30
"moduleName": "Foo",
31
+ "declAttributes": [
32
+ "ObjC"
33
+ ],
28
34
"children": [
29
35
{
30
36
"kind": "TypeNameAlias",
48
54
"usr": "c:objc(cs)NSObject(im)init",
49
55
"location": "",
50
56
"moduleName": "Foo",
57
+ "declAttributes": [
58
+ "Override",
59
+ "ObjC"
60
+ ],
51
61
"children": [
52
62
{
53
63
"kind": "TypeNominal",
67
77
"usr": "c:objc(pl)ObjcProt",
68
78
"location": "",
69
79
"moduleName": "Foo",
80
+ "declAttributes": [
81
+ "ObjC"
82
+ ],
70
83
"children": [
71
84
{
72
85
"kind": "Function",
76
89
"usr": "c:objc(pl)ObjcProt(im)someFunctionFromProt",
77
90
"location": "",
78
91
"moduleName": "Foo",
92
+ "declAttributes": [
93
+ "ObjC"
94
+ ],
79
95
"children": [
80
96
{
81
97
"kind": "TypeNameAlias",
Original file line number Diff line number Diff line change 5
5
// RUN: %api-digester -diagnose-sdk -input-paths %S/stdlib-stable.json -input-paths %t.tmp/current-stdlib.json >> %t.tmp/changes.txt
6
6
// RUN: %clang -E -P -x c %S/source-stability.swift.expected -o - | sed '/^\s*$/d' > %t.tmp/source-stability.swift.expected
7
7
// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' > %t.tmp/changes.txt.tmp
8
- // RUN: diff -u %t.tmp/source-stability.swift.expected %t.tmp/changes.txt.tmp ; rm -rf %S/tmp
8
+ // RUN: diff -u %t.tmp/source-stability.swift.expected %t.tmp/changes.txt.tmp
You can’t perform that action at this time.
0 commit comments