H A D | SemaDeclAttr.cpp | 212 static unsigned getNumAttributeArgs(const AttributeList &Attr) { argument 214 return Attr.getNumArgs() + Attr.hasParsedType(); 219 static bool checkAttributeNumArgs(Sema &S, const AttributeList &Attr, argument 221 if (getNumAttributeArgs(Attr) != Num) { 222 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) 223 << Attr.getName() << Num; 233 static bool checkAttributeAtLeastNumArgs(Sema &S, const AttributeList &Attr, argument 235 if (getNumAttributeArgs(Attr) < Num) { 236 S.Diag(Attr 297 checkStringLiteralArgumentAttr(const AttributeList &Attr, unsigned ArgNum, StringRef &Str, SourceLocation *ArgLocation) argument 368 threadSafetyCheckIsPointer(Sema &S, const Decl *D, const AttributeList &Attr) argument 420 checkForLockableRecord(Sema &S, Decl *D, const AttributeList &Attr, QualType Ty) argument 461 checkAttrArgsAreLockableObjs(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr*> &Args, int Sidx = 0, bool ParamIdxOk = false) argument 543 checkGuardedVarAttrCommon(Sema &S, Decl *D, const AttributeList &Attr) argument 555 handleGuardedVarAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 564 handlePtGuardedVarAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 577 checkGuardedByAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, Expr* &Arg) argument 599 handleGuardedByAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 607 handlePtGuardedByAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 620 checkLockableAttrCommon(Sema &S, Decl *D, const AttributeList &Attr) argument 632 handleLockableAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 639 handleScopedLockableAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 649 handleNoThreadSafetyAnalysis(Sema &S, Decl *D, const AttributeList &Attr) argument 661 handleNoSanitizeAddressAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 674 handleNoSanitizeMemory(Sema &S, Decl *D, const AttributeList &Attr) argument 686 handleNoSanitizeThread(Sema &S, Decl *D, const AttributeList &Attr) argument 698 checkAcquireOrderAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 731 handleAcquiredAfterAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 744 handleAcquiredBeforeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 757 checkLockFunAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 775 handleSharedLockFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 788 handleExclusiveLockFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 802 handleAssertSharedLockAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 815 handleAssertExclusiveLockAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 830 checkTryLockFunAttrCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 854 handleSharedTrylockFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 867 handleExclusiveTrylockFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 880 checkLocksRequiredCommon(Sema &S, Decl *D, const AttributeList &Attr, SmallVectorImpl<Expr *> &Args) argument 900 handleExclusiveLocksRequiredAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 913 handleSharedLocksRequiredAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 926 handleUnlockFunAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 947 handleLockReturnedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 967 handleLocksExcludedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 991 handleConsumableAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1019 checkForConsumableClass(Sema &S, const CXXMethodDecl *MD, const AttributeList &Attr) argument 1037 handleCallableWhenAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1076 handleParamTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1122 handleReturnTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1179 handleSetTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1212 handleTestTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1246 handleExtVectorTypeAttr(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr) argument 1260 handlePackedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1279 handleMsStructAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1288 handleIBAction(Sema &S, Decl *D, const AttributeList &Attr) argument 1301 checkIBOutletCommon(Sema &S, Decl *D, const AttributeList &Attr) argument 1327 handleIBOutlet(Sema &S, Decl *D, const AttributeList &Attr) argument 1336 handleIBOutletCollection(Sema &S, Decl *D, const AttributeList &Attr) argument 1398 handleAllocSizeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1439 handleNonNullAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1615 handleWeakRefAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1685 handleAliasAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1701 handleMinSizeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1713 handleColdAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1730 handleHotAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1747 handleNakedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1759 handleAlwaysInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1772 handleTLSModelAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1798 handleMallocAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1812 handleMayAliasAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1818 handleNoCommonAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1828 handleCommonAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1868 handleAnalyzerNoReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1890 handleCXX11NoReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1908 handleVecReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 1970 handleDependencyAttr(Sema &S, Scope *Scope, Decl *D, const AttributeList &Attr) argument 1991 handleUnusedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2004 handleReturnsTwiceAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2017 handleUsedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2034 handleConstructorAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2066 handleDestructorAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2099 handleAttrWithMessage(Sema &S, Decl *D, const AttributeList &Attr) argument 2116 handleArcWeakrefUnavailableAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2123 handleObjCRootClassAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2136 handleObjCRequiresPropertyDefsAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2330 handleAvailabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2398 handleVisibilityAttr(Sema &S, Decl *D, const AttributeList &Attr, bool isTypeVisibility) argument 2451 handleObjCMethodFamilyAttr(Sema &S, Decl *decl, const AttributeList &Attr) argument 2486 handleObjCExceptionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2500 handleObjCNSObject(Sema &S, Decl *D, const AttributeList &Attr) argument 2530 handleOverloadableAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2541 handleBlocksAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2561 handleSentinelAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2657 handleWarnUnusedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2664 handleWarnUnusedResult(Sema &S, Decl *D, const AttributeList &Attr) argument 2688 handleWeakAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2706 handleWeakImportAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2730 handleWorkGroupSize(Sema &S, Decl *D, const AttributeList &Attr) argument 2780 handleVecTypeHint(Sema &S, Decl *D, const AttributeList &Attr) argument 2828 handleSectionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2857 handleNothrowAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2868 handleConstAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2879 handlePureAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2885 handleCleanupAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 2950 handleFormatArgAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3029 handleInitPriorityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3100 handleFormatAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3241 handleTransparentUnionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3305 handleAnnotateAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3325 handleAlignedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3493 handleModeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3610 handleNoDebugAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3628 handleNoInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3640 handleNoInstrumentFunctionAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3653 handleConstantAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3669 handleDeviceAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3692 handleGlobalAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3723 handleHostAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3739 handleSharedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3755 handleGNUInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3773 handleCallConvAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3859 handleOpenCLKernelAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3863 handleOpenCLImageAccessAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3943 handleRegparmAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 3963 CheckRegparmAttr(const AttributeList &Attr, unsigned &numParams) argument 4001 handleLaunchBoundsAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4050 handleArgumentWithTypeTagAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4098 handleTypeTagForDatatypeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4137 handleNSConsumedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4170 handleNSConsumesSelfAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4183 handleNSReturnsRetainedAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4363 handleNSBridgedAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) argument 4394 handleObjCBridgeAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) argument 4419 handleObjCOwnershipAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4427 handleObjCPreciseLifetimeAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4480 checkMicrosoftExt(Sema &S, const AttributeList &Attr, bool OtherExtension = false) argument 4488 handleUuidAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4524 handleInheritanceAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4546 handlePortabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4557 handleForceInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4565 handleSelectAnyAttr(Sema &S, Decl *D, const AttributeList &Attr) argument 4578 handleCommonAttributeFeatures(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr) argument 4605 ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const AttributeList &Attr, bool IncludeCXX11Attributes) argument [all...] |