forked from OSchip/llvm-project
71 lines
5.8 KiB
Plaintext
71 lines
5.8 KiB
Plaintext
// RUN: clang-tblgen -gen-clang-test-pragma-attribute-supported-attributes -I%src_include_dir %src_include_dir/clang/Basic/Attr.td -o - | FileCheck %s
|
|
|
|
// The number of supported attributes should never go down!
|
|
|
|
// CHECK: #pragma clang attribute supports 65 attributes:
|
|
// CHECK-NEXT: AMDGPUFlatWorkGroupSize (SubjectMatchRule_function)
|
|
// CHECK-NEXT: AMDGPUNumSGPR (SubjectMatchRule_function)
|
|
// CHECK-NEXT: AMDGPUNumVGPR (SubjectMatchRule_function)
|
|
// CHECK-NEXT: AMDGPUWavesPerEU (SubjectMatchRule_function)
|
|
// CHECK-NEXT: AVRSignal (SubjectMatchRule_function)
|
|
// CHECK-NEXT: AbiTag (SubjectMatchRule_record_not_is_union, SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_namespace)
|
|
// CHECK-NEXT: AlignValue (SubjectMatchRule_variable, SubjectMatchRule_type_alias)
|
|
// CHECK-NEXT: AllocSize (SubjectMatchRule_function)
|
|
// CHECK-NEXT: Annotate ()
|
|
// CHECK-NEXT: AssumeAligned (SubjectMatchRule_objc_method, SubjectMatchRule_function)
|
|
// 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))
|
|
// CHECK-NEXT: CXX11NoReturn (SubjectMatchRule_function)
|
|
// CHECK-NEXT: CallableWhen (SubjectMatchRule_function_is_member)
|
|
// CHECK-NEXT: CarriesDependency (SubjectMatchRule_variable_is_parameter, SubjectMatchRule_objc_method, SubjectMatchRule_function)
|
|
// CHECK-NEXT: Consumable (SubjectMatchRule_record)
|
|
// CHECK-NEXT: Convergent (SubjectMatchRule_function)
|
|
// CHECK-NEXT: DLLExport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface)
|
|
// CHECK-NEXT: DLLImport (SubjectMatchRule_function, SubjectMatchRule_variable, SubjectMatchRule_record, SubjectMatchRule_objc_interface)
|
|
// CHECK-NEXT: DisableTailCalls (SubjectMatchRule_function, SubjectMatchRule_objc_method)
|
|
// CHECK-NEXT: EnableIf (SubjectMatchRule_function)
|
|
// CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum)
|
|
// 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))
|
|
// CHECK-NEXT: FlagEnum (SubjectMatchRule_enum)
|
|
// CHECK-NEXT: Flatten (SubjectMatchRule_function)
|
|
// CHECK-NEXT: IFunc (SubjectMatchRule_function)
|
|
// CHECK-NEXT: InternalLinkage (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record)
|
|
// CHECK-NEXT: LTOVisibilityPublic (SubjectMatchRule_record)
|
|
// CHECK-NEXT: MicroMips (SubjectMatchRule_function)
|
|
// CHECK-NEXT: MipsLongCall (SubjectMatchRule_function)
|
|
// CHECK-NEXT: MipsShortCall (SubjectMatchRule_function)
|
|
// CHECK-NEXT: NoDebug (SubjectMatchRule_hasType_functionType, SubjectMatchRule_objc_method, SubjectMatchRule_variable_not_is_parameter)
|
|
// CHECK-NEXT: NoDuplicate (SubjectMatchRule_function)
|
|
// CHECK-NEXT: NoEscape (SubjectMatchRule_variable_is_parameter)
|
|
// CHECK-NEXT: NoMicroMips (SubjectMatchRule_function)
|
|
// CHECK-NEXT: NoSanitize (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_variable_is_global)
|
|
// CHECK-NEXT: NoSanitizeSpecific (SubjectMatchRule_function, SubjectMatchRule_variable_is_global)
|
|
// CHECK-NEXT: NoSplitStack (SubjectMatchRule_function)
|
|
// CHECK-NEXT: NotTailCalled (SubjectMatchRule_function)
|
|
// CHECK-NEXT: ObjCBoxable (SubjectMatchRule_record)
|
|
// CHECK-NEXT: ObjCMethodFamily (SubjectMatchRule_objc_method)
|
|
// CHECK-NEXT: ObjCRequiresSuper (SubjectMatchRule_objc_method)
|
|
// CHECK-NEXT: ObjCRuntimeName (SubjectMatchRule_objc_interface, SubjectMatchRule_objc_protocol)
|
|
// CHECK-NEXT: ObjCRuntimeVisible (SubjectMatchRule_objc_interface)
|
|
// CHECK-NEXT: ObjCSubclassingRestricted (SubjectMatchRule_objc_interface)
|
|
// CHECK-NEXT: OpenCLIntelReqdSubGroupSize (SubjectMatchRule_function)
|
|
// CHECK-NEXT: OpenCLNoSVM (SubjectMatchRule_variable)
|
|
// CHECK-NEXT: OptimizeNone (SubjectMatchRule_function, SubjectMatchRule_objc_method)
|
|
// CHECK-NEXT: Overloadable (SubjectMatchRule_function)
|
|
// CHECK-NEXT: ParamTypestate (SubjectMatchRule_variable_is_parameter)
|
|
// CHECK-NEXT: PassObjectSize (SubjectMatchRule_variable_is_parameter)
|
|
// CHECK-NEXT: RenderScriptKernel (SubjectMatchRule_function)
|
|
// CHECK-NEXT: RequireConstantInit (SubjectMatchRule_variable_is_global)
|
|
// CHECK-NEXT: ReturnTypestate (SubjectMatchRule_function, SubjectMatchRule_variable_is_parameter)
|
|
// CHECK-NEXT: ReturnsNonNull (SubjectMatchRule_objc_method, SubjectMatchRule_function)
|
|
// CHECK-NEXT: Section (SubjectMatchRule_function, SubjectMatchRule_variable_is_global, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property)
|
|
// CHECK-NEXT: SetTypestate (SubjectMatchRule_function_is_member)
|
|
// CHECK-NEXT: SwiftContext (SubjectMatchRule_variable_is_parameter)
|
|
// CHECK-NEXT: SwiftErrorResult (SubjectMatchRule_variable_is_parameter)
|
|
// CHECK-NEXT: SwiftIndirectResult (SubjectMatchRule_variable_is_parameter)
|
|
// CHECK-NEXT: TLSModel (SubjectMatchRule_variable_is_thread_local)
|
|
// CHECK-NEXT: Target (SubjectMatchRule_function)
|
|
// CHECK-NEXT: TestTypestate (SubjectMatchRule_function_is_member)
|
|
// CHECK-NEXT: WarnUnusedResult (SubjectMatchRule_objc_method, SubjectMatchRule_enum, SubjectMatchRule_record, SubjectMatchRule_hasType_functionType)
|
|
// CHECK-NEXT: XRayInstrument (SubjectMatchRule_function_is_member, SubjectMatchRule_objc_method, SubjectMatchRule_function)
|
|
// CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function_is_member, SubjectMatchRule_objc_method, SubjectMatchRule_function)
|