File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2347,6 +2347,7 @@ def SwiftAttr : InheritableAttr {
2347
2347
let Spellings = [GNU<"swift_attr">];
2348
2348
let Args = [StringArgument<"Attribute">];
2349
2349
let Documentation = [SwiftAttrDocs];
2350
+ let PragmaAttributeSupport = 1;
2350
2351
}
2351
2352
2352
2353
def SwiftBridge : InheritableAttr {
Original file line number Diff line number Diff line change 1
- // RUN: %clang_cc1 -fsyntax-only -ast-dump %s | FileCheck %s
1
+ // RUN: not %clang_cc1 -fsyntax-only -ast-dump %s | FileCheck %s
2
2
3
3
__attribute__ ((swift_attr(" @actor" )))
4
4
@interface View
5
5
@end
6
6
7
- // CHECK: InterfaceDecl {{.*}} View
7
+ // CHECK-LABEL : InterfaceDecl {{.*}} View
8
8
// CHECK-NEXT: SwiftAttrAttr {{.*}} "@actor"
9
+
10
+ #pragma clang attribute push(__attribute__((swift_attr("@sendable"))), apply_to=objc_interface)
11
+ @interface Contact
12
+ @end
13
+ #pragma clang attribute pop
14
+
15
+ // CHECK-LABEL: InterfaceDecl {{.*}} Contact
16
+ // CHECK-NEXT: SwiftAttrAttr {{.*}} "@sendable"
Original file line number Diff line number Diff line change 161
161
// CHECK-NEXT: SwiftAsyncContext (SubjectMatchRule_variable_is_parameter)
162
162
// CHECK-NEXT: SwiftAsyncError (SubjectMatchRule_function, SubjectMatchRule_objc_method)
163
163
// CHECK-NEXT: SwiftAsyncName (SubjectMatchRule_objc_method, SubjectMatchRule_function)
164
+ // CHECK-NEXT: SwiftAttr ()
164
165
// CHECK-NEXT: SwiftBridgedTypedef (SubjectMatchRule_type_alias)
165
166
// CHECK-NEXT: SwiftContext (SubjectMatchRule_variable_is_parameter)
166
167
// CHECK-NEXT: SwiftError (SubjectMatchRule_function, SubjectMatchRule_objc_method)
You can’t perform that action at this time.
0 commit comments