blob: 7529a2425d3e2693fed1547205cd6c49067d3215 [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
Akira Hatanaka98a49332017-09-22 00:41:05 +00005// CHECK: #pragma clang attribute supports 65 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 ()
15// CHECK-NEXT: AssumeAligned (SubjectMatchRule_objc_method, SubjectMatchRule_function)
Alex Lorenz472cc792017-04-20 09:35:02 +000016// 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 +000017// CHECK-NEXT: CXX11NoReturn (SubjectMatchRule_function)
18// CHECK-NEXT: CallableWhen (SubjectMatchRule_function_is_member)
19// CHECK-NEXT: CarriesDependency (SubjectMatchRule_variable_is_parameter, SubjectMatchRule_objc_method, SubjectMatchRule_function)
20// CHECK-NEXT: Consumable (SubjectMatchRule_record)
21// CHECK-NEXT: Convergent (SubjectMatchRule_function)
22// CHECK-NEXT: DLLExport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface)
23// CHECK-NEXT: DLLImport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface)
24// CHECK-NEXT: DisableTailCalls (SubjectMatchRule_function, SubjectMatchRule_objc_method)
25// CHECK-NEXT: EnableIf (SubjectMatchRule_function)
26// CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum)
Alex Lorenz24952fb2017-04-19 15:52:11 +000027// 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 +000028// CHECK-NEXT: FlagEnum (SubjectMatchRule_enum)
29// CHECK-NEXT: Flatten (SubjectMatchRule_function)
30// CHECK-NEXT: IFunc (SubjectMatchRule_function)
31// CHECK-NEXT: InternalLinkage (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record)
32// CHECK-NEXT: LTOVisibilityPublic (SubjectMatchRule_record)
Simon Atanasyan2c87f532017-05-22 12:47:43 +000033// CHECK-NEXT: MicroMips (SubjectMatchRule_function)
Simon Atanasyan1a116db2017-07-20 20:34:18 +000034// CHECK-NEXT: MipsLongCall (SubjectMatchRule_function)
35// CHECK-NEXT: MipsShortCall (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000036// CHECK-NEXT: NoDebug (SubjectMatchRule_hasType_functionType, SubjectMatchRule_objc_method, SubjectMatchRule_variable_not_is_parameter)
37// CHECK-NEXT: NoDuplicate (SubjectMatchRule_function)
Akira Hatanaka98a49332017-09-22 00:41:05 +000038// CHECK-NEXT: NoEscape (SubjectMatchRule_variable_is_parameter)
Simon Atanasyan2c87f532017-05-22 12:47:43 +000039// CHECK-NEXT: NoMicroMips (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000040// CHECK-NEXT: NoSanitize (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_variable_is_global)
41// CHECK-NEXT: NoSanitizeSpecific (SubjectMatchRule_function, SubjectMatchRule_variable_is_global)
42// CHECK-NEXT: NoSplitStack (SubjectMatchRule_function)
43// CHECK-NEXT: NotTailCalled (SubjectMatchRule_function)
44// CHECK-NEXT: ObjCBoxable (SubjectMatchRule_record)
45// CHECK-NEXT: ObjCMethodFamily (SubjectMatchRule_objc_method)
46// CHECK-NEXT: ObjCRequiresSuper (SubjectMatchRule_objc_method)
47// CHECK-NEXT: ObjCRuntimeName (SubjectMatchRule_objc_interface, SubjectMatchRule_objc_protocol)
48// CHECK-NEXT: ObjCRuntimeVisible (SubjectMatchRule_objc_interface)
49// CHECK-NEXT: ObjCSubclassingRestricted (SubjectMatchRule_objc_interface)
Xiuli Panbe6da4b2017-05-04 07:31:20 +000050// CHECK-NEXT: OpenCLIntelReqdSubGroupSize (SubjectMatchRule_function)
Alex Lorenz9e7bf162017-04-18 14:33:39 +000051// CHECK-NEXT: OpenCLNoSVM (SubjectMatchRule_variable)
52// CHECK-NEXT: OptimizeNone (SubjectMatchRule_function, SubjectMatchRule_objc_method)
53// CHECK-NEXT: Overloadable (SubjectMatchRule_function)
54// CHECK-NEXT: ParamTypestate (SubjectMatchRule_variable_is_parameter)
55// CHECK-NEXT: PassObjectSize (SubjectMatchRule_variable_is_parameter)
56// CHECK-NEXT: RenderScriptKernel (SubjectMatchRule_function)
57// CHECK-NEXT: RequireConstantInit (SubjectMatchRule_variable_is_global)
58// CHECK-NEXT: ReturnTypestate (SubjectMatchRule_function, SubjectMatchRule_variable_is_parameter)
59// CHECK-NEXT: ReturnsNonNull (SubjectMatchRule_objc_method, SubjectMatchRule_function)
60// CHECK-NEXT: Section (SubjectMatchRule_function, SubjectMatchRule_variable_is_global, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property)
61// CHECK-NEXT: SetTypestate (SubjectMatchRule_function_is_member)
62// CHECK-NEXT: SwiftContext (SubjectMatchRule_variable_is_parameter)
63// CHECK-NEXT: SwiftErrorResult (SubjectMatchRule_variable_is_parameter)
64// CHECK-NEXT: SwiftIndirectResult (SubjectMatchRule_variable_is_parameter)
65// CHECK-NEXT: TLSModel (SubjectMatchRule_variable_is_thread_local)
66// CHECK-NEXT: Target (SubjectMatchRule_function)
67// CHECK-NEXT: TestTypestate (SubjectMatchRule_function_is_member)
68// CHECK-NEXT: WarnUnusedResult (SubjectMatchRule_objc_method, SubjectMatchRule_enum, SubjectMatchRule_record, SubjectMatchRule_hasType_functionType)
69// CHECK-NEXT: XRayInstrument (SubjectMatchRule_function_is_member, SubjectMatchRule_objc_method, SubjectMatchRule_function)
70// CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function_is_member, SubjectMatchRule_objc_method, SubjectMatchRule_function)