H A D | SemaDeclAttr.cpp | 170 static unsigned getNumAttributeArgs(const AttributeList &Attr) { argument 172 return Attr.getNumArgs() + Attr.hasParsedType(); 176 static bool checkAttributeNumArgsImpl(Sema &S, const AttributeList &Attr, argument 179 if (Comp(getNumAttributeArgs(Attr), Num)) { 180 S.Diag(Attr.getLoc(), Diag) << Attr.getName() << Num; 189 static bool checkAttributeNumArgs(Sema &S, const AttributeList &Attr, argument 191 return checkAttributeNumArgsImpl(S, Attr, Num, 198 static bool checkAttributeAtLeastNumArgs(Sema &S, const AttributeList &Attr, argument 207 checkAttributeAtMostNumArgs(Sema &S, const AttributeList &Attr, unsigned Num) argument 216 checkUInt32Argument(Sema &S, const AttributeList &Attr, const Expr *Expr, uint32_t &Val, unsigned Idx = UINT_MAX) argument 246 checkAttrMutualExclusion(Sema &S, Decl *D, const AttributeList &Attr) argument 260 checkFunctionOrMethodParameterIndex(Sema &S, const Decl *D, const AttributeList &Attr, unsigned AttrArgNum, const Expr *IdxExpr, uint64_t &Idx) argument 308 checkStringLiteralArgumentAttr(const AttributeList &Attr, unsigned ArgNum, StringRef &Str, SourceLocation *ArgLocation) argument 343 handleSimpleAttribute(Sema &S, Decl *D, const AttributeList &Attr) argument 375 threadSafetyCheckIsPointer(Sema &S, const Decl *D, const AttributeList &Attr) argument 497 checkAttrArgsAreCapabilityObjs(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args, int Sidx = 0, bool ParamIdxOk = false) argument 575 handlePtGuardedVarAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 585 checkGuardedByAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, Expr* &Arg) argument 600 handleGuardedByAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 609 handlePtGuardedByAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 623 checkAcquireOrderAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 648 handleAcquiredAfterAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 661 handleAcquiredBeforeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 674 checkLockFunAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 684 handleAssertSharedLockAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 697 handleAssertExclusiveLockAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 712 checkTryLockFunAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 730 handleSharedTrylockFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 743 handleExclusiveTrylockFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 754 handleLockReturnedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 768 handleLocksExcludedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 786 handleEnableIfAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 814 handleConsumableAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 837 checkForConsumableClass(Sema &S, const CXXMethodDecl *MD, const AttributeList &Attr) argument 855 handleCallableWhenAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 894 handleParamTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 932 handleReturnTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 981 handleSetTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1005 handleTestTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1030 handleExtVectorTypeAttr(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr) argument 1036 handlePackedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1056 checkIBOutletCommon(Sema &S, Decl *D, const AttributeList &Attr) argument 1082 handleIBOutlet(Sema &S, Decl *D, const AttributeList &Attr) argument 1091 handleIBOutletCollection(Sema &S, Decl *D, const AttributeList &Attr) argument 1162 attrNonNullArgCheck(Sema &S, QualType T, const AttributeList &Attr, SourceRange AttrParmRange, SourceRange TypeRange, bool isReturnValue = false) argument 1176 handleNonNullAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1220 handleNonNullAttrParameter(Sema &S, ParmVarDecl *D, const AttributeList &Attr) argument 1242 handleReturnsNonNullAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1255 handleAssumeAlignedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1426 handleWeakRefAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1490 handleAliasAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1520 handleColdAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1528 handleHotAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1536 handleTLSModelAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1556 handleKernelAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1566 handleRestrictAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1578 handleCommonAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1614 handleAnalyzerNoReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1637 handleVecReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1692 handleDependencyAttr(Sema &S, Scope *Scope, Decl *D, const AttributeList &Attr) argument 1709 handleUsedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1726 handleConstructorAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1737 handleDestructorAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1749 handleAttrWithMessage(Sema &S, Decl *D, const AttributeList &Attr) argument 1760 handleObjCSuppresProtocolAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1955 handleAvailabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2023 handleVisibilityAttr(Sema &S, Decl *D, const AttributeList &Attr, bool isTypeVisibility) argument 2076 handleObjCMethodFamilyAttr(Sema &S, Decl *decl, const AttributeList &Attr) argument 2106 handleObjCNSObject(Sema &S, Decl *D, const AttributeList &Attr) argument 2135 handleObjCIndependentClass(Sema &S, Decl *D, const AttributeList &Attr) argument 2151 handleBlocksAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2171 handleSentinelAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2262 handleWarnUnusedResult(Sema &S, Decl *D, const AttributeList &Attr) argument 2281 handleWeakImportAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2306 handleWorkGroupSize(Sema &S, Decl *D, const AttributeList &Attr) argument 2331 handleVecTypeHint(Sema &S, Decl *D, const AttributeList &Attr) argument 2385 handleSectionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2411 handleCleanupAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2476 handleFormatArgAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2548 handleInitPriorityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2610 handleFormatAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2734 handleTransparentUnionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2803 handleAnnotateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2821 handleAlignValueAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2873 handleAlignedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3078 handleModeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3195 handleNoDebugAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3263 handleAlwaysInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3271 handleMinSizeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3277 handleOptimizeNoneAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3284 handleGlobalAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3300 handleGNUInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3312 handleCallConvAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3467 CheckRegparmAttr(const AttributeList &Attr, unsigned &numParams) argument 3501 handleLaunchBoundsAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3517 handleArgumentWithTypeTagAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3562 handleTypeTagForDatatypeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3612 handleNSConsumedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3640 handleNSReturnsRetainedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3765 handleCFAuditedTransferAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3775 handleCFUnknownTransferAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3785 handleObjCBridgeAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) argument 3815 handleObjCBridgeMutableAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) argument 3829 handleObjCBridgeRelatedAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) argument 3847 handleObjCDesignatedInitializer(Sema &S, Decl *D, const AttributeList &Attr) argument 3865 handleObjCRuntimeName(Sema &S, Decl *D, const AttributeList &Attr) argument 3876 handleObjCOwnershipAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3884 handleObjCPreciseLifetimeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3929 handleUuidAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3974 handleMSInheritanceAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3988 handleDeclspecThreadAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4007 handleARMInterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4036 handleMSP430InterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4072 handleInterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4080 handleAMDGPUNumVGPRAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4093 handleAMDGPUNumSGPRAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4106 handleX86ForceAlignArgPointerAttr(Sema &S, Decl *D, const AttributeList& Attr) argument 4219 handleCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4243 handleAssertCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4250 handleAcquireCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4262 handleTryAcquireCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4276 handleReleaseCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4287 handleRequiresCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4305 handleDeprecatedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4327 handleCommonAttributeFeatures(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr) argument 4372 ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr, bool IncludeCXX11Attributes) argument [all...] |