clang API Documentation
#include <AttributeList.h>
Classes | |
struct | PropertyData |
struct | TypeTagForDatatypeData |
Public Types | |
enum | Syntax { AS_GNU, AS_CXX11, AS_Declspec, AS_Keyword, AS_Pragma } |
The style used to specify an attribute. More... | |
enum | Kind |
Public Member Functions | |
IdentifierInfo * | getName () const |
SourceLocation | getLoc () const |
SourceRange | getRange () const |
bool | hasScope () const |
IdentifierInfo * | getScopeName () const |
SourceLocation | getScopeLoc () const |
bool | hasParsedType () const |
bool | isDeclspecPropertyAttribute () const |
Is this the Microsoft __declspec(property) attribute? | |
bool | isAlignasAttribute () const |
bool | isDeclspecAttribute () const |
bool | isCXX11Attribute () const |
bool | isKeywordAttribute () const |
bool | isInvalid () const |
void | setInvalid (bool b=true) const |
bool | isUsedAsTypeAttr () const |
void | setUsedAsTypeAttr () |
bool | isPackExpansion () const |
SourceLocation | getEllipsisLoc () const |
Kind | getKind () const |
AttributeList * | getNext () const |
void | setNext (AttributeList *N) |
unsigned | getNumArgs () const |
getNumArgs - Return the number of actual arguments to this attribute. | |
ArgsUnion | getArg (unsigned Arg) const |
getArg - Return the specified argument. | |
bool | isArgExpr (unsigned Arg) const |
Expr * | getArgAsExpr (unsigned Arg) const |
bool | isArgIdent (unsigned Arg) const |
IdentifierLoc * | getArgAsIdent (unsigned Arg) const |
const AvailabilityChange & | getAvailabilityIntroduced () const |
const AvailabilityChange & | getAvailabilityDeprecated () const |
const AvailabilityChange & | getAvailabilityObsoleted () const |
SourceLocation | getUnavailableLoc () const |
const Expr * | getMessageExpr () const |
const ParsedType & | getMatchingCType () const |
bool | getLayoutCompatible () const |
bool | getMustBeNull () const |
const ParsedType & | getTypeArg () const |
const PropertyData & | getPropertyData () const |
unsigned | 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. | |
bool | isTargetSpecificAttr () const |
bool | isTypeAttr () const |
bool | hasCustomParsing () const |
unsigned | getMinArgs () const |
unsigned | getMaxArgs () const |
bool | hasVariadicArg () const |
bool | diagnoseAppertainsTo (class Sema &S, const Decl *D) const |
bool | diagnoseLangOpts (class Sema &S) const |
bool | existsInTarget (const llvm::Triple &T) const |
bool | isKnownToGCC () const |
unsigned | 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. | |
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 72 of file AttributeList.h.
Definition at line 321 of file AttributeList.h.
The style used to specify an attribute.
AS_GNU |
__attribute__((...)) |
AS_CXX11 |
[[...]] |
AS_Declspec |
__declspec(...) |
AS_Keyword |
__ptr16, alignas(...), etc. |
AS_Pragma |
#pragma ... |
Definition at line 75 of file AttributeList.h.
bool AttributeList::diagnoseAppertainsTo | ( | class Sema & | S, |
const Decl * | D | ||
) | const |
Definition at line 182 of file AttributeList.cpp.
References ParsedAttrInfo::DiagAppertainsToDecl, and getInfo().
Referenced by handleCommonAttributeFeatures().
bool AttributeList::diagnoseLangOpts | ( | class Sema & | S | ) | const |
Definition at line 186 of file AttributeList.cpp.
References ParsedAttrInfo::DiagLangOpts, and getInfo().
Referenced by handleCommonAttributeFeatures().
bool AttributeList::existsInTarget | ( | const llvm::Triple & | T | ) | const |
Definition at line 198 of file AttributeList.cpp.
References ParsedAttrInfo::ExistsInTarget, and getInfo().
Referenced by ProcessDeclAttribute().
ArgsUnion clang::AttributeList::getArg | ( | unsigned | Arg | ) | const [inline] |
getArg - Return the specified argument.
Definition at line 375 of file AttributeList.h.
Referenced by getArgAsExpr(), getArgAsIdent(), isArgExpr(), and isArgIdent().
Expr* clang::AttributeList::getArgAsExpr | ( | unsigned | Arg | ) | const [inline] |
Definition at line 383 of file AttributeList.h.
References getArg().
Referenced by checkAttrArgsAreCapabilityObjs(), clang::Sema::CheckRegparmAttr(), clang::Sema::checkStringLiteralArgumentAttr(), checkTryLockFunAttrCommon(), fillAttributedTypeLoc(), getCCTypeAttrKind(), HandleAddressSpaceTypeAttribute(), handleAlignedAttr(), handleAlignValueAttr(), handleArgumentWithTypeTagAttr(), handleAssertCapabilityAttr(), handleAssumeAlignedAttr(), handleCleanupAttr(), handleConstructorAttr(), handleDestructorAttr(), handleEnableIfAttr(), handleExclusiveTrylockFunctionAttr(), HandleExtVectorTypeAttr(), handleFormatArgAttr(), handleFormatAttr(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), handleLoopHintAttr(), handleMSP430InterruptAttr(), HandleNeonVectorTypeAttr(), handleNonNullAttr(), handleOwnershipAttr(), handleSentinelAttr(), handleSharedTrylockFunctionAttr(), handleTryAcquireCapabilityAttr(), HandleVectorSizeAttr(), and handleWorkGroupSize().
IdentifierLoc* clang::AttributeList::getArgAsIdent | ( | unsigned | Arg | ) | const [inline] |
Definition at line 390 of file AttributeList.h.
References getArg().
Referenced by clang::Sema::checkStringLiteralArgumentAttr(), diagnoseBadTypeAttribute(), fillAttributedTypeLoc(), getCCTypeAttrKind(), handleArgumentWithTypeTagAttr(), handleAvailabilityAttr(), handleBlocksAttr(), handleConsumableAttr(), HandleExtVectorTypeAttr(), handleFormatAttr(), handleLoopHintAttr(), handleModeAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), handleOwnershipAttr(), handleParamTypestateAttr(), handleReturnTypestateAttr(), handleSetTypestateAttr(), handleTestTypestateAttr(), and handleTypeTagForDatatypeAttr().
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 137 of file AttributeList.cpp.
References clang::IdentifierInfo::getName().
Referenced by handleAcquireCapabilityAttr(), handleAcquiredAfterAttr(), handleAcquiredBeforeAttr(), handleAliasAttr(), handleAlignedAttr(), handleAlignValueAttr(), handleAlwaysInlineAttr(), handleAnalyzerNoReturnAttr(), handleAnnotateAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleAssertCapabilityAttr(), handleAssertExclusiveLockAttr(), handleAssertSharedLockAttr(), handleAssumeAlignedAttr(), handleAttrWithMessage(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallConvAttr(), handleCapabilityAttr(), handleCFAuditedTransferAttr(), handleCFUnknownTransferAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConstructorAttr(), handleConsumableAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDestructorAttr(), handleDLLAttr(), handleEnableIfAttr(), handleExclusiveTrylockFunctionAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleHotAttr(), handleIBOutlet(), handleIBOutletCollection(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleMallocAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleNoDebugAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoReturnAttr(), handleNSConsumedAttr(), handleNSReturnsRetainedAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCDesignatedInitializer(), handleObjCMethodFamilyAttr(), handleObjCNSObject(), handleObjCPreciseLifetimeAttr(), handleObjCRequiresSuperAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCRuntimeName(), handleObjCSuppresProtocolAttr(), handleOptimizeNoneAttr(), handleOwnershipAttr(), handlePackedAttr(), handleParamTypestateAttr(), handlePtGuardedByAttr(), handlePtGuardedVarAttr(), handleReleaseCapabilityAttr(), handleRequiresCapabilityAttr(), handleReturnsNonNullAttr(), handleReturnTypestateAttr(), handleSectionAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleSharedTrylockFunctionAttr(), handleSimpleAttribute(), handleTestTypestateAttr(), handleTLSModelAttr(), handleTransparentUnionAttr(), handleTryAcquireCapabilityAttr(), handleTypeTagForDatatypeAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), and handleX86ForceAlignArgPointerAttr().
const AvailabilityChange& clang::AttributeList::getAvailabilityDeprecated | ( | ) | const [inline] |
Definition at line 399 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
const AvailabilityChange& clang::AttributeList::getAvailabilityIntroduced | ( | ) | const [inline] |
Definition at line 394 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
const AvailabilityChange& clang::AttributeList::getAvailabilityObsoleted | ( | ) | const [inline] |
Definition at line 404 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
SourceLocation clang::AttributeList::getEllipsisLoc | ( | ) | const [inline] |
Definition at line 362 of file AttributeList.h.
Referenced by handleAlignedAttr().
Kind clang::AttributeList::getKind | ( | ) | const [inline] |
Definition at line 364 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), distributeObjCPointerTypeAttr(), fillAttributedTypeLoc(), getAvailabilityDeprecated(), getAvailabilityIntroduced(), getAvailabilityObsoleted(), getCCTypeAttrKind(), getInfo(), getLayoutCompatible(), getMatchingCType(), getMessageExpr(), getMustBeNull(), getUnavailableLoc(), HandleAddressSpaceTypeAttribute(), handleCallConvAttr(), handleCapabilityAttr(), handleCommonAttributeFeatures(), handleDLLAttr(), handleFunctionTypeAttr(), handleMSPointerTypeQualifierAttr(), handleNSConsumedAttr(), handleNSReturnsRetainedAttr(), handleObjCPointerTypeAttr(), isAlignasAttribute(), IsBuiltInOrStandardCXX11Attribute(), ProcessDeclAttribute(), ProcessStmtAttribute(), and processTypeAttrs().
AttributeList::Kind AttributeList::getKind | ( | const IdentifierInfo * | Name, |
const IdentifierInfo * | Scope, | ||
Syntax | SyntaxUsed | ||
) | [static] |
Definition at line 111 of file AttributeList.cpp.
References AS_CXX11, AS_GNU, and clang::IdentifierInfo::getName().
bool clang::AttributeList::getLayoutCompatible | ( | ) | const [inline] |
Definition at line 425 of file AttributeList.h.
References getKind(), and clang::AttributeList::TypeTagForDatatypeData::LayoutCompatible.
Referenced by handleTypeTagForDatatypeAttr().
SourceLocation clang::AttributeList::getLoc | ( | ) | const [inline] |
Definition at line 330 of file AttributeList.h.
References clang::SourceRange::getBegin().
Referenced by attrNonNullArgCheck(), checkAcquireOrderAttrCommon(), checkAttrArgsAreCapabilityObjs(), checkAttributeNumArgsImpl(), checkAttrMutualExclusion(), clang::Sema::CheckCallingConvAttr(), checkForConsumableClass(), checkFunctionOrMethodParameterIndex(), checkIBOutletCommon(), clang::Sema::CheckRegparmAttr(), checkTryLockFunAttrCommon(), checkUInt32Argument(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), fillAttributedTypeLoc(), HandleAddressSpaceTypeAttribute(), handleAliasAttr(), handleAlignedAttr(), handleAnalyzerNoReturnAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallConvAttr(), handleCleanupAttr(), handleCommonAttr(), handleConsumableAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDeprecatedAttr(), handleEnableIfAttr(), HandleExtVectorTypeAttr(), handleFormatArgAttr(), handleFormatAttr(), handleFunctionTypeAttr(), handleGNUInlineAttr(), handleIBOutletCollection(), handleInitPriorityAttr(), handleMallocAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleMSPointerTypeQualifierAttr(), HandleNeonVectorTypeAttr(), handleNoDebugAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoReturnAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), handleObjCPreciseLifetimeAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCSuppresProtocolAttr(), handleOwnershipAttr(), handlePackedAttr(), handleParamTypestateAttr(), handleReturnTypestateAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleTestTypestateAttr(), handleTransparentUnionAttr(), handleTypeTagForDatatypeAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), HandleVectorSizeAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), clang::Sema::ParsedFreeStandingDeclSpec(), ProcessDeclAttribute(), clang::Sema::ProcessDeclAttributeList(), ProcessStmtAttribute(), processTypeAttrs(), and threadSafetyCheckIsPointer().
const ParsedType& clang::AttributeList::getMatchingCType | ( | ) | const [inline] |
Definition at line 419 of file AttributeList.h.
References getKind(), and clang::AttributeList::TypeTagForDatatypeData::MatchingCType.
Referenced by handleTypeTagForDatatypeAttr().
unsigned AttributeList::getMaxArgs | ( | ) | const |
Definition at line 174 of file AttributeList.cpp.
References getInfo(), getMinArgs(), and ParsedAttrInfo::OptArgs.
Referenced by handleCommonAttributeFeatures().
const Expr* clang::AttributeList::getMessageExpr | ( | ) | const [inline] |
Definition at line 414 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
unsigned AttributeList::getMinArgs | ( | ) | const |
Definition at line 170 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::NumArgs.
Referenced by getMaxArgs(), and handleCommonAttributeFeatures().
bool clang::AttributeList::getMustBeNull | ( | ) | const [inline] |
Definition at line 431 of file AttributeList.h.
References getKind(), and clang::AttributeList::TypeTagForDatatypeData::MustBeNull.
Referenced by handleTypeTagForDatatypeAttr().
IdentifierInfo* clang::AttributeList::getName | ( | ) | const [inline] |
Definition at line 329 of file AttributeList.h.
Referenced by attrNonNullArgCheck(), checkAcquireOrderAttrCommon(), checkAttrArgsAreCapabilityObjs(), checkAttributeNumArgsImpl(), checkAttrMutualExclusion(), clang::Sema::CheckCallingConvAttr(), checkFunctionOrMethodParameterIndex(), checkIBOutletCommon(), clang::Sema::checkStringLiteralArgumentAttr(), checkTryLockFunAttrCommon(), checkUInt32Argument(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), HandleAddressSpaceTypeAttribute(), handleAlignedAttr(), handleAnalyzerNoReturnAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallConvAttr(), handleCleanupAttr(), handleCommonAttr(), handleConsumableAttr(), handleDLLAttr(), HandleExtVectorTypeAttr(), handleFormatAttr(), handleIBOutletCollection(), handleInitPriorityAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleMSPointerTypeQualifierAttr(), HandleNeonVectorTypeAttr(), handleNoDebugAttr(), handleNoReturnAttr(), handleNSConsumedAttr(), handleNSReturnsRetainedAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipAttr(), handleObjCOwnershipTypeAttr(), handleObjCRequiresSuperAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCSuppresProtocolAttr(), handleOwnershipAttr(), handlePackedAttr(), handleParamTypestateAttr(), handleReturnTypestateAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleTestTypestateAttr(), handleTransparentUnionAttr(), handleTypeTagForDatatypeAttr(), handleUsedAttr(), handleUuidAttr(), HandleVectorSizeAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), clang::Sema::ParsedFreeStandingDeclSpec(), ProcessDeclAttribute(), ProcessStmtAttribute(), processTypeAttrs(), and threadSafetyCheckIsPointer().
AttributeList* clang::AttributeList::getNext | ( | ) | const [inline] |
Definition at line 368 of file AttributeList.h.
Referenced by clang::Sema::ActOnFinishCXXMemberSpecification(), clang::ParsedAttributes::add(), clang::ParsedAttributes::addAll(), checkUnusedDeclAttributes(), distributeTypeAttrsFromDeclarator(), fillAttributedTypeLoc(), clang::Declarator::getCXX11AttributeRanges(), GetFullTypeForDeclarator(), getMSPropertyAttr(), hasParsedAttr(), inferARCWriteback(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Sema::ProcessAccessDeclAttributeList(), clang::Sema::ProcessDeclAttributeList(), clang::Sema::ProcessStmtAttributes(), processTypeAttrs(), spliceAttrOutOfList(), takeDeclAttributes(), and transferARCOwnershipToDeclaratorChunk().
unsigned clang::AttributeList::getNumArgs | ( | ) | const [inline] |
getNumArgs - Return the number of actual arguments to this attribute.
Definition at line 372 of file AttributeList.h.
Referenced by checkAttrArgsAreCapabilityObjs(), getNumAttributeArgs(), HandleAddressSpaceTypeAttribute(), handleAlignedAttr(), handleARMInterruptAttr(), handleAssumeAlignedAttr(), handleAttrWithMessage(), handleCallableWhenAttr(), handleConstructorAttr(), handleDestructorAttr(), HandleExtVectorTypeAttr(), handleFunctionTypeAttr(), handleIBOutletCollection(), handleLaunchBoundsAttr(), HandleNeonVectorTypeAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleObjCGCTypeAttr(), handleOwnershipAttr(), handleSentinelAttr(), HandleVectorSizeAttr(), and handleWeakRefAttr().
const PropertyData& clang::AttributeList::getPropertyData | ( | ) | const [inline] |
Definition at line 442 of file AttributeList.h.
References isDeclspecPropertyAttribute().
Referenced by clang::Sema::HandleMSProperty().
SourceRange clang::AttributeList::getRange | ( | ) | const [inline] |
Definition at line 331 of file AttributeList.h.
Referenced by checkUnusedDeclAttributes(), clang::Declarator::getCXX11AttributeRanges(), handleAcquireCapabilityAttr(), handleAcquiredAfterAttr(), handleAcquiredBeforeAttr(), handleAliasAttr(), handleAlignedAttr(), handleAlignValueAttr(), handleAlwaysInlineAttr(), handleAnalyzerNoReturnAttr(), handleAnnotateAttr(), handleArgumentWithTypeTagAttr(), handleAssertCapabilityAttr(), handleAssertExclusiveLockAttr(), handleAssertSharedLockAttr(), handleAssumeAlignedAttr(), handleAttrWithMessage(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallConvAttr(), handleCapabilityAttr(), handleCFAuditedTransferAttr(), handleCFUnknownTransferAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConstructorAttr(), handleConsumableAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDestructorAttr(), handleDLLAttr(), handleEnableIfAttr(), handleExclusiveTrylockFunctionAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleHotAttr(), handleIBOutlet(), handleIBOutletCollection(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleLoopHintAttr(), handleMallocAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleNoDebugAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoReturnAttr(), handleNSConsumedAttr(), handleNSReturnsRetainedAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCDesignatedInitializer(), handleObjCMethodFamilyAttr(), handleObjCNSObject(), handleObjCOwnershipAttr(), handleObjCPreciseLifetimeAttr(), handleObjCRequiresSuperAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCRuntimeName(), handleObjCSuppresProtocolAttr(), handleOptimizeNoneAttr(), handlePackedAttr(), handleParamTypestateAttr(), handlePtGuardedByAttr(), handlePtGuardedVarAttr(), handleReleaseCapabilityAttr(), handleRequiresCapabilityAttr(), handleReturnsNonNullAttr(), handleReturnTypestateAttr(), handleSectionAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleSharedTrylockFunctionAttr(), handleSimpleAttribute(), handleTestTypestateAttr(), handleTLSModelAttr(), handleTransparentUnionAttr(), handleTryAcquireCapabilityAttr(), handleTypeTagForDatatypeAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), and ProcessStmtAttribute().
SourceLocation clang::AttributeList::getScopeLoc | ( | ) | const [inline] |
Definition at line 335 of file AttributeList.h.
IdentifierInfo* clang::AttributeList::getScopeName | ( | ) | const [inline] |
Definition at line 334 of file AttributeList.h.
Referenced by 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 206 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::SpellingIndexToSemanticSpelling.
Referenced by handleMSInheritanceAttr().
const ParsedType& clang::AttributeList::getTypeArg | ( | ) | const [inline] |
Definition at line 437 of file AttributeList.h.
Referenced by handleIBOutletCollection(), and handleVecTypeHint().
SourceLocation clang::AttributeList::getUnavailableLoc | ( | ) | const [inline] |
Definition at line 409 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
bool AttributeList::hasCustomParsing | ( | ) | const |
Definition at line 178 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::HasCustomParsing.
Referenced by handleCommonAttributeFeatures().
bool clang::AttributeList::hasParsedType | ( | ) | const [inline] |
Definition at line 337 of file AttributeList.h.
Referenced by getNumAttributeArgs(), handleIBOutletCollection(), and handleVecTypeHint().
bool clang::AttributeList::hasScope | ( | ) | const [inline] |
Definition at line 333 of file AttributeList.h.
bool AttributeList::hasVariadicArg | ( | ) | const |
Definition at line 210 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::OptArgs.
Referenced by handleCommonAttributeFeatures().
bool clang::AttributeList::isAlignasAttribute | ( | ) | const [inline] |
Definition at line 344 of file AttributeList.h.
References AS_Keyword, and getKind().
Referenced by isCXX11Attribute().
bool clang::AttributeList::isArgExpr | ( | unsigned | Arg | ) | const [inline] |
Definition at line 380 of file AttributeList.h.
References getArg().
Referenced by fillAttributedTypeLoc(), getCCTypeAttrKind(), and handleMSP430InterruptAttr().
bool clang::AttributeList::isArgIdent | ( | unsigned | Arg | ) | const [inline] |
Definition at line 387 of file AttributeList.h.
References getArg().
Referenced by clang::Sema::checkStringLiteralArgumentAttr(), diagnoseBadTypeAttribute(), fillAttributedTypeLoc(), handleArgumentWithTypeTagAttr(), handleBlocksAttr(), handleConsumableAttr(), HandleExtVectorTypeAttr(), handleFormatAttr(), handleModeAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), handleOwnershipAttr(), handleParamTypestateAttr(), handleReturnTypestateAttr(), handleSetTypestateAttr(), handleTestTypestateAttr(), and handleTypeTagForDatatypeAttr().
bool clang::AttributeList::isCXX11Attribute | ( | ) | const [inline] |
Definition at line 350 of file AttributeList.h.
References AS_CXX11, and isAlignasAttribute().
Referenced by distributeFunctionTypeAttrFromDeclSpec(), clang::Declarator::getCXX11AttributeRanges(), handleAnalyzerNoReturnAttr(), ProcessDeclAttribute(), and processTypeAttrs().
bool clang::AttributeList::isDeclspecAttribute | ( | ) | const [inline] |
Definition at line 349 of file AttributeList.h.
References AS_Declspec.
Referenced by ProcessDeclAttribute(), and ProcessStmtAttribute().
bool clang::AttributeList::isDeclspecPropertyAttribute | ( | ) | const [inline] |
Is this the Microsoft __declspec(property) attribute?
Definition at line 340 of file AttributeList.h.
Referenced by getPropertyData().
bool clang::AttributeList::isInvalid | ( | ) | const [inline] |
Definition at line 355 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckRegparmAttr(), checkUnusedDeclAttributes(), getCCTypeAttrKind(), ProcessDeclAttribute(), and processTypeAttrs().
bool clang::AttributeList::isKeywordAttribute | ( | ) | const [inline] |
Definition at line 353 of file AttributeList.h.
References AS_Keyword.
bool AttributeList::isKnownToGCC | ( | ) | const |
Definition at line 202 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::IsKnownToGCC.
bool clang::AttributeList::isPackExpansion | ( | ) | const [inline] |
Definition at line 361 of file AttributeList.h.
References clang::SourceLocation::isValid().
Referenced by handleAlignedAttr().
bool AttributeList::isTargetSpecificAttr | ( | ) | const |
Definition at line 190 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::IsTargetSpecific.
bool AttributeList::isTypeAttr | ( | ) | const |
Definition at line 194 of file AttributeList.cpp.
References getInfo(), and ParsedAttrInfo::IsType.
Referenced by ProcessDeclAttribute().
bool clang::AttributeList::isUsedAsTypeAttr | ( | ) | const [inline] |
Definition at line 358 of file AttributeList.h.
Referenced by checkUnusedDeclAttributes(), and takeDeclAttributes().
void clang::AttributeList::setInvalid | ( | bool | b = true | ) | const [inline] |
Definition at line 356 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckNoReturnAttr(), clang::Sema::CheckRegparmAttr(), HandleAddressSpaceTypeAttribute(), handleFunctionTypeAttr(), handleInitPriorityAttr(), HandleNeonVectorTypeAttr(), handleObjCGCTypeAttr(), handleObjCOwnershipTypeAttr(), and HandleVectorSizeAttr().
void clang::AttributeList::setNext | ( | AttributeList * | N | ) | [inline] |
Definition at line 369 of file AttributeList.h.
Referenced by clang::ParsedAttributes::add(), clang::ParsedAttributes::addAll(), spliceAttrIntoList(), spliceAttrOutOfList(), and takeDeclAttributes().
void clang::AttributeList::setUsedAsTypeAttr | ( | ) | [inline] |
Definition at line 359 of file AttributeList.h.
Referenced by processTypeAttrs().
friend class AttributeFactory [friend] |
Definition at line 318 of file AttributeList.h.
friend class AttributePool [friend] |
Definition at line 317 of file AttributeList.h.