Alex Lorenz | 9e7bf16 | 2017-04-18 14:33:39 +0000 | [diff] [blame] | 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 | |
Alex Lorenz | 472cc79 | 2017-04-20 09:35:02 +0000 | [diff] [blame^] | 5 | // CHECK: #pragma clang attribute supports 59 attributes: |
Alex Lorenz | 9e7bf16 | 2017-04-18 14:33:39 +0000 | [diff] [blame] | 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: 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 Lorenz | 472cc79 | 2017-04-20 09:35:02 +0000 | [diff] [blame^] | 16 | // 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 Lorenz | 9e7bf16 | 2017-04-18 14:33:39 +0000 | [diff] [blame] | 17 | // 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 Lorenz | 24952fb | 2017-04-19 15:52:11 +0000 | [diff] [blame] | 27 | // 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 Lorenz | 9e7bf16 | 2017-04-18 14:33:39 +0000 | [diff] [blame] | 28 | // 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) |
| 33 | // CHECK-NEXT: NoDebug (SubjectMatchRule_hasType_functionType, SubjectMatchRule_objc_method, SubjectMatchRule_variable_not_is_parameter) |
| 34 | // CHECK-NEXT: NoDuplicate (SubjectMatchRule_function) |
| 35 | // CHECK-NEXT: NoSanitize (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_variable_is_global) |
| 36 | // CHECK-NEXT: NoSanitizeSpecific (SubjectMatchRule_function, SubjectMatchRule_variable_is_global) |
| 37 | // CHECK-NEXT: NoSplitStack (SubjectMatchRule_function) |
| 38 | // CHECK-NEXT: NotTailCalled (SubjectMatchRule_function) |
| 39 | // CHECK-NEXT: ObjCBoxable (SubjectMatchRule_record) |
| 40 | // CHECK-NEXT: ObjCMethodFamily (SubjectMatchRule_objc_method) |
| 41 | // CHECK-NEXT: ObjCRequiresSuper (SubjectMatchRule_objc_method) |
| 42 | // CHECK-NEXT: ObjCRuntimeName (SubjectMatchRule_objc_interface, SubjectMatchRule_objc_protocol) |
| 43 | // CHECK-NEXT: ObjCRuntimeVisible (SubjectMatchRule_objc_interface) |
| 44 | // CHECK-NEXT: ObjCSubclassingRestricted (SubjectMatchRule_objc_interface) |
| 45 | // CHECK-NEXT: OpenCLNoSVM (SubjectMatchRule_variable) |
| 46 | // CHECK-NEXT: OptimizeNone (SubjectMatchRule_function, SubjectMatchRule_objc_method) |
| 47 | // CHECK-NEXT: Overloadable (SubjectMatchRule_function) |
| 48 | // CHECK-NEXT: ParamTypestate (SubjectMatchRule_variable_is_parameter) |
| 49 | // CHECK-NEXT: PassObjectSize (SubjectMatchRule_variable_is_parameter) |
| 50 | // CHECK-NEXT: RenderScriptKernel (SubjectMatchRule_function) |
| 51 | // CHECK-NEXT: RequireConstantInit (SubjectMatchRule_variable_is_global) |
| 52 | // CHECK-NEXT: ReturnTypestate (SubjectMatchRule_function, SubjectMatchRule_variable_is_parameter) |
| 53 | // CHECK-NEXT: ReturnsNonNull (SubjectMatchRule_objc_method, SubjectMatchRule_function) |
| 54 | // CHECK-NEXT: Section (SubjectMatchRule_function, SubjectMatchRule_variable_is_global, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property) |
| 55 | // CHECK-NEXT: SetTypestate (SubjectMatchRule_function_is_member) |
| 56 | // CHECK-NEXT: SwiftContext (SubjectMatchRule_variable_is_parameter) |
| 57 | // CHECK-NEXT: SwiftErrorResult (SubjectMatchRule_variable_is_parameter) |
| 58 | // CHECK-NEXT: SwiftIndirectResult (SubjectMatchRule_variable_is_parameter) |
| 59 | // CHECK-NEXT: TLSModel (SubjectMatchRule_variable_is_thread_local) |
| 60 | // CHECK-NEXT: Target (SubjectMatchRule_function) |
| 61 | // CHECK-NEXT: TestTypestate (SubjectMatchRule_function_is_member) |
| 62 | // CHECK-NEXT: WarnUnusedResult (SubjectMatchRule_objc_method, SubjectMatchRule_enum, SubjectMatchRule_record, SubjectMatchRule_hasType_functionType) |
| 63 | // CHECK-NEXT: XRayInstrument (SubjectMatchRule_function_is_member, SubjectMatchRule_objc_method, SubjectMatchRule_function) |
| 64 | // CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function_is_member, SubjectMatchRule_objc_method, SubjectMatchRule_function) |