|
clang
5.0.0
|
AttributeList - Represents a syntactic attribute. More...
#include "clang/Sema/AttributeList.h"
Classes | |
| struct | PropertyData |
| struct | TypeTagForDatatypeData |
Public Types | |
| enum | Syntax { AS_GNU, AS_CXX11, AS_Declspec, AS_Microsoft, AS_Keyword, AS_ContextSensitiveKeyword, AS_Pragma } |
| The style used to specify an attribute. More... | |
| enum | Kind { IgnoredAttribute, UnknownAttribute } |
Static Public Member Functions | |
| static Kind | getKind (const IdentifierInfo *Name, const IdentifierInfo *Scope, Syntax SyntaxUsed) |
Friends | |
| class | AttributePool |
| class | AttributeFactory |
AttributeList - Represents a syntactic attribute.
For a GNU attribute, there are four forms of this construct:
1: attribute(( const )). ParmName/Args/NumArgs will all be unused. 2: attribute(( mode(byte) )). ParmName used, Args/NumArgs unused. 3: attribute(( format(printf, 1, 2) )). ParmName/Args/NumArgs all used. 4: attribute(( aligned(16) )). ParmName is unused, Args/Num used.
Definition at line 95 of file AttributeList.h.
| Enumerator | |
|---|---|
| IgnoredAttribute | |
| UnknownAttribute | |
Definition at line 346 of file AttributeList.h.
The style used to specify an attribute.
Definition at line 98 of file AttributeList.h.
| bool AttributeList::appliesToDecl | ( | const Decl * | D, |
| attr::SubjectMatchRule | MatchRule | ||
| ) | const |
Definition at line 200 of file AttributeList.cpp.
Referenced by clang::Sema::AddPragmaAttributes().
Definition at line 196 of file AttributeList.cpp.
References ParsedAttrInfo::DiagAppertainsToDecl, and getInfo().
Referenced by handleCommonAttributeFeatures().
Definition at line 212 of file AttributeList.cpp.
References ParsedAttrInfo::DiagLangOpts, and getInfo().
Referenced by handleCommonAttributeFeatures().
| bool AttributeList::existsInTarget | ( | const TargetInfo & | Target | ) | const |
Definition at line 228 of file AttributeList.cpp.
References ParsedAttrInfo::ExistsInTarget, and getInfo().
Referenced by clang::Sema::CheckNoCallerSavedRegsAttr(), and ProcessDeclAttribute().
getArg - Return the specified argument.
Definition at line 417 of file AttributeList.h.
Referenced by getArgAsExpr(), getArgAsIdent(), isArgExpr(), and isArgIdent().
Definition at line 425 of file AttributeList.h.
References getArg().
Referenced by checkAttrArgsAreCapabilityObjs(), checkFunctionConditionAttr(), checkParamIsIntegerType(), clang::Sema::CheckRegparmAttr(), clang::Sema::checkStringLiteralArgumentAttr(), checkTryLockFunAttrCommon(), fillAttributedTypeLoc(), getCCTypeAttrKind(), HandleAddressSpaceTypeAttribute(), handleAlignedAttr(), handleAlignValueAttr(), handleAllocAlignAttr(), handleAllocSizeAttr(), handleAMDGPUFlatWorkGroupSizeAttr(), handleAMDGPUNumSGPRAttr(), handleAMDGPUNumVGPRAttr(), handleAMDGPUWavesPerEUAttr(), handleArgumentWithTypeTagAttr(), handleAssertCapabilityAttr(), handleAssumeAlignedAttr(), handleCleanupAttr(), handleConstructorAttr(), handleDeprecatedAttr(), handleDestructorAttr(), handleDiagnoseIfAttr(), handleExclusiveTrylockFunctionAttr(), handleExternalSourceSymbolAttr(), HandleExtVectorTypeAttr(), handleFormatArgAttr(), handleFormatAttr(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), handleLayoutVersion(), handleLoopHintAttr(), handleMSP430InterruptAttr(), HandleNeonVectorTypeAttr(), handleNonNullAttr(), handleOpenCLUnrollHint(), handleOwnershipAttr(), handlePassObjectSizeAttr(), handleSentinelAttr(), handleSharedTrylockFunctionAttr(), handleSubGroupSize(), handleTryAcquireCapabilityAttr(), HandleVectorSizeAttr(), handleWorkGroupSize(), and handleXRayLogArgsAttr().
|
inline |
Definition at line 432 of file AttributeList.h.
References getArg().
Referenced by clang::Sema::checkStringLiteralArgumentAttr(), diagnoseBadTypeAttribute(), fillAttributedTypeLoc(), getCCTypeAttrKind(), handleArgumentWithTypeTagAttr(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleConsumableAttr(), handleEnumExtensibilityAttr(), handleExternalSourceSymbolAttr(), HandleExtVectorTypeAttr(), handleFormatAttr(), handleLoopHintAttr(), handleModeAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), handleOwnershipAttr(), handleParamTypestateAttr(), handleReturnTypestateAttr(), handleSetTypestateAttr(), handleTestTypestateAttr(), and handleTypeTagForDatatypeAttr().
| unsigned AttributeList::getAttributeSpellingListIndex | ( | ) | const |
Get an index into the attribute spelling list defined in Attr.td.
This index is used by an attribute to pretty print itself.
Definition at line 145 of file AttributeList.cpp.
References clang::IdentifierInfo::getName(), Name, and normalizeAttrName().
Referenced by handleAbiTagAttr(), handleAcquireCapabilityAttr(), handleAcquiredAfterAttr(), handleAcquiredBeforeAttr(), handleAliasAttr(), handleAlignedAttr(), handleAlignValueAttr(), handleAllocAlignAttr(), handleAllocSizeAttr(), handleAlwaysInlineAttr(), handleAMDGPUFlatWorkGroupSizeAttr(), handleAMDGPUNumSGPRAttr(), handleAMDGPUNumVGPRAttr(), handleAMDGPUWavesPerEUAttr(), handleAnalyzerNoReturnAttr(), handleAnnotateAttr(), handleAnyX86InterruptAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleAssertCapabilityAttr(), handleAssertExclusiveLockAttr(), handleAssertSharedLockAttr(), handleAssumeAlignedAttr(), handleAttrWithMessage(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallConvAttr(), handleCapabilityAttr(), handleCFAuditedTransferAttr(), handleCFUnknownTransferAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConstantAttr(), handleConstructorAttr(), handleConsumableAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDeprecatedAttr(), handleDestructorAttr(), handleDiagnoseIfAttr(), handleDisableTailCallsAttr(), handleDLLAttr(), handleEnableIfAttr(), handleEnumExtensibilityAttr(), handleExclusiveTrylockFunctionAttr(), handleExternalSourceSymbolAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleHotAttr(), handleIBOutlet(), handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), handleInternalLinkageAttr(), handleLaunchBoundsAttr(), handleLayoutVersion(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleMinSizeAttr(), handleMipsInterruptAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleNakedAttr(), handleNoCallerSavedRegsAttr(), handleNoDebugAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoReturnAttr(), handleNoSanitizeAttr(), handleNoSanitizeSpecificAttr(), handleNotTailCalledAttr(), handleNSConsumedAttr(), handleNSReturnsRetainedAttr(), handleObjCBoxable(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCDesignatedInitializer(), handleObjCIndependentClass(), handleObjCMethodFamilyAttr(), handleObjCNSObject(), handleObjCPreciseLifetimeAttr(), handleObjCRequiresSuperAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCRuntimeName(), handleObjCSuppresProtocolAttr(), handleOpenCLAccessAttr(), handleOptimizeNoneAttr(), handleOwnershipAttr(), handlePackedAttr(), handleParameterABIAttr(), handleParamTypestateAttr(), handlePassObjectSizeAttr(), handlePtGuardedByAttr(), handlePtGuardedVarAttr(), handleReleaseCapabilityAttr(), handleRequiresCapabilityAttr(), handleRestrictAttr(), handleReturnsNonNullAttr(), handleReturnTypestateAttr(), handleSectionAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleSharedAttr(), handleSharedTrylockFunctionAttr(), handleSimpleAttribute(), handleSubGroupSize(), handleSuppressAttr(), handleTargetAttr(), handleTestTypestateAttr(), handleTLSModelAttr(), handleTransparentUnionAttr(), handleTryAcquireCapabilityAttr(), handleTypeTagForDatatypeAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), and handleXRayLogArgsAttr().
|
inline |
Definition at line 441 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
|
inline |
Definition at line 436 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
|
inline |
Definition at line 446 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
|
inline |
Definition at line 404 of file AttributeList.h.
Referenced by handleAlignedAttr().
|
inline |
Definition at line 406 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), distributeNullabilityTypeAttr(), distributeObjCPointerTypeAttr(), fillAttributedTypeLoc(), getAvailabilityDeprecated(), getAvailabilityIntroduced(), getAvailabilityObsoleted(), getCCTypeAttrKind(), getImageAccess(), getInfo(), getLayoutCompatible(), getMatchingCType(), getMessageExpr(), getMustBeNull(), getReplacementExpr(), getStrictLoc(), getUnavailableLoc(), HandleAddressSpaceTypeAttribute(), handleCallConvAttr(), handleCapabilityAttr(), handleCommonAttributeFeatures(), handleDLLAttr(), handleFunctionTypeAttr(), handleMSPointerTypeQualifierAttr(), handleNSConsumedAttr(), handleNSReturnsRetainedAttr(), handleObjCPointerTypeAttr(), clang::Sema::IdentifyCUDATarget(), isAlignasAttribute(), IsBuiltInOrStandardCXX11Attribute(), ProcessDeclAttribute(), ProcessStmtAttribute(), and processTypeAttrs().
|
static |
Definition at line 125 of file AttributeList.cpp.
References AS_CXX11, clang::IdentifierInfo::getName(), and normalizeAttrName().
|
inline |
Definition at line 477 of file AttributeList.h.
References getKind(), and clang::AttributeList::TypeTagForDatatypeData::LayoutCompatible.
Referenced by handleTypeTagForDatatypeAttr().
|
inline |
Definition at line 355 of file AttributeList.h.
References clang::SourceRange::getBegin().
Referenced by clang::Sema::ActOnPragmaAttributePop(), attrNonNullArgCheck(), checkAcquireOrderAttrCommon(), checkAttrArgsAreCapabilityObjs(), checkAttributeNumArgsImpl(), clang::Sema::CheckCallingConvAttr(), checkForConsumableClass(), checkFunctionConditionAttr(), checkIBOutletCommon(), clang::Sema::CheckNoCallerSavedRegsAttr(), checkOmittedBlockReturnType(), clang::Sema::CheckRegparmAttr(), checkTryLockFunAttrCommon(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), distributeNullabilityTypeAttr(), fillAttributedTypeLoc(), getAttrLoc(), handleAbiTagAttr(), HandleAddressSpaceTypeAttribute(), handleAliasAttr(), handleAlignedAttr(), handleAllocSizeAttr(), handleAMDGPUFlatWorkGroupSizeAttr(), handleAMDGPUNumSGPRAttr(), handleAMDGPUNumVGPRAttr(), handleAMDGPUWavesPerEUAttr(), handleAnalyzerNoReturnAttr(), handleAnyX86InterruptAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleBlocksAttr(), handleCallConvAttr(), handleCleanupAttr(), handleCommonAttr(), handleConstantAttr(), handleConsumableAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDeprecatedAttr(), handleDiagnoseIfAttr(), handleEnableIfAttr(), handleEnumExtensibilityAttr(), HandleExtVectorTypeAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleFunctionTypeAttr(), handleGNUInlineAttr(), handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), handleLayoutVersion(), handleMipsInterruptAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleMSPointerTypeQualifierAttr(), handleNakedAttr(), HandleNeonVectorTypeAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoReturnAttr(), handleObjCBridgeAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), handleObjCPreciseLifetimeAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCSuppresProtocolAttr(), handleOpenCLAccessAttr(), HandleOpenCLAccessAttr(), handleOpenCLNoSVMAttr(), handleOpenCLUnrollHint(), handleOwnershipAttr(), handlePackedAttr(), handleParamTypestateAttr(), handleRestrictAttr(), handleReturnTypestateAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleSharedAttr(), handleSubGroupSize(), handleSuppressAttr(), handleTestTypestateAttr(), handleTransparentUnionAttr(), handleTypeTagForDatatypeAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), HandleVectorSizeAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), ProcessDeclAttribute(), clang::Sema::ProcessDeclAttributeList(), ProcessStmtAttribute(), processTypeAttrs(), and threadSafetyCheckIsPointer().
|
inline |
Definition at line 471 of file AttributeList.h.
References getKind(), and clang::AttributeList::TypeTagForDatatypeData::MatchingCType.
Referenced by handleTypeTagForDatatypeAttr().
| void AttributeList::getMatchRules | ( | const LangOptions & | LangOpts, |
| SmallVectorImpl< std::pair< attr::SubjectMatchRule, bool >> & | MatchRules | ||
| ) | const |
Definition at line 205 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::GetPragmaAttributeMatchRules.
Referenced by clang::Sema::ActOnPragmaAttributePush().
| unsigned AttributeList::getMaxArgs | ( | ) | const |
Definition at line 188 of file AttributeList.cpp.
References getInfo(), getMinArgs(), and ParsedAttrInfo::OptArgs.
Referenced by handleCommonAttributeFeatures().
|
inline |
Definition at line 461 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
| unsigned AttributeList::getMinArgs | ( | ) | const |
Definition at line 184 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::NumArgs.
Referenced by getMaxArgs(), and handleCommonAttributeFeatures().
|
inline |
Definition at line 483 of file AttributeList.h.
References getKind(), and clang::AttributeList::TypeTagForDatatypeData::MustBeNull.
Referenced by handleTypeTagForDatatypeAttr().
|
inline |
Definition at line 354 of file AttributeList.h.
Referenced by clang::Sema::ActOnPragmaAttributePop(), clang::Sema::ActOnPragmaAttributePush(), attrNonNullArgCheck(), checkAcquireOrderAttrCommon(), checkAttrArgsAreCapabilityObjs(), checkAttributeNumArgsImpl(), clang::Sema::CheckCallingConvAttr(), checkFunctionConditionAttr(), checkIBOutletCommon(), clang::Sema::CheckNoCallerSavedRegsAttr(), checkOmittedBlockReturnType(), clang::Sema::checkStringLiteralArgumentAttr(), checkTryLockFunAttrCommon(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), distributeNullabilityTypeAttr(), getAttrName(), HandleAddressSpaceTypeAttribute(), handleAlignedAttr(), handleAllocSizeAttr(), handleAlwaysInlineAttr(), handleAMDGPUFlatWorkGroupSizeAttr(), handleAMDGPUWavesPerEUAttr(), handleAnalyzerNoReturnAttr(), handleAnyX86InterruptAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallConvAttr(), handleCFAuditedTransferAttr(), handleCFUnknownTransferAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConstantAttr(), handleConsumableAttr(), handleDeprecatedAttr(), handleDisableTailCallsAttr(), handleDLLAttr(), handleEnumExtensibilityAttr(), HandleExtVectorTypeAttr(), handleFallThroughAttr(), handleFormatAttr(), handleGlobalAttr(), handleHotAttr(), handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), handleInternalLinkageAttr(), handleLayoutVersion(), handleMipsInterruptAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleMSPointerTypeQualifierAttr(), handleNakedAttr(), HandleNeonVectorTypeAttr(), handleNoReturnAttr(), handleNoSanitizeAttr(), handleNoSanitizeSpecificAttr(), handleNotTailCalledAttr(), handleNSReturnsRetainedAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipAttr(), handleObjCOwnershipTypeAttr(), handleObjCRequiresSuperAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCSuppresProtocolAttr(), handleOpenCLAccessAttr(), handleOpenCLNoSVMAttr(), handleOpenCLUnrollHint(), handleOwnershipAttr(), handlePackedAttr(), handleParamTypestateAttr(), handlePassObjectSizeAttr(), handleRestrictAttr(), handleReturnTypestateAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleSharedAttr(), handleSimpleAttributeWithExclusions(), handleSubGroupSize(), handleSuppressAttr(), handleTestTypestateAttr(), handleTransparentUnionAttr(), handleTypeTagForDatatypeAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), HandleVectorSizeAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), ProcessDeclAttribute(), ProcessStmtAttribute(), processTypeAttrs(), and threadSafetyCheckIsPointer().
|
inline |
Definition at line 410 of file AttributeList.h.
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFinishCXXMemberSpecification(), clang::ParsedAttributes::add(), clang::ParsedAttributes::addAll(), clang::ParsedAttributes::addAllAtEnd(), clang::Sema::AddPragmaAttributes(), checkOmittedBlockReturnType(), checkUnusedDeclAttributes(), distributeTypeAttrsFromDeclarator(), fillAttributedTypeLoc(), clang::Declarator::getCXX11AttributeRanges(), GetFullTypeForDeclarator(), getImageAccess(), getMSPropertyAttr(), hasNullabilityAttr(), hasParsedAttr(), clang::Sema::IdentifyCUDATarget(), inferARCWriteback(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Sema::ProcessAccessDeclAttributeList(), clang::Sema::ProcessDeclAttributeList(), clang::Sema::ProcessStmtAttributes(), processTypeAttrs(), spliceAttrOutOfList(), takeDeclAttributes(), and transferARCOwnershipToDeclaratorChunk().
|
inline |
getNumArgs - Return the number of actual arguments to this attribute.
Definition at line 414 of file AttributeList.h.
Referenced by checkAttrArgsAreCapabilityObjs(), getNumAttributeArgs(), handleAbiTagAttr(), HandleAddressSpaceTypeAttribute(), handleAlignedAttr(), handleAllocSizeAttr(), handleAMDGPUWavesPerEUAttr(), handleARMInterruptAttr(), handleAssumeAlignedAttr(), handleAttrWithMessage(), handleCallableWhenAttr(), handleConstructorAttr(), handleDestructorAttr(), HandleExtVectorTypeAttr(), handleFunctionTypeAttr(), handleIBOutletCollection(), handleLaunchBoundsAttr(), handleMipsInterruptAttr(), HandleNeonVectorTypeAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoSanitizeAttr(), handleObjCGCTypeAttr(), handleOpenCLUnrollHint(), handleOwnershipAttr(), handleSentinelAttr(), handleSuppressAttr(), HandleVectorSizeAttr(), and handleWeakRefAttr().
|
inline |
Definition at line 391 of file AttributeList.h.
References hasProcessingCache().
Referenced by clang::Sema::CheckCallingConvAttr().
|
inline |
Definition at line 494 of file AttributeList.h.
References isDeclspecPropertyAttribute().
Referenced by clang::Sema::HandleMSProperty().
|
inline |
Definition at line 356 of file AttributeList.h.
Referenced by checkUnusedDeclAttributes(), clang::Declarator::getCXX11AttributeRanges(), handleAbiTagAttr(), handleAcquireCapabilityAttr(), handleAcquiredAfterAttr(), handleAcquiredBeforeAttr(), handleAliasAttr(), handleAlignedAttr(), handleAlignValueAttr(), handleAllocAlignAttr(), handleAllocSizeAttr(), handleAlwaysInlineAttr(), handleAnalyzerNoReturnAttr(), handleAnnotateAttr(), handleArgumentWithTypeTagAttr(), handleAssertCapabilityAttr(), handleAssertExclusiveLockAttr(), handleAssertSharedLockAttr(), handleAssumeAlignedAttr(), handleAttrWithMessage(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallConvAttr(), handleCapabilityAttr(), handleCFAuditedTransferAttr(), handleCFUnknownTransferAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConstantAttr(), handleConstructorAttr(), handleConsumableAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDeprecatedAttr(), handleDestructorAttr(), handleDiagnoseIfAttr(), handleDisableTailCallsAttr(), handleDLLAttr(), handleEnableIfAttr(), handleEnumExtensibilityAttr(), handleExclusiveTrylockFunctionAttr(), handleExternalSourceSymbolAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleHotAttr(), handleIBOutlet(), handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), handleInternalLinkageAttr(), handleLaunchBoundsAttr(), handleLayoutVersion(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleLoopHintAttr(), handleMinSizeAttr(), handleMipsInterruptAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleNakedAttr(), handleNoCallerSavedRegsAttr(), handleNoDebugAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoReturnAttr(), handleNoSanitizeAttr(), handleNoSanitizeSpecificAttr(), handleNotTailCalledAttr(), handleNSConsumedAttr(), handleNSReturnsRetainedAttr(), handleObjCBoxable(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCDesignatedInitializer(), handleObjCIndependentClass(), handleObjCMethodFamilyAttr(), handleObjCNSObject(), handleObjCOwnershipAttr(), handleObjCPreciseLifetimeAttr(), handleObjCRequiresSuperAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCRuntimeName(), handleObjCSuppresProtocolAttr(), handleOpenCLAccessAttr(), handleOpenCLUnrollHint(), handleOptimizeNoneAttr(), handlePackedAttr(), handleParameterABIAttr(), handleParamTypestateAttr(), handlePassObjectSizeAttr(), handlePtGuardedByAttr(), handlePtGuardedVarAttr(), handleReleaseCapabilityAttr(), handleRequiresCapabilityAttr(), handleRestrictAttr(), handleReturnsNonNullAttr(), handleReturnTypestateAttr(), handleSectionAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleSharedAttr(), handleSharedTrylockFunctionAttr(), handleSimpleAttribute(), handleSimpleAttributeWithExclusions(), handleSubGroupSize(), handleSuppressAttr(), handleTargetAttr(), handleTestTypestateAttr(), handleTLSModelAttr(), handleTransparentUnionAttr(), handleTryAcquireCapabilityAttr(), handleTypeTagForDatatypeAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), handleXRayLogArgsAttr(), and ProcessStmtAttribute().
|
inline |
Definition at line 466 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
|
inline |
Definition at line 360 of file AttributeList.h.
|
inline |
Definition at line 359 of file AttributeList.h.
Referenced by handleDeprecatedAttr(), handleFallThroughAttr(), handleUnusedAttr(), handleWarnUnusedResult(), and processTypeAttrs().
| unsigned AttributeList::getSemanticSpelling | ( | ) | const |
If the parsed attribute has a semantic equivalent, and it would have a semantic Spelling enumeration (due to having semantically-distinct spelling variations), return the value of that semantic spelling.
If the parsed attribute does not have a semantic equivalent, or would not have a Spelling enumeration, the value UINT_MAX is returned.
Definition at line 240 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::SpellingIndexToSemanticSpelling.
Referenced by getImageAccess(), handleMSInheritanceAttr(), and HandleOpenCLAccessAttr().
|
inline |
Definition at line 451 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
|
inline |
Definition at line 489 of file AttributeList.h.
Referenced by handleIBOutletCollection(), and handleVecTypeHint().
|
inline |
Definition at line 456 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
| bool AttributeList::hasCustomParsing | ( | ) | const |
Definition at line 192 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::HasCustomParsing.
Referenced by handleCommonAttributeFeatures().
|
inline |
Definition at line 362 of file AttributeList.h.
Referenced by getNumAttributeArgs(), handleIBOutletCollection(), and handleVecTypeHint().
|
inline |
Definition at line 390 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), and getProcessingCache().
|
inline |
Definition at line 358 of file AttributeList.h.
Referenced by handleDeprecatedAttr().
| bool AttributeList::hasVariadicArg | ( | ) | const |
Definition at line 244 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::OptArgs.
Referenced by handleCommonAttributeFeatures().
|
inline |
Definition at line 369 of file AttributeList.h.
References getKind(), and isKeywordAttribute().
Referenced by isCXX11Attribute().
Definition at line 422 of file AttributeList.h.
References getArg().
Referenced by checkParamIsIntegerType(), fillAttributedTypeLoc(), getCCTypeAttrKind(), handleDeprecatedAttr(), and handleMSP430InterruptAttr().
Definition at line 429 of file AttributeList.h.
References getArg().
Referenced by clang::Sema::checkStringLiteralArgumentAttr(), diagnoseBadTypeAttribute(), fillAttributedTypeLoc(), handleArgumentWithTypeTagAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleConsumableAttr(), handleEnumExtensibilityAttr(), HandleExtVectorTypeAttr(), handleFormatAttr(), handleModeAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), handleOwnershipAttr(), handleParamTypestateAttr(), handleReturnTypestateAttr(), handleSetTypestateAttr(), handleTestTypestateAttr(), and handleTypeTagForDatatypeAttr().
|
inline |
Definition at line 383 of file AttributeList.h.
References AS_ContextSensitiveKeyword.
Referenced by distributeNullabilityTypeAttr(), and processTypeAttrs().
|
inline |
Definition at line 376 of file AttributeList.h.
References AS_CXX11, and isAlignasAttribute().
Referenced by distributeFunctionTypeAttrFromDeclSpec(), clang::Declarator::getCXX11AttributeRanges(), handleAnalyzerNoReturnAttr(), handleDeprecatedAttr(), handleFallThroughAttr(), handleUnusedAttr(), handleWarnUnusedResult(), ProcessDeclAttribute(), and processTypeAttrs().
|
inline |
Definition at line 374 of file AttributeList.h.
References AS_Declspec.
Referenced by handleDeprecatedAttr(), handleNakedAttr(), ProcessDeclAttribute(), and ProcessStmtAttribute().
|
inline |
Is this the Microsoft __declspec(property) attribute?
Definition at line 365 of file AttributeList.h.
Referenced by getPropertyData().
|
inline |
Definition at line 387 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), checkOmittedBlockReturnType(), clang::Sema::CheckRegparmAttr(), checkUnusedDeclAttributes(), getCCTypeAttrKind(), ProcessDeclAttribute(), and processTypeAttrs().
|
inline |
Definition at line 379 of file AttributeList.h.
References AS_ContextSensitiveKeyword, and AS_Keyword.
Referenced by isAlignasAttribute().
| bool AttributeList::isKnownToGCC | ( | ) | const |
Definition at line 232 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::IsKnownToGCC.
|
inline |
Definition at line 375 of file AttributeList.h.
References AS_Microsoft.
Referenced by handleUuidAttr().
|
inline |
Definition at line 403 of file AttributeList.h.
References clang::SourceLocation::isValid().
Referenced by handleAlignedAttr().
| bool AttributeList::isStmtAttr | ( | ) | const |
Definition at line 224 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::IsStmt.
Referenced by ProcessDeclAttribute().
| bool AttributeList::isSupportedByPragmaAttribute | ( | ) | const |
Definition at line 236 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::IsSupportedByPragmaAttribute.
| bool AttributeList::isTargetSpecificAttr | ( | ) | const |
Definition at line 216 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::IsTargetSpecific.
| bool AttributeList::isTypeAttr | ( | ) | const |
Definition at line 220 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::IsType.
Referenced by checkOmittedBlockReturnType(), and ProcessDeclAttribute().
|
inline |
Definition at line 400 of file AttributeList.h.
Referenced by checkUnusedDeclAttributes(), handleNSReturnsRetainedAttr(), and takeDeclAttributes().
Definition at line 388 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckNoCallerSavedRegsAttr(), clang::Sema::CheckNoReturnAttr(), clang::Sema::CheckRegparmAttr(), HandleAddressSpaceTypeAttribute(), handleFunctionTypeAttr(), handleInitPriorityAttr(), HandleNeonVectorTypeAttr(), handleObjCGCTypeAttr(), handleObjCOwnershipTypeAttr(), HandleOpenCLAccessAttr(), HandleVectorSizeAttr(), and processTypeAttrs().
|
inline |
Definition at line 411 of file AttributeList.h.
Referenced by clang::ParsedAttributes::add(), clang::ParsedAttributes::addAll(), clang::ParsedAttributes::addAllAtEnd(), checkOmittedBlockReturnType(), spliceAttrIntoList(), spliceAttrOutOfList(), and takeDeclAttributes().
|
inline |
Definition at line 395 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr().
|
inline |
Definition at line 401 of file AttributeList.h.
Referenced by processTypeAttrs().
|
friend |
Definition at line 343 of file AttributeList.h.
|
friend |
Definition at line 342 of file AttributeList.h.
1.8.6