blob: 4a3846be8d9bac2e1cddd51269637c93d8a34814 [file] [log] [blame]
Alex Lorenz9e7bf162017-04-18 14:33:39 +00001// 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
Erich Keane3efe0022018-07-20 14:13:28 +00005// CHECK: #pragma clang attribute supports 72 attributes:
Alex Lorenz9e7bf162017-04-18 14:33:39 +00006// 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: AlignValue (SubjectMatchRule_variable, SubjectMatchRule_type_alias)
13// CHECK-NEXT: AllocSize (SubjectMatchRule_function)
14// CHECK-NEXT: Annotate ()
Oren Ben Simhon220671a2018-03-17 13:31:35 +000015// CHECK-NEXT: AnyX86NoCfCheck (SubjectMatchRule_hasType_functionType)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000016// CHECK-NEXT: AssumeAligned (SubjectMatchRule_objc_method, SubjectMatchRule_function)
Alex Lorenz472cc792017-04-20 09:35:02 +000017// 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))
Erich Keane3efe0022018-07-20 14:13:28 +000018// CHECK-NEXT: CPUDispatch (SubjectMatchRule_function)
19// CHECK-NEXT: CPUSpecific (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000020// CHECK-NEXT: CXX11NoReturn (SubjectMatchRule_function)
21// CHECK-NEXT: CallableWhen (SubjectMatchRule_function_is_member)
22// CHECK-NEXT: CarriesDependency (SubjectMatchRule_variable_is_parameter, SubjectMatchRule_objc_method, SubjectMatchRule_function)
23// CHECK-NEXT: Consumable (SubjectMatchRule_record)
24// CHECK-NEXT: Convergent (SubjectMatchRule_function)
25// CHECK-NEXT: DLLExport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface)
26// CHECK-NEXT: DLLImport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface)
27// CHECK-NEXT: DisableTailCalls (SubjectMatchRule_function, SubjectMatchRule_objc_method)
28// CHECK-NEXT: EnableIf (SubjectMatchRule_function)
29// CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum)
Alex Lorenz24952fb2017-04-19 15:52:11 +000030// 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))
Alex Lorenz9e7bf162017-04-18 14:33:39 +000031// CHECK-NEXT: FlagEnum (SubjectMatchRule_enum)
32// CHECK-NEXT: Flatten (SubjectMatchRule_function)
33// CHECK-NEXT: IFunc (SubjectMatchRule_function)
34// CHECK-NEXT: InternalLinkage (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record)
35// CHECK-NEXT: LTOVisibilityPublic (SubjectMatchRule_record)
Simon Atanasyan2c87f532017-05-22 12:47:43 +000036// CHECK-NEXT: MicroMips (SubjectMatchRule_function)
Craig Topper74c10e32018-07-09 19:00:16 +000037// CHECK-NEXT: MinVectorWidth (SubjectMatchRule_function)
Simon Atanasyan1a116db2017-07-20 20:34:18 +000038// CHECK-NEXT: MipsLongCall (SubjectMatchRule_function)
39// CHECK-NEXT: MipsShortCall (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000040// CHECK-NEXT: NoDebug (SubjectMatchRule_hasType_functionType, SubjectMatchRule_objc_method, SubjectMatchRule_variable_not_is_parameter)
41// CHECK-NEXT: NoDuplicate (SubjectMatchRule_function)
Akira Hatanaka98a49332017-09-22 00:41:05 +000042// CHECK-NEXT: NoEscape (SubjectMatchRule_variable_is_parameter)
Simon Atanasyan2c87f532017-05-22 12:47:43 +000043// CHECK-NEXT: NoMicroMips (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000044// CHECK-NEXT: NoSanitize (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_variable_is_global)
45// CHECK-NEXT: NoSanitizeSpecific (SubjectMatchRule_function, SubjectMatchRule_variable_is_global)
46// CHECK-NEXT: NoSplitStack (SubjectMatchRule_function)
Manoj Guptad0c801f2018-05-09 22:05:53 +000047// CHECK-NEXT: NoStackProtector (SubjectMatchRule_function)
Erich Keanede22fe52017-09-28 20:08:03 +000048// CHECK-NEXT: NoThrow (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000049// CHECK-NEXT: NotTailCalled (SubjectMatchRule_function)
50// CHECK-NEXT: ObjCBoxable (SubjectMatchRule_record)
51// CHECK-NEXT: ObjCMethodFamily (SubjectMatchRule_objc_method)
52// CHECK-NEXT: ObjCRequiresSuper (SubjectMatchRule_objc_method)
53// CHECK-NEXT: ObjCRuntimeName (SubjectMatchRule_objc_interface, SubjectMatchRule_objc_protocol)
54// CHECK-NEXT: ObjCRuntimeVisible (SubjectMatchRule_objc_interface)
55// CHECK-NEXT: ObjCSubclassingRestricted (SubjectMatchRule_objc_interface)
Xiuli Panbe6da4b2017-05-04 07:31:20 +000056// CHECK-NEXT: OpenCLIntelReqdSubGroupSize (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000057// CHECK-NEXT: OpenCLNoSVM (SubjectMatchRule_variable)
58// CHECK-NEXT: OptimizeNone (SubjectMatchRule_function, SubjectMatchRule_objc_method)
59// CHECK-NEXT: Overloadable (SubjectMatchRule_function)
60// CHECK-NEXT: ParamTypestate (SubjectMatchRule_variable_is_parameter)
61// CHECK-NEXT: PassObjectSize (SubjectMatchRule_variable_is_parameter)
62// CHECK-NEXT: RenderScriptKernel (SubjectMatchRule_function)
63// CHECK-NEXT: RequireConstantInit (SubjectMatchRule_variable_is_global)
64// CHECK-NEXT: ReturnTypestate (SubjectMatchRule_function, SubjectMatchRule_variable_is_parameter)
65// CHECK-NEXT: ReturnsNonNull (SubjectMatchRule_objc_method, SubjectMatchRule_function)
66// CHECK-NEXT: Section (SubjectMatchRule_function, SubjectMatchRule_variable_is_global, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property)
67// CHECK-NEXT: SetTypestate (SubjectMatchRule_function_is_member)
68// CHECK-NEXT: SwiftContext (SubjectMatchRule_variable_is_parameter)
69// CHECK-NEXT: SwiftErrorResult (SubjectMatchRule_variable_is_parameter)
70// CHECK-NEXT: SwiftIndirectResult (SubjectMatchRule_variable_is_parameter)
71// CHECK-NEXT: TLSModel (SubjectMatchRule_variable_is_thread_local)
72// CHECK-NEXT: Target (SubjectMatchRule_function)
73// CHECK-NEXT: TestTypestate (SubjectMatchRule_function_is_member)
Akira Hatanaka02914dc2018-02-05 20:23:22 +000074// CHECK-NEXT: TrivialABI (SubjectMatchRule_record)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000075// CHECK-NEXT: WarnUnusedResult (SubjectMatchRule_objc_method, SubjectMatchRule_enum, SubjectMatchRule_record, SubjectMatchRule_hasType_functionType)
Aaron Ballmanadf66b62017-11-26 20:01:12 +000076// CHECK-NEXT: XRayInstrument (SubjectMatchRule_function, SubjectMatchRule_objc_method)
77// CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function, SubjectMatchRule_objc_method)