H A D | SemaDeclAttr.cpp | 175 static unsigned getNumAttributeArgs(const AttributeList &Attr) { argument 177 return Attr.getNumArgs() + Attr.hasParsedType(); 181 static bool checkAttributeNumArgsImpl(Sema &S, const AttributeList &Attr, argument 184 if (Comp(getNumAttributeArgs(Attr), Num)) { 185 S.Diag(Attr.getLoc(), Diag) << Attr.getName() << Num; 194 static bool checkAttributeNumArgs(Sema &S, const AttributeList &Attr, argument 196 return checkAttributeNumArgsImpl(S, Attr, Num, 203 static bool checkAttributeAtLeastNumArgs(Sema &S, const AttributeList &Attr, argument 212 checkAttributeAtMostNumArgs(Sema &S, const AttributeList &Attr, unsigned Num) argument 221 checkUInt32Argument(Sema &S, const AttributeList &Attr, const Expr *Expr, uint32_t &Val, unsigned Idx = UINT_MAX) argument 266 checkFunctionOrMethodParameterIndex(Sema &S, const Decl *D, const AttributeList &Attr, unsigned AttrArgNum, const Expr *IdxExpr, uint64_t &Idx) argument 314 checkStringLiteralArgumentAttr(const AttributeList &Attr, unsigned ArgNum, StringRef &Str, SourceLocation *ArgLocation) argument 349 handleSimpleAttribute(Sema &S, Decl *D, const AttributeList &Attr) argument 356 handleSimpleAttributeWithExclusions(Sema &S, Decl *D, const AttributeList &Attr) argument 365 handleSimpleAttributeWithExclusions(Sema &S, Decl *D, const AttributeList &Attr) argument 400 threadSafetyCheckIsPointer(Sema &S, const Decl *D, const AttributeList &Attr) argument 521 checkAttrArgsAreCapabilityObjs(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args, int Sidx = 0, bool ParamIdxOk = false) argument 599 handlePtGuardedVarAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 609 checkGuardedByAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, Expr* &Arg) argument 624 handleGuardedByAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 633 handlePtGuardedByAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 647 checkAcquireOrderAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 669 handleAcquiredAfterAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 682 handleAcquiredBeforeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 695 checkLockFunAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 705 handleAssertSharedLockAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 718 handleAssertExclusiveLockAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 733 checkTryLockFunAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 751 handleSharedTrylockFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 764 handleExclusiveTrylockFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 775 handleLockReturnedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 789 handleLocksExcludedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 807 handleEnableIfAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 837 handlePassObjectSizeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 874 handleConsumableAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 896 checkForConsumableClass(Sema &S, const CXXMethodDecl *MD, const AttributeList &Attr) argument 913 handleCallableWhenAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 951 handleParamTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 988 handleReturnTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1036 handleSetTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1060 handleTestTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1085 handleExtVectorTypeAttr(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr) argument 1091 handlePackedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1108 checkIBOutletCommon(Sema &S, Decl *D, const AttributeList &Attr) argument 1134 handleIBOutlet(Sema &S, Decl *D, const AttributeList &Attr) argument 1143 handleIBOutletCollection(Sema &S, Decl *D, const AttributeList &Attr) argument 1214 attrNonNullArgCheck(Sema &S, QualType T, const AttributeList &Attr, SourceRange AttrParmRange, SourceRange TypeRange, bool isReturnValue = false) argument 1230 handleNonNullAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1274 handleNonNullAttrParameter(Sema &S, ParmVarDecl *D, const AttributeList &Attr) argument 1296 handleReturnsNonNullAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1309 handleAssumeAlignedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1488 handleWeakRefAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1552 handleIFuncAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1574 handleAliasAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1607 handleColdAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1615 handleHotAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1623 handleTLSModelAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1643 handleRestrictAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1655 handleCommonAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1667 handleNakedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1701 handleAnalyzerNoReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1724 handleVecReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1779 handleDependencyAttr(Sema &S, Scope *Scope, Decl *D, const AttributeList &Attr) argument 1796 handleNotTailCalledAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1806 handleDisableTailCallsAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1816 handleUsedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1833 handleUnusedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1855 handleConstructorAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1866 handleDestructorAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1878 handleAttrWithMessage(Sema &S, Decl *D, const AttributeList &Attr) argument 1889 handleObjCSuppresProtocolAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2123 handleAvailabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2272 handleVisibilityAttr(Sema &S, Decl *D, const AttributeList &Attr, bool isTypeVisibility) argument 2325 handleObjCMethodFamilyAttr(Sema &S, Decl *decl, const AttributeList &Attr) argument 2355 handleObjCNSObject(Sema &S, Decl *D, const AttributeList &Attr) argument 2384 handleObjCIndependentClass(Sema &S, Decl *D, const AttributeList &Attr) argument 2400 handleBlocksAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2420 handleSentinelAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2511 handleWarnUnusedResult(Sema &S, Decl *D, const AttributeList &Attr) argument 2536 handleWeakImportAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2561 handleWorkGroupSize(Sema &S, Decl *D, const AttributeList &Attr) argument 2586 handleVecTypeHint(Sema &S, Decl *D, const AttributeList &Attr) argument 2640 handleSectionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2675 handleTargetAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2687 handleCleanupAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2752 handleFormatArgAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2824 handleInitPriorityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2886 handleFormatAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3008 handleTransparentUnionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3077 handleAnnotateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3095 handleAlignValueAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3146 handleAlignedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3425 handleModeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3581 handleNoDebugAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3673 handleAlwaysInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3685 handleMinSizeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3691 handleOptimizeNoneAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3698 handleGlobalAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3731 handleGNUInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3743 handleCallConvAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4009 CheckRegparmAttr(const AttributeList &Attr, unsigned &numParams) argument 4047 makeLaunchBoundsArgExpr(Sema &S, Expr *E, const CUDALaunchBoundsAttr &Attr, const unsigned Idx) argument 4102 handleLaunchBoundsAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4113 handleArgumentWithTypeTagAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4158 handleTypeTagForDatatypeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4209 handleNSConsumedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4251 handleNSReturnsRetainedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4413 handleCFAuditedTransferAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4424 handleCFUnknownTransferAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4435 handleObjCBridgeAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) argument 4465 handleObjCBridgeMutableAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) argument 4479 handleObjCBridgeRelatedAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) argument 4497 handleObjCDesignatedInitializer(Sema &S, Decl *D, const AttributeList &Attr) argument 4515 handleObjCRuntimeName(Sema &S, Decl *D, const AttributeList &Attr) argument 4530 handleObjCBoxable(Sema &S, Decl *D, const AttributeList &Attr) argument 4553 handleObjCOwnershipAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4561 handleObjCPreciseLifetimeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4606 handleUuidAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4651 handleMSInheritanceAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4667 handleDeclspecThreadAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4686 handleAbiTagAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4718 handleARMInterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4747 handleMSP430InterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4783 handleMipsInterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4842 handleAnyX86InterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4908 handleInterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4928 handleAMDGPUNumVGPRAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4941 handleAMDGPUNumSGPRAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4954 handleX86ForceAlignArgPointerAttr(Sema &S, Decl *D, const AttributeList& Attr) argument 4979 handleLayoutVersion(Sema &S, Decl *D, const AttributeList &Attr) argument 5093 handleCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5117 handleAssertCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5124 handleAcquireCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5136 handleTryAcquireCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5150 handleReleaseCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5161 handleRequiresCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5179 handleDeprecatedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5213 handleNoSanitizeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5237 handleNoSanitizeSpecificAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5252 handleInternalLinkageAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5260 handleOpenCLNoSVMAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5272 handleCommonAttributeFeatures(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr) argument 5310 handleOpenCLAccessAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 5351 ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr, bool IncludeCXX11Attributes) argument [all...] |