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 @@ -2357,6 +2357,7 @@ def SwiftAttr : InheritableAttr {
2357
2357
let Spellings = [GNU<"swift_attr">];
2358
2358
let Args = [StringArgument<"Attribute">];
2359
2359
let Documentation = [SwiftAttrDocs];
2360
+ let PragmaAttributeSupport = 1;
2360
2361
}
2361
2362
2362
2363
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 164
164
// CHECK-NEXT: SwiftAsyncContext (SubjectMatchRule_variable_is_parameter)
165
165
// CHECK-NEXT: SwiftAsyncError (SubjectMatchRule_function, SubjectMatchRule_objc_method)
166
166
// CHECK-NEXT: SwiftAsyncName (SubjectMatchRule_objc_method, SubjectMatchRule_function)
167
+ // CHECK-NEXT: SwiftAttr ()
167
168
// CHECK-NEXT: SwiftBridgedTypedef (SubjectMatchRule_type_alias)
168
169
// CHECK-NEXT: SwiftContext (SubjectMatchRule_variable_is_parameter)
169
170
// CHECK-NEXT: SwiftError (SubjectMatchRule_function, SubjectMatchRule_objc_method)
You can’t perform that action at this time.
0 commit comments