blob: dd8d09e061da3a6c77dbcec9689a7e2f1fdd276d [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
Manoj Guptad0c801f2018-05-09 22:05:53 +00005// CHECK: #pragma clang attribute supports 69 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))
Alex Lorenz9e7bf162017-04-18 14:33:39 +000018// CHECK-NEXT: CXX11NoReturn (SubjectMatchRule_function)
19// CHECK-NEXT: CallableWhen (SubjectMatchRule_function_is_member)
20// CHECK-NEXT: CarriesDependency (SubjectMatchRule_variable_is_parameter, SubjectMatchRule_objc_method, SubjectMatchRule_function)
21// CHECK-NEXT: Consumable (SubjectMatchRule_record)
22// CHECK-NEXT: Convergent (SubjectMatchRule_function)
23// CHECK-NEXT: DLLExport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface)
24// CHECK-NEXT: DLLImport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface)
25// CHECK-NEXT: DisableTailCalls (SubjectMatchRule_function, SubjectMatchRule_objc_method)
26// CHECK-NEXT: EnableIf (SubjectMatchRule_function)
27// CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum)
Alex Lorenz24952fb2017-04-19 15:52:11 +000028// 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 +000029// CHECK-NEXT: FlagEnum (SubjectMatchRule_enum)
30// CHECK-NEXT: Flatten (SubjectMatchRule_function)
31// CHECK-NEXT: IFunc (SubjectMatchRule_function)
32// CHECK-NEXT: InternalLinkage (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record)
33// CHECK-NEXT: LTOVisibilityPublic (SubjectMatchRule_record)
Simon Atanasyan2c87f532017-05-22 12:47:43 +000034// CHECK-NEXT: MicroMips (SubjectMatchRule_function)
Simon Atanasyan1a116db2017-07-20 20:34:18 +000035// CHECK-NEXT: MipsLongCall (SubjectMatchRule_function)
36// CHECK-NEXT: MipsShortCall (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000037// CHECK-NEXT: NoDebug (SubjectMatchRule_hasType_functionType, SubjectMatchRule_objc_method, SubjectMatchRule_variable_not_is_parameter)
38// CHECK-NEXT: NoDuplicate (SubjectMatchRule_function)
Akira Hatanaka98a49332017-09-22 00:41:05 +000039// CHECK-NEXT: NoEscape (SubjectMatchRule_variable_is_parameter)
Simon Atanasyan2c87f532017-05-22 12:47:43 +000040// CHECK-NEXT: NoMicroMips (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000041// CHECK-NEXT: NoSanitize (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_variable_is_global)
42// CHECK-NEXT: NoSanitizeSpecific (SubjectMatchRule_function, SubjectMatchRule_variable_is_global)
43// CHECK-NEXT: NoSplitStack (SubjectMatchRule_function)
Manoj Guptad0c801f2018-05-09 22:05:53 +000044// CHECK-NEXT: NoStackProtector (SubjectMatchRule_function)
Erich Keanede22fe52017-09-28 20:08:03 +000045// CHECK-NEXT: NoThrow (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000046// CHECK-NEXT: NotTailCalled (SubjectMatchRule_function)
47// CHECK-NEXT: ObjCBoxable (SubjectMatchRule_record)
48// CHECK-NEXT: ObjCMethodFamily (SubjectMatchRule_objc_method)
49// CHECK-NEXT: ObjCRequiresSuper (SubjectMatchRule_objc_method)
50// CHECK-NEXT: ObjCRuntimeName (SubjectMatchRule_objc_interface, SubjectMatchRule_objc_protocol)
51// CHECK-NEXT: ObjCRuntimeVisible (SubjectMatchRule_objc_interface)
52// CHECK-NEXT: ObjCSubclassingRestricted (SubjectMatchRule_objc_interface)
Xiuli Panbe6da4b2017-05-04 07:31:20 +000053// CHECK-NEXT: OpenCLIntelReqdSubGroupSize (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000054// CHECK-NEXT: OpenCLNoSVM (SubjectMatchRule_variable)
55// CHECK-NEXT: OptimizeNone (SubjectMatchRule_function, SubjectMatchRule_objc_method)
56// CHECK-NEXT: Overloadable (SubjectMatchRule_function)
57// CHECK-NEXT: ParamTypestate (SubjectMatchRule_variable_is_parameter)
58// CHECK-NEXT: PassObjectSize (SubjectMatchRule_variable_is_parameter)
59// CHECK-NEXT: RenderScriptKernel (SubjectMatchRule_function)
60// CHECK-NEXT: RequireConstantInit (SubjectMatchRule_variable_is_global)
61// CHECK-NEXT: ReturnTypestate (SubjectMatchRule_function, SubjectMatchRule_variable_is_parameter)
62// CHECK-NEXT: ReturnsNonNull (SubjectMatchRule_objc_method, SubjectMatchRule_function)
63// CHECK-NEXT: Section (SubjectMatchRule_function, SubjectMatchRule_variable_is_global, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property)
64// CHECK-NEXT: SetTypestate (SubjectMatchRule_function_is_member)
65// CHECK-NEXT: SwiftContext (SubjectMatchRule_variable_is_parameter)
66// CHECK-NEXT: SwiftErrorResult (SubjectMatchRule_variable_is_parameter)
67// CHECK-NEXT: SwiftIndirectResult (SubjectMatchRule_variable_is_parameter)
68// CHECK-NEXT: TLSModel (SubjectMatchRule_variable_is_thread_local)
69// CHECK-NEXT: Target (SubjectMatchRule_function)
70// CHECK-NEXT: TestTypestate (SubjectMatchRule_function_is_member)
Akira Hatanaka02914dc2018-02-05 20:23:22 +000071// CHECK-NEXT: TrivialABI (SubjectMatchRule_record)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000072// CHECK-NEXT: WarnUnusedResult (SubjectMatchRule_objc_method, SubjectMatchRule_enum, SubjectMatchRule_record, SubjectMatchRule_hasType_functionType)
Aaron Ballmanadf66b62017-11-26 20:01:12 +000073// CHECK-NEXT: XRayInstrument (SubjectMatchRule_function, SubjectMatchRule_objc_method)
74// CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function, SubjectMatchRule_objc_method)