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 229 getAttrLoc(const AttrInfo &AL) argument 232 getAttrLoc(const ParsedAttr &AL) argument 297 checkAttrMutualExclusion(Sema &S, Decl *D, const ParsedAttr &AL) argument 307 checkAttrMutualExclusion(Sema &S, Decl *D, const Attr &AL) argument 366 checkStringLiteralArgumentAttr(const ParsedAttr &AL, unsigned ArgNum, StringRef &Str, SourceLocation *ArgLocation) argument 438 handleSimpleAttributeWithExclusions(Sema &S, Decl *D, const ParsedAttr &AL) argument 447 handleSimpleAttributeWithExclusions(Sema &S, Decl *D, const ParsedAttr &AL) argument 500 threadSafetyCheckIsPointer(Sema &S, const Decl *D, const ParsedAttr &AL) argument 628 checkAttrArgsAreCapabilityObjs(Sema &S, Decl *D, const ParsedAttr &AL, SmallVectorImpl<Expr *> &Args, unsigned Sidx = 0, bool ParamIdxOk = false) argument 725 handlePtGuardedVarAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 732 checkGuardedByAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, Expr *&Arg) argument 746 handleGuardedByAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 754 handlePtGuardedByAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 765 checkAcquireOrderAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, SmallVectorImpl<Expr *> &Args) argument 785 handleAcquiredAfterAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 795 handleAcquiredBeforeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 805 checkLockFunAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, SmallVectorImpl<Expr *> &Args) argument 814 handleAssertSharedLockAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 825 handleAssertExclusiveLockAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 862 handleAllocSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 898 checkTryLockFunAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, SmallVectorImpl<Expr *> &Args) argument 915 handleSharedTrylockFunctionAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 925 handleExclusiveTrylockFunctionAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 935 handleLockReturnedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 946 handleLocksExcludedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 962 checkFunctionConditionAttr(Sema &S, Decl *D, const ParsedAttr &AL, Expr *&Cond, StringRef &Msg) argument 990 handleEnableIfAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1045 handleDiagnoseIfAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1071 handleNoBuiltinAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1102 << BuiltinName << AL; local 1121 handlePassObjectSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1153 handleConsumableAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1173 checkForConsumableClass(Sema &S, const CXXMethodDecl *MD, const ParsedAttr &AL) argument 1188 handleCallableWhenAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1223 handleParamTypestateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1257 handleReturnTypestateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1302 handleSetTypestateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1324 handleTestTypestateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1346 handleExtVectorTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1351 handlePackedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1379 checkIBOutletCommon(Sema &S, Decl *D, const ParsedAttr &AL) argument 1405 handleIBOutlet(Sema &S, Decl *D, const ParsedAttr &AL) argument 1412 handleIBOutletCollection(Sema &S, Decl *D, const ParsedAttr &AL) argument 1479 attrNonNullArgCheck(Sema &S, QualType T, const ParsedAttr &AL, SourceRange AttrParmRange, SourceRange TypeRange, bool isReturnValue = false) argument 1495 handleNonNullAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1538 handleNonNullAttrParameter(Sema &S, ParmVarDecl *D, const ParsedAttr &AL) argument 1558 handleReturnsNonNullAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1568 handleNoEscapeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1583 handleAssumeAlignedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1589 handleAllocAlignAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1690 handleOwnershipAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1792 handleWeakRefAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1850 handleIFuncAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1865 handleAliasAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1906 handleTLSModelAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1923 handleRestrictAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1934 handleCPUSpecificAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1984 handleCommonAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 1995 handleCmseNSEntryAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2010 handleNakedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2056 CheckAttrTarget(const ParsedAttr &AL) argument 2067 handleAnalyzerNoReturnAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2087 handleVecReturnAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2141 handleDependencyAttr(Sema &S, Scope *Scope, Decl *D, const ParsedAttr &AL) argument 2156 handleUnusedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2167 handleConstructorAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2176 handleDestructorAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2186 handleAttrWithMessage(Sema &S, Decl *D, const ParsedAttr &AL) argument 2195 handleObjCSuppresProtocolAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2418 handleAvailabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2525 handleExternalSourceSymbolAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2571 handleVisibilityAttr(Sema &S, Decl *D, const ParsedAttr &AL, bool isTypeVisibility) argument 2621 handleObjCDirectAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2635 handleObjCDirectMembersAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2644 handleObjCMethodFamilyAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2670 handleObjCNSObject(Sema &S, Decl *D, const ParsedAttr &AL) argument 2697 handleObjCIndependentClass(Sema &S, Decl *D, const ParsedAttr &AL) argument 2711 handleBlocksAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2728 handleSentinelAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2815 handleWarnUnusedResult(Sema &S, Decl *D, const ParsedAttr &AL) argument 2859 handleWeakImportAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 2882 handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) argument 2907 handleSubGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) argument 2927 handleVecTypeHint(Sema &S, Decl *D, const ParsedAttr &AL) argument 2984 handleSectionAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3042 handleCodeSegAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3107 handleTargetAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3118 handleMinVectorWidthAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3135 handleCleanupAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3190 handleEnumExtensibilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3212 handleFormatArgAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3277 handleInitPriorityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3338 handleFormatAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3459 handleCallbackAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3597 handleTransparentUnionAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3668 handleAnnotateAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3684 handleAlignValueAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 3730 handleAlignedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4014 handleModeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4171 handleNoDebugAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4190 mergeCommonAttr(Decl *D, const ParsedAttr &AL) argument 4197 mergeCommonAttr(Decl *D, const CommonAttr &AL) argument 4204 mergeInternalLinkageAttr(Decl *D, const ParsedAttr &AL) argument 4228 mergeInternalLinkageAttr(Decl *D, const InternalLinkageAttr &AL) argument 4264 mergeNoSpeculativeLoadHardeningAttr( Decl *D, const NoSpeculativeLoadHardeningAttr &AL) argument 4291 mergeSpeculativeLoadHardeningAttr( Decl *D, const SpeculativeLoadHardeningAttr &AL) argument 4299 handleAlwaysInlineAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4308 handleMinSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4313 handleOptimizeNoneAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4318 handleConstantAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4329 handleSharedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4347 handleGlobalAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4384 handleGNUInlineAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4397 handleCallConvAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4476 handleSuppressAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4496 handleLifetimeCategoryAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4510 << SelectIdx << AL; local 4791 CheckRegparmAttr(const ParsedAttr &AL, unsigned &numParams) argument 4829 makeLaunchBoundsArgExpr(Sema &S, Expr *E, const CUDALaunchBoundsAttr &AL, const unsigned Idx) argument 4883 handleLaunchBoundsAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4892 handleArgumentWithTypeTagAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4924 handleTypeTagForDatatypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4951 handleXRayLogArgsAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 4964 handlePatchableFunctionEntryAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5034 handleArmBuiltinAliasAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5114 parsedAttrToRetainOwnershipKind(const ParsedAttr &AL) argument 5157 handleXReturnsXRetainedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5334 handleObjCBridgeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5360 handleObjCBridgeMutableAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5373 handleObjCBridgeRelatedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5389 handleObjCDesignatedInitializer(Sema &S, Decl *D, const ParsedAttr &AL) argument 5415 handleObjCRuntimeName(Sema &S, Decl *D, const ParsedAttr &AL) argument 5427 handleObjCBoxable(Sema &S, Decl *D, const ParsedAttr &AL) argument 5449 handleObjCOwnershipAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5456 handleObjCPreciseLifetimeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5514 handleUuidAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5574 handleMSInheritanceAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5588 handleDeclspecThreadAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5605 handleAbiTagAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5636 handleARMInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5661 handleMSP430InterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5713 handleMipsInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5768 handleAnyX86InterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5832 handleAVRInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5845 handleAVRSignalAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5870 handleBPFPreserveAccessIndexAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5877 handleWebAssemblyExportNameAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5900 mergeImportModuleAttr(Decl *D, const WebAssemblyImportModuleAttr &AL) argument 5920 mergeImportNameAttr(Decl *D, const WebAssemblyImportNameAttr &AL) argument 5940 handleWebAssemblyImportModuleAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5957 handleWebAssemblyImportNameAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 5972 handleRISCVInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6030 handleInterruptAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6099 handleAMDGPUFlatWorkGroupSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6152 handleAMDGPUWavesPerEUAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6163 handleAMDGPUNumSGPRAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6172 handleAMDGPUNumVGPRAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6181 handleX86ForceAlignArgPointerAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6204 handleLayoutVersion(Sema &S, Decl *D, const ParsedAttr &AL) argument 6318 handleCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6336 handleAssertCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6345 handleAcquireCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6355 handleTryAcquireCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6365 handleReleaseCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6375 handleRequiresCapabilityAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6392 handleDeprecatedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6428 handleNoSanitizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6454 handleNoSanitizeSpecificAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6485 handleInternalLinkageAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6490 handleOpenCLNoSVMAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6502 handleCommonAttributeFeatures(Sema &S, Decl *D, const ParsedAttr &AL) argument 6542 handleOpenCLAccessAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6582 handleSYCLKernelAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6634 handleUninitializedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6677 handleObjCExternallyRetainedAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6715 handleMIGServerRoutineAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6737 handleMSAllocatorAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6751 handleAcquireHandleAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6769 handleHandleAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6776 handleCFGuardAttr(Sema &S, Decl *D, const ParsedAttr &AL) argument 6802 ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const ParsedAttr &AL, bool IncludeCXX11Attributes) argument [all...] |