H A D | SemaDeclAttr.cpp | 182 static unsigned getNumAttributeArgs(const ParsedAttr &AL) { argument 184 return AL.getNumArgs() + AL.hasParsedType(); 188 static bool checkAttributeNumArgsImpl(Sema &S, const ParsedAttr &AL, argument 191 if (Comp(getNumAttributeArgs(AL), Num)) { 192 S.Diag(AL.getLoc(), Diag) << AL << Num; 201 static bool checkAttributeNumArgs(Sema &S, const ParsedAttr &AL, unsigned Num) { argument 202 return checkAttributeNumArgsImpl(S, AL, Num, 209 static bool checkAttributeAtLeastNumArgs(Sema &S, const ParsedAttr &AL, argument 218 checkAttributeAtMostNumArgs(Sema &S, const ParsedAttr &AL, unsigned Num) argument 230 getAttrLoc(const AttrInfo &AL) argument 233 getAttrLoc(const ParsedAttr &AL) argument 298 checkAttrMutualExclusion(Sema &S, Decl *D, const ParsedAttr &AL) argument 308 checkAttrMutualExclusion(Sema &S, Decl *D, const Attr &AL) argument 367 checkStringLiteralArgumentAttr(const ParsedAttr &AL, unsigned ArgNum, StringRef &Str, SourceLocation *ArgLocation) argument 439 handleSimpleAttributeWithExclusions(Sema &S, Decl *D, const ParsedAttr &AL) argument 448 handleSimpleAttributeWithExclusions(Sema &S, Decl *D, const ParsedAttr &AL) argument 501 threadSafetyCheckIsPointer(Sema &S, const Decl *D, const ParsedAttr &AL) argument 629 checkAttrArgsAreCapabilityObjs(Sema &S, Decl *D, const ParsedAttr &AL, SmallVectorImpl<Expr *> &Args, unsigned Sidx = 0, bool ParamIdxOk = false) argument 726 handlePtGuardedVarAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 733 checkGuardedByAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, Expr *&Arg) argument 747 handleGuardedByAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 755 handlePtGuardedByAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 766 checkAcquireOrderAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, SmallVectorImpl<Expr *> &Args) argument 786 handleAcquiredAfterAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 796 handleAcquiredBeforeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 806 checkLockFunAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, SmallVectorImpl<Expr *> &Args) argument 815 handleAssertSharedLockAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 826 handleAssertExclusiveLockAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 863 handleAllocSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 899 checkTryLockFunAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, SmallVectorImpl<Expr *> &Args) argument 916 handleSharedTrylockFunctionAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 926 handleExclusiveTrylockFunctionAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 936 handleLockReturnedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 947 handleLocksExcludedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 963 checkFunctionConditionAttr(Sema &S, Decl *D, const ParsedAttr &AL, Expr *&Cond, StringRef &Msg) argument 991 handleEnableIfAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1046 handleDiagnoseIfAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1072 handleNoBuiltinAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1122 handlePassObjectSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1154 handleConsumableAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1174 checkForConsumableClass(Sema &S, const CXXMethodDecl *MD, const ParsedAttr &AL) argument 1190 handleCallableWhenAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1225 handleParamTypestateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1259 handleReturnTypestateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1304 handleSetTypestateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1326 handleTestTypestateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1348 handleExtVectorTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1353 handlePackedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1381 checkIBOutletCommon(Sema &S, Decl *D, const ParsedAttr &AL) argument 1407 handleIBOutlet(Sema &S, Decl *D, const ParsedAttr &AL) argument 1414 handleIBOutletCollection(Sema &S, Decl *D, const ParsedAttr &AL) argument 1481 attrNonNullArgCheck(Sema &S, QualType T, const ParsedAttr &AL, SourceRange AttrParmRange, SourceRange TypeRange, bool isReturnValue = false) argument 1497 handleNonNullAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1540 handleNonNullAttrParameter(Sema &S, ParmVarDecl *D, const ParsedAttr &AL) argument 1560 handleReturnsNonNullAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1570 handleNoEscapeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1585 handleAssumeAlignedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1591 handleAllocAlignAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1687 handleOwnershipAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1789 handleWeakRefAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1847 handleIFuncAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1862 handleAliasAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1903 handleTLSModelAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1920 handleRestrictAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1931 handleCPUSpecificAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1981 handleCommonAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1992 handleNakedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2038 CheckAttrTarget(const ParsedAttr &AL) argument 2049 handleAnalyzerNoReturnAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2069 handleVecReturnAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2123 handleDependencyAttr(Sema &S, Scope *Scope, Decl *D, const ParsedAttr &AL) argument 2138 handleUnusedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2149 handleConstructorAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2158 handleDestructorAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2168 handleAttrWithMessage(Sema &S, Decl *D, const ParsedAttr &AL) argument 2177 handleObjCSuppresProtocolAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2400 handleAvailabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2507 handleExternalSourceSymbolAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2553 handleVisibilityAttr(Sema &S, Decl *D, const ParsedAttr &AL, bool isTypeVisibility) argument 2603 handleObjCDirectAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2617 handleObjCDirectMembersAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2626 handleObjCMethodFamilyAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2652 handleObjCNSObject(Sema &S, Decl *D, const ParsedAttr &AL) argument 2679 handleObjCIndependentClass(Sema &S, Decl *D, const ParsedAttr &AL) argument 2693 handleBlocksAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2710 handleSentinelAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2797 handleWarnUnusedResult(Sema &S, Decl *D, const ParsedAttr &AL) argument 2835 handleWeakImportAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2858 handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) argument 2883 handleSubGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) argument 2903 handleVecTypeHint(Sema &S, Decl *D, const ParsedAttr &AL) argument 2960 handleSectionAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3018 handleCodeSegAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3083 handleTargetAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3094 handleMinVectorWidthAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3111 handleCleanupAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3166 handleEnumExtensibilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3188 handleFormatArgAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3253 handleInitPriorityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3310 handleFormatAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3431 handleCallbackAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3569 handleTransparentUnionAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3640 handleAnnotateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3656 handleAlignValueAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3702 handleAlignedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3977 handleModeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4131 handleNoDebugAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4150 mergeCommonAttr(Decl *D, const ParsedAttr &AL) argument 4157 mergeCommonAttr(Decl *D, const CommonAttr &AL) argument 4164 mergeInternalLinkageAttr(Decl *D, const ParsedAttr &AL) argument 4188 mergeInternalLinkageAttr(Decl *D, const InternalLinkageAttr &AL) argument 4224 mergeNoSpeculativeLoadHardeningAttr( Decl *D, const NoSpeculativeLoadHardeningAttr &AL) argument 4251 mergeSpeculativeLoadHardeningAttr( Decl *D, const SpeculativeLoadHardeningAttr &AL) argument 4259 handleAlwaysInlineAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4268 handleMinSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4273 handleOptimizeNoneAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4278 handleConstantAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4289 handleSharedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4307 handleGlobalAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4338 handleGNUInlineAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4351 handleCallConvAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4430 handleSuppressAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4450 handleLifetimeCategoryAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4464 << SelectIdx << AL; local 4745 CheckRegparmAttr(const ParsedAttr &AL, unsigned &numParams) argument 4783 makeLaunchBoundsArgExpr(Sema &S, Expr *E, const CUDALaunchBoundsAttr &AL, const unsigned Idx) argument 4837 handleLaunchBoundsAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4846 handleArgumentWithTypeTagAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4878 handleTypeTagForDatatypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4905 handleXRayLogArgsAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4918 handlePatchableFunctionEntryAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4947 handleArmMveAliasAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5024 parsedAttrToRetainOwnershipKind(const ParsedAttr &AL) argument 5067 handleXReturnsXRetainedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5244 handleObjCBridgeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5270 handleObjCBridgeMutableAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5283 handleObjCBridgeRelatedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5299 handleObjCDesignatedInitializer(Sema &S, Decl *D, const ParsedAttr &AL) argument 5325 handleObjCRuntimeName(Sema &S, Decl *D, const ParsedAttr &AL) argument 5337 handleObjCBoxable(Sema &S, Decl *D, const ParsedAttr &AL) argument 5359 handleObjCOwnershipAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5366 handleObjCPreciseLifetimeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5424 handleUuidAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5473 handleMSInheritanceAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5487 handleDeclspecThreadAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5504 handleAbiTagAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5535 handleARMInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5560 handleMSP430InterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5612 handleMipsInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5667 handleAnyX86InterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5731 handleAVRInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5744 handleAVRSignalAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5769 handleBPFPreserveAccessIndexAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5776 handleWebAssemblyExportNameAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5798 handleWebAssemblyImportModuleAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5820 handleWebAssemblyImportNameAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5841 handleRISCVInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5899 handleInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5968 handleAMDGPUFlatWorkGroupSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6021 handleAMDGPUWavesPerEUAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6032 handleAMDGPUNumSGPRAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6041 handleAMDGPUNumVGPRAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6050 handleX86ForceAlignArgPointerAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6073 handleLayoutVersion(Sema &S, Decl *D, const ParsedAttr &AL) argument 6187 handleCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6210 handleAssertCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6219 handleAcquireCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6229 handleTryAcquireCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6239 handleReleaseCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6249 handleRequiresCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6266 handleDeprecatedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6302 handleNoSanitizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6328 handleNoSanitizeSpecificAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6359 handleInternalLinkageAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6364 handleOpenCLNoSVMAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6376 handleCommonAttributeFeatures(Sema &S, Decl *D, const ParsedAttr &AL) argument 6416 handleOpenCLAccessAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6456 handleSYCLKernelAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6508 handleUninitializedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6551 handleObjCExternallyRetainedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6587 handleMIGServerRoutineAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6609 handleMSAllocatorAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6623 handeAcquireHandleAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6641 handleHandleAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6648 handleCFGuardAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6674 ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const ParsedAttr &AL, bool IncludeCXX11Attributes) argument [all...] |