1 | // RUN: clang-tblgen -gen-clang-test-pragma-attribute-supported-attributes -I%src_include_dir %src_include_dir/clang/Basic/Attr.td -o - | FileCheck %s |
2 | |
3 | // The number of supported attributes should never go down! |
4 | |
5 | // CHECK: #pragma clang attribute supports the following attributes: |
6 | // CHECK-NEXT: AMDGPUFlatWorkGroupSize (SubjectMatchRule_function) |
7 | // CHECK-NEXT: AMDGPUNumSGPR (SubjectMatchRule_function) |
8 | // CHECK-NEXT: AMDGPUNumVGPR (SubjectMatchRule_function) |
9 | // CHECK-NEXT: AMDGPUWavesPerEU (SubjectMatchRule_function) |
10 | // CHECK-NEXT: AVRSignal (SubjectMatchRule_function) |
11 | // CHECK-NEXT: AbiTag (SubjectMatchRule_record_not_is_union, SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_namespace) |
12 | // CHECK-NEXT: Alias (SubjectMatchRule_function, SubjectMatchRule_variable_is_global) |
13 | // CHECK-NEXT: AlignValue (SubjectMatchRule_variable, SubjectMatchRule_type_alias) |
14 | // CHECK-NEXT: AllocSize (SubjectMatchRule_function) |
15 | // CHECK-NEXT: AlwaysDestroy (SubjectMatchRule_variable) |
16 | // CHECK-NEXT: AlwaysInline (SubjectMatchRule_function) |
17 | // CHECK-NEXT: Annotate () |
18 | // CHECK-NEXT: AnyX86NoCfCheck (SubjectMatchRule_hasType_functionType) |
19 | // CHECK-NEXT: ArcWeakrefUnavailable (SubjectMatchRule_objc_interface) |
20 | // CHECK-NEXT: AssumeAligned (SubjectMatchRule_objc_method, SubjectMatchRule_function) |
21 | // CHECK-NEXT: Availability ((SubjectMatchRule_record, SubjectMatchRule_enum, SubjectMatchRule_enum_constant, SubjectMatchRule_field, SubjectMatchRule_function, SubjectMatchRule_namespace, SubjectMatchRule_objc_category, SubjectMatchRule_objc_interface, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property, SubjectMatchRule_objc_protocol, SubjectMatchRule_record, SubjectMatchRule_type_alias, SubjectMatchRule_variable)) |
22 | // CHECK-NEXT: CFAuditedTransfer (SubjectMatchRule_function) |
23 | // CHECK-NEXT: CFConsumed (SubjectMatchRule_variable_is_parameter) |
24 | // CHECK-NEXT: CFUnknownTransfer (SubjectMatchRule_function) |
25 | // CHECK-NEXT: CPUDispatch (SubjectMatchRule_function) |
26 | // CHECK-NEXT: CPUSpecific (SubjectMatchRule_function) |
27 | // CHECK-NEXT: CUDAConstant (SubjectMatchRule_variable) |
28 | // CHECK-NEXT: CUDADevice (SubjectMatchRule_function, SubjectMatchRule_variable) |
29 | // CHECK-NEXT: CUDAGlobal (SubjectMatchRule_function) |
30 | // CHECK-NEXT: CUDAHost (SubjectMatchRule_function) |
31 | // CHECK-NEXT: CUDALaunchBounds (SubjectMatchRule_objc_method, SubjectMatchRule_hasType_functionType) |
32 | // CHECK-NEXT: CUDAShared (SubjectMatchRule_variable) |
33 | // CHECK-NEXT: CXX11NoReturn (SubjectMatchRule_function) |
34 | // CHECK-NEXT: CallableWhen (SubjectMatchRule_function_is_member) |
35 | // CHECK-NEXT: Callback (SubjectMatchRule_function) |
36 | // CHECK-NEXT: Capability (SubjectMatchRule_record, SubjectMatchRule_type_alias) |
37 | // CHECK-NEXT: CarriesDependency (SubjectMatchRule_variable_is_parameter, SubjectMatchRule_objc_method, SubjectMatchRule_function) |
38 | // CHECK-NEXT: Cold (SubjectMatchRule_function) |
39 | // CHECK-NEXT: Common (SubjectMatchRule_variable) |
40 | // CHECK-NEXT: Constructor (SubjectMatchRule_function) |
41 | // CHECK-NEXT: Consumable (SubjectMatchRule_record) |
42 | // CHECK-NEXT: ConsumableAutoCast (SubjectMatchRule_record) |
43 | // CHECK-NEXT: ConsumableSetOnRead (SubjectMatchRule_record) |
44 | // CHECK-NEXT: Convergent (SubjectMatchRule_function) |
45 | // CHECK-NEXT: DLLExport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface) |
46 | // CHECK-NEXT: DLLImport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface) |
47 | // CHECK-NEXT: Destructor (SubjectMatchRule_function) |
48 | // CHECK-NEXT: DisableTailCalls (SubjectMatchRule_function, SubjectMatchRule_objc_method) |
49 | // CHECK-NEXT: EnableIf (SubjectMatchRule_function) |
50 | // CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum) |
51 | // CHECK-NEXT: ExcludeFromExplicitInstantiation (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record) |
52 | // CHECK-NEXT: ExternalSourceSymbol ((SubjectMatchRule_record, SubjectMatchRule_enum, SubjectMatchRule_enum_constant, SubjectMatchRule_field, SubjectMatchRule_function, SubjectMatchRule_namespace, SubjectMatchRule_objc_category, SubjectMatchRule_objc_interface, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property, SubjectMatchRule_objc_protocol, SubjectMatchRule_record, SubjectMatchRule_type_alias, SubjectMatchRule_variable)) |
53 | // CHECK-NEXT: FlagEnum (SubjectMatchRule_enum) |
54 | // CHECK-NEXT: Flatten (SubjectMatchRule_function) |
55 | // CHECK-NEXT: GNUInline (SubjectMatchRule_function) |
56 | // CHECK-NEXT: Hot (SubjectMatchRule_function) |
57 | // CHECK-NEXT: IBAction (SubjectMatchRule_objc_method_is_instance) |
58 | // CHECK-NEXT: IFunc (SubjectMatchRule_function) |
59 | // CHECK-NEXT: InitPriority (SubjectMatchRule_variable) |
60 | // CHECK-NEXT: InternalLinkage (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record) |
61 | // CHECK-NEXT: LTOVisibilityPublic (SubjectMatchRule_record) |
62 | // CHECK-NEXT: Lockable (SubjectMatchRule_record) |
63 | // CHECK-NEXT: MIGServerRoutine (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_block) |
64 | // CHECK-NEXT: MSStruct (SubjectMatchRule_record) |
65 | // CHECK-NEXT: MicroMips (SubjectMatchRule_function) |
66 | // CHECK-NEXT: MinSize (SubjectMatchRule_function, SubjectMatchRule_objc_method) |
67 | // CHECK-NEXT: MinVectorWidth (SubjectMatchRule_function) |
68 | // CHECK-NEXT: Mips16 (SubjectMatchRule_function) |
69 | // CHECK-NEXT: MipsLongCall (SubjectMatchRule_function) |
70 | // CHECK-NEXT: MipsShortCall (SubjectMatchRule_function) |
71 | // CHECK-NEXT: NSConsumed (SubjectMatchRule_variable_is_parameter) |
72 | // CHECK-NEXT: NSConsumesSelf (SubjectMatchRule_objc_method) |
73 | // CHECK-NEXT: Naked (SubjectMatchRule_function) |
74 | // CHECK-NEXT: NoCommon (SubjectMatchRule_variable) |
75 | // CHECK-NEXT: NoDebug (SubjectMatchRule_hasType_functionType, SubjectMatchRule_objc_method, SubjectMatchRule_variable_not_is_parameter) |
76 | // CHECK-NEXT: NoDestroy (SubjectMatchRule_variable) |
77 | // CHECK-NEXT: NoDuplicate (SubjectMatchRule_function) |
78 | // CHECK-NEXT: NoEscape (SubjectMatchRule_variable_is_parameter) |
79 | // CHECK-NEXT: NoInline (SubjectMatchRule_function) |
80 | // CHECK-NEXT: NoInstrumentFunction (SubjectMatchRule_function) |
81 | // CHECK-NEXT: NoMicroMips (SubjectMatchRule_function) |
82 | // CHECK-NEXT: NoMips16 (SubjectMatchRule_function) |
83 | // CHECK-NEXT: NoSanitize (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_variable_is_global) |
84 | // CHECK-NEXT: NoSanitizeSpecific (SubjectMatchRule_function, SubjectMatchRule_variable_is_global) |
85 | // CHECK-NEXT: NoSpeculativeLoadHardening (SubjectMatchRule_function, SubjectMatchRule_objc_method) |
86 | // CHECK-NEXT: NoSplitStack (SubjectMatchRule_function) |
87 | // CHECK-NEXT: NoStackProtector (SubjectMatchRule_function) |
88 | // CHECK-NEXT: NoThreadSafetyAnalysis (SubjectMatchRule_function) |
89 | // CHECK-NEXT: NoThrow (SubjectMatchRule_function) |
90 | // CHECK-NEXT: NotTailCalled (SubjectMatchRule_function) |
91 | // CHECK-NEXT: OSConsumed (SubjectMatchRule_variable_is_parameter) |
92 | // CHECK-NEXT: OSReturnsNotRetained (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property, SubjectMatchRule_variable_is_parameter) |
93 | // CHECK-NEXT: OSReturnsRetained (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property, SubjectMatchRule_variable_is_parameter) |
94 | // CHECK-NEXT: OSReturnsRetainedOnNonZero (SubjectMatchRule_variable_is_parameter) |
95 | // CHECK-NEXT: OSReturnsRetainedOnZero (SubjectMatchRule_variable_is_parameter) |
96 | // CHECK-NEXT: ObjCBoxable (SubjectMatchRule_record) |
97 | // CHECK-NEXT: ObjCBridge (SubjectMatchRule_record, SubjectMatchRule_type_alias) |
98 | // CHECK-NEXT: ObjCBridgeMutable (SubjectMatchRule_record) |
99 | // CHECK-NEXT: ObjCBridgeRelated (SubjectMatchRule_record) |
100 | // CHECK-NEXT: ObjCDesignatedInitializer (SubjectMatchRule_objc_method) |
101 | // CHECK-NEXT: ObjCException (SubjectMatchRule_objc_interface) |
102 | // CHECK-NEXT: ObjCExplicitProtocolImpl (SubjectMatchRule_objc_protocol) |
103 | // CHECK-NEXT: ObjCExternallyRetained (SubjectMatchRule_variable_not_is_parameter, SubjectMatchRule_function, SubjectMatchRule_block, SubjectMatchRule_objc_method) |
104 | // CHECK-NEXT: ObjCMethodFamily (SubjectMatchRule_objc_method) |
105 | // CHECK-NEXT: ObjCNonLazyClass (SubjectMatchRule_objc_interface) |
106 | // CHECK-NEXT: ObjCPreciseLifetime (SubjectMatchRule_variable) |
107 | // CHECK-NEXT: ObjCRequiresPropertyDefs (SubjectMatchRule_objc_interface) |
108 | // CHECK-NEXT: ObjCRequiresSuper (SubjectMatchRule_objc_method) |
109 | // CHECK-NEXT: ObjCReturnsInnerPointer (SubjectMatchRule_objc_method, SubjectMatchRule_objc_property) |
110 | // CHECK-NEXT: ObjCRootClass (SubjectMatchRule_objc_interface) |
111 | // CHECK-NEXT: ObjCRuntimeName (SubjectMatchRule_objc_interface, SubjectMatchRule_objc_protocol) |
112 | // CHECK-NEXT: ObjCRuntimeVisible (SubjectMatchRule_objc_interface) |
113 | // CHECK-NEXT: ObjCSubclassingRestricted (SubjectMatchRule_objc_interface) |
114 | // CHECK-NEXT: OpenCLIntelReqdSubGroupSize (SubjectMatchRule_function) |
115 | // CHECK-NEXT: OpenCLNoSVM (SubjectMatchRule_variable) |
116 | // CHECK-NEXT: OptimizeNone (SubjectMatchRule_function, SubjectMatchRule_objc_method) |
117 | // CHECK-NEXT: Overloadable (SubjectMatchRule_function) |
118 | // CHECK-NEXT: ParamTypestate (SubjectMatchRule_variable_is_parameter) |
119 | // CHECK-NEXT: PassObjectSize (SubjectMatchRule_variable_is_parameter) |
120 | // CHECK-NEXT: RenderScriptKernel (SubjectMatchRule_function) |
121 | // CHECK-NEXT: ReqdWorkGroupSize (SubjectMatchRule_function) |
122 | // CHECK-NEXT: RequireConstantInit (SubjectMatchRule_variable_is_global) |
123 | // CHECK-NEXT: Restrict (SubjectMatchRule_function) |
124 | // CHECK-NEXT: ReturnTypestate (SubjectMatchRule_function, SubjectMatchRule_variable_is_parameter) |
125 | // CHECK-NEXT: ReturnsNonNull (SubjectMatchRule_objc_method, SubjectMatchRule_function) |
126 | // CHECK-NEXT: ReturnsTwice (SubjectMatchRule_function) |
127 | // CHECK-NEXT: ScopedLockable (SubjectMatchRule_record) |
128 | // CHECK-NEXT: Section (SubjectMatchRule_function, SubjectMatchRule_variable_is_global, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property) |
129 | // CHECK-NEXT: SetTypestate (SubjectMatchRule_function_is_member) |
130 | // CHECK-NEXT: SpeculativeLoadHardening (SubjectMatchRule_function, SubjectMatchRule_objc_method) |
131 | // CHECK-NEXT: SwiftContext (SubjectMatchRule_variable_is_parameter) |
132 | // CHECK-NEXT: SwiftErrorResult (SubjectMatchRule_variable_is_parameter) |
133 | // CHECK-NEXT: SwiftIndirectResult (SubjectMatchRule_variable_is_parameter) |
134 | // CHECK-NEXT: TLSModel (SubjectMatchRule_variable_is_thread_local) |
135 | // CHECK-NEXT: Target (SubjectMatchRule_function) |
136 | // CHECK-NEXT: TestTypestate (SubjectMatchRule_function_is_member) |
137 | // CHECK-NEXT: TrivialABI (SubjectMatchRule_record) |
138 | // CHECK-NEXT: VecReturn (SubjectMatchRule_record) |
139 | // CHECK-NEXT: VecTypeHint (SubjectMatchRule_function) |
140 | // CHECK-NEXT: WarnUnused (SubjectMatchRule_record) |
141 | // CHECK-NEXT: WarnUnusedResult (SubjectMatchRule_objc_method, SubjectMatchRule_enum, SubjectMatchRule_record, SubjectMatchRule_hasType_functionType) |
142 | // CHECK-NEXT: Weak (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record) |
143 | // CHECK-NEXT: WeakRef (SubjectMatchRule_variable, SubjectMatchRule_function) |
144 | // CHECK-NEXT: WebAssemblyImportModule (SubjectMatchRule_function) |
145 | // CHECK-NEXT: WebAssemblyImportName (SubjectMatchRule_function) |
146 | // CHECK-NEXT: WorkGroupSizeHint (SubjectMatchRule_function) |
147 | // CHECK-NEXT: XRayInstrument (SubjectMatchRule_function, SubjectMatchRule_objc_method) |
148 | // CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function, SubjectMatchRule_objc_method) |
149 | // CHECK-NEXT: End of supported attributes. |
150 | |