2017-04-18 22:33:39 +08:00
|
|
|
// 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!
|
|
|
|
|
2018-11-27 10:22:00 +08:00
|
|
|
// CHECK: #pragma clang attribute supports 129 attributes:
|
2017-04-18 22:33:39 +08:00
|
|
|
// 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)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Alias (SubjectMatchRule_function, SubjectMatchRule_variable_is_global)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: AlignValue (SubjectMatchRule_variable, SubjectMatchRule_type_alias)
|
|
|
|
// CHECK-NEXT: AllocSize (SubjectMatchRule_function)
|
2018-08-22 01:24:06 +08:00
|
|
|
// CHECK-NEXT: AlwaysDestroy (SubjectMatchRule_variable)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: AlwaysInline (SubjectMatchRule_function)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: Annotate ()
|
2018-03-17 21:31:35 +08:00
|
|
|
// CHECK-NEXT: AnyX86NoCfCheck (SubjectMatchRule_hasType_functionType)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: ArcWeakrefUnavailable (SubjectMatchRule_objc_interface)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: AssumeAligned (SubjectMatchRule_objc_method, SubjectMatchRule_function)
|
2017-04-20 17:35:02 +08:00
|
|
|
// 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))
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: CFAuditedTransfer (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: CFConsumed (SubjectMatchRule_variable_is_parameter)
|
|
|
|
// CHECK-NEXT: CFUnknownTransfer (SubjectMatchRule_function)
|
2018-07-20 22:13:28 +08:00
|
|
|
// CHECK-NEXT: CPUDispatch (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: CPUSpecific (SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: CUDAConstant (SubjectMatchRule_variable)
|
|
|
|
// CHECK-NEXT: CUDADevice (SubjectMatchRule_function, SubjectMatchRule_variable)
|
|
|
|
// CHECK-NEXT: CUDAGlobal (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: CUDAHost (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: CUDALaunchBounds (SubjectMatchRule_objc_method, SubjectMatchRule_hasType_functionType)
|
|
|
|
// CHECK-NEXT: CUDAShared (SubjectMatchRule_variable)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: CXX11NoReturn (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: CallableWhen (SubjectMatchRule_function_is_member)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Capability (SubjectMatchRule_record, SubjectMatchRule_type_alias)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: CarriesDependency (SubjectMatchRule_variable_is_parameter, SubjectMatchRule_objc_method, SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Cold (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: Common (SubjectMatchRule_variable)
|
|
|
|
// CHECK-NEXT: Constructor (SubjectMatchRule_function)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: Consumable (SubjectMatchRule_record)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: ConsumableAutoCast (SubjectMatchRule_record)
|
|
|
|
// CHECK-NEXT: ConsumableSetOnRead (SubjectMatchRule_record)
|
2017-04-18 22:33:39 +08:00
|
|
|
// 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)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Destructor (SubjectMatchRule_function)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: DisableTailCalls (SubjectMatchRule_function, SubjectMatchRule_objc_method)
|
|
|
|
// CHECK-NEXT: EnableIf (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum)
|
2018-10-04 23:49:42 +08:00
|
|
|
// CHECK-NEXT: ExcludeFromExplicitInstantiation (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record)
|
2017-04-19 23:52:11 +08:00
|
|
|
// 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))
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: FlagEnum (SubjectMatchRule_enum)
|
|
|
|
// CHECK-NEXT: Flatten (SubjectMatchRule_function)
|
2018-08-30 08:04:34 +08:00
|
|
|
// CHECK-NEXT: GNUInline (SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Hot (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: IBAction (SubjectMatchRule_objc_method_is_instance)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: IFunc (SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: InitPriority (SubjectMatchRule_variable)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: InternalLinkage (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record)
|
|
|
|
// CHECK-NEXT: LTOVisibilityPublic (SubjectMatchRule_record)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Lockable (SubjectMatchRule_record)
|
|
|
|
// CHECK-NEXT: MSStruct (SubjectMatchRule_record)
|
2017-05-22 20:47:43 +08:00
|
|
|
// CHECK-NEXT: MicroMips (SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: MinSize (SubjectMatchRule_function, SubjectMatchRule_objc_method)
|
2018-07-10 03:00:16 +08:00
|
|
|
// CHECK-NEXT: MinVectorWidth (SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Mips16 (SubjectMatchRule_function)
|
2017-07-21 04:34:18 +08:00
|
|
|
// CHECK-NEXT: MipsLongCall (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: MipsShortCall (SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: NSConsumed (SubjectMatchRule_variable_is_parameter)
|
|
|
|
// CHECK-NEXT: NSConsumesSelf (SubjectMatchRule_objc_method)
|
|
|
|
// CHECK-NEXT: Naked (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: NoCommon (SubjectMatchRule_variable)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: NoDebug (SubjectMatchRule_hasType_functionType, SubjectMatchRule_objc_method, SubjectMatchRule_variable_not_is_parameter)
|
2018-08-22 01:24:06 +08:00
|
|
|
// CHECK-NEXT: NoDestroy (SubjectMatchRule_variable)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: NoDuplicate (SubjectMatchRule_function)
|
2017-09-22 08:41:05 +08:00
|
|
|
// CHECK-NEXT: NoEscape (SubjectMatchRule_variable_is_parameter)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: NoInline (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: NoInstrumentFunction (SubjectMatchRule_function)
|
2017-05-22 20:47:43 +08:00
|
|
|
// CHECK-NEXT: NoMicroMips (SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: NoMips16 (SubjectMatchRule_function)
|
2017-04-18 22:33:39 +08:00
|
|
|
// 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)
|
2018-05-10 06:05:53 +08:00
|
|
|
// CHECK-NEXT: NoStackProtector (SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: NoThreadSafetyAnalysis (SubjectMatchRule_function)
|
2017-09-29 04:08:03 +08:00
|
|
|
// CHECK-NEXT: NoThrow (SubjectMatchRule_function)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: NotTailCalled (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: ObjCBoxable (SubjectMatchRule_record)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: ObjCBridge (SubjectMatchRule_record, SubjectMatchRule_type_alias)
|
|
|
|
// CHECK-NEXT: ObjCBridgeMutable (SubjectMatchRule_record)
|
|
|
|
// CHECK-NEXT: ObjCBridgeRelated (SubjectMatchRule_record)
|
|
|
|
// CHECK-NEXT: ObjCException (SubjectMatchRule_objc_interface)
|
|
|
|
// CHECK-NEXT: ObjCExplicitProtocolImpl (SubjectMatchRule_objc_protocol)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: ObjCMethodFamily (SubjectMatchRule_objc_method)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: ObjCPreciseLifetime (SubjectMatchRule_variable)
|
|
|
|
// CHECK-NEXT: ObjCRequiresPropertyDefs (SubjectMatchRule_objc_interface)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: ObjCRequiresSuper (SubjectMatchRule_objc_method)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: ObjCReturnsInnerPointer (SubjectMatchRule_objc_method, SubjectMatchRule_objc_property)
|
|
|
|
// CHECK-NEXT: ObjCRootClass (SubjectMatchRule_objc_interface)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: ObjCRuntimeName (SubjectMatchRule_objc_interface, SubjectMatchRule_objc_protocol)
|
|
|
|
// CHECK-NEXT: ObjCRuntimeVisible (SubjectMatchRule_objc_interface)
|
|
|
|
// CHECK-NEXT: ObjCSubclassingRestricted (SubjectMatchRule_objc_interface)
|
2017-05-04 15:31:20 +08:00
|
|
|
// CHECK-NEXT: OpenCLIntelReqdSubGroupSize (SubjectMatchRule_function)
|
2017-04-18 22:33:39 +08:00
|
|
|
// 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)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: ReqdWorkGroupSize (SubjectMatchRule_function)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: RequireConstantInit (SubjectMatchRule_variable_is_global)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Restrict (SubjectMatchRule_function)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: ReturnTypestate (SubjectMatchRule_function, SubjectMatchRule_variable_is_parameter)
|
|
|
|
// CHECK-NEXT: ReturnsNonNull (SubjectMatchRule_objc_method, SubjectMatchRule_function)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: ReturnsTwice (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: ScopedLockable (SubjectMatchRule_record)
|
2017-04-18 22:33:39 +08:00
|
|
|
// 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)
|
2018-02-06 04:23:22 +08:00
|
|
|
// CHECK-NEXT: TrivialABI (SubjectMatchRule_record)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: VecReturn (SubjectMatchRule_record)
|
|
|
|
// CHECK-NEXT: VecTypeHint (SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: WarnUnused (SubjectMatchRule_record)
|
2017-04-18 22:33:39 +08:00
|
|
|
// CHECK-NEXT: WarnUnusedResult (SubjectMatchRule_objc_method, SubjectMatchRule_enum, SubjectMatchRule_record, SubjectMatchRule_hasType_functionType)
|
2018-09-05 08:28:57 +08:00
|
|
|
// CHECK-NEXT: Weak (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record)
|
|
|
|
// CHECK-NEXT: WeakRef (SubjectMatchRule_variable, SubjectMatchRule_function)
|
|
|
|
// CHECK-NEXT: WorkGroupSizeHint (SubjectMatchRule_function)
|
2017-11-27 04:01:12 +08:00
|
|
|
// CHECK-NEXT: XRayInstrument (SubjectMatchRule_function, SubjectMatchRule_objc_method)
|
|
|
|
// CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function, SubjectMatchRule_objc_method)
|