clang  3.9.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::AttributeList Class Reference

AttributeList - Represents a syntactic attribute. More...

#include <AttributeList.h>

Classes

struct  PropertyData
 
struct  TypeTagForDatatypeData
 

Public Types

enum  Syntax {
  AS_GNU, AS_CXX11, AS_Declspec, AS_Keyword,
  AS_ContextSensitiveKeyword, AS_Pragma
}
 The style used to specify an attribute. More...
 
enum  Kind { IgnoredAttribute, UnknownAttribute }
 

Public Member Functions

IdentifierInfogetName () const
 
SourceLocation getLoc () const
 
SourceRange getRange () const
 
bool hasScope () const
 
IdentifierInfogetScopeName () const
 
SourceLocation getScopeLoc () const
 
bool hasParsedType () const
 
bool isDeclspecPropertyAttribute () const
 Is this the Microsoft __declspec(property) attribute? More...
 
bool isAlignasAttribute () const
 
bool isDeclspecAttribute () const
 
bool isCXX11Attribute () const
 
bool isKeywordAttribute () const
 
bool isContextSensitiveKeywordAttribute () const
 
bool isInvalid () const
 
void setInvalid (bool b=true) const
 
bool hasProcessingCache () const
 
unsigned getProcessingCache () const
 
void setProcessingCache (unsigned value) const
 
bool isUsedAsTypeAttr () const
 
void setUsedAsTypeAttr ()
 
bool isPackExpansion () const
 
SourceLocation getEllipsisLoc () const
 
Kind getKind () const
 
AttributeListgetNext () const
 
void setNext (AttributeList *N)
 
unsigned getNumArgs () const
 getNumArgs - Return the number of actual arguments to this attribute. More...
 
ArgsUnion getArg (unsigned Arg) const
 getArg - Return the specified argument. More...
 
bool isArgExpr (unsigned Arg) const
 
ExprgetArgAsExpr (unsigned Arg) const
 
bool isArgIdent (unsigned Arg) const
 
IdentifierLocgetArgAsIdent (unsigned Arg) const
 
const AvailabilityChangegetAvailabilityIntroduced () const
 
const AvailabilityChangegetAvailabilityDeprecated () const
 
const AvailabilityChangegetAvailabilityObsoleted () const
 
SourceLocation getStrictLoc () const
 
SourceLocation getUnavailableLoc () const
 
const ExprgetMessageExpr () const
 
const ExprgetReplacementExpr () const
 
const ParsedTypegetMatchingCType () const
 
bool getLayoutCompatible () const
 
bool getMustBeNull () const
 
const ParsedTypegetTypeArg () const
 
const PropertyDatagetPropertyData () const
 
unsigned getAttributeSpellingListIndex () const
 Get an index into the attribute spelling list defined in Attr.td. More...
 
bool isTargetSpecificAttr () const
 
bool isTypeAttr () const
 
bool isStmtAttr () 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 TargetInfo &Target) 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. More...
 

Static Public Member Functions

static Kind getKind (const IdentifierInfo *Name, const IdentifierInfo *Scope, Syntax SyntaxUsed)
 

Friends

class AttributePool
 
class AttributeFactory
 

Detailed Description

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 94 of file AttributeList.h.

Member Enumeration Documentation

Enumerator
IgnoredAttribute 
UnknownAttribute 

Definition at line 343 of file AttributeList.h.

The style used to specify an attribute.

Enumerator
AS_GNU 

attribute((...))

AS_CXX11 

[[...]]

AS_Declspec 

__declspec(...)

AS_Keyword 

__ptr16, alignas(...), etc.

AS_ContextSensitiveKeyword 

Context-sensitive version of a keyword attribute.

AS_Pragma 

#pragma ...

Definition at line 97 of file AttributeList.h.

Member Function Documentation

bool AttributeList::diagnoseAppertainsTo ( class Sema S,
const Decl D 
) const

Definition at line 192 of file AttributeList.cpp.

References ParsedAttrInfo::DiagAppertainsToDecl, and getInfo().

Referenced by handleCommonAttributeFeatures().

bool AttributeList::diagnoseLangOpts ( class Sema S) const

Definition at line 196 of file AttributeList.cpp.

References ParsedAttrInfo::DiagLangOpts, and getInfo().

Referenced by handleCommonAttributeFeatures().

bool AttributeList::existsInTarget ( const TargetInfo Target) const

Definition at line 212 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 413 of file AttributeList.h.

References clang::NumArgs.

Referenced by getArgAsExpr(), getArgAsIdent(), isArgExpr(), and isArgIdent().

Expr* clang::AttributeList::getArgAsExpr ( unsigned  Arg) const
inline
IdentifierLoc* clang::AttributeList::getArgAsIdent ( unsigned  Arg) const
inline
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(), clang::Name, and normalizeAttrName().

Referenced by handleAbiTagAttr(), handleAcquireCapabilityAttr(), handleAcquiredAfterAttr(), handleAcquiredBeforeAttr(), handleAliasAttr(), handleAlignedAttr(), handleAlignValueAttr(), handleAlwaysInlineAttr(), handleAMDGPUNumSGPRAttr(), handleAMDGPUNumVGPRAttr(), handleAnalyzerNoReturnAttr(), handleAnnotateAttr(), handleAnyX86InterruptAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleAssertCapabilityAttr(), handleAssertExclusiveLockAttr(), handleAssertSharedLockAttr(), handleAssumeAlignedAttr(), handleAttrWithMessage(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallConvAttr(), handleCapabilityAttr(), handleCFAuditedTransferAttr(), handleCFUnknownTransferAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConstructorAttr(), handleConsumableAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDeprecatedAttr(), handleDestructorAttr(), handleDisableTailCallsAttr(), handleDLLAttr(), handleEnableIfAttr(), handleExclusiveTrylockFunctionAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleHotAttr(), handleIBOutlet(), handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), handleInternalLinkageAttr(), handleLaunchBoundsAttr(), handleLayoutVersion(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleMinSizeAttr(), handleMipsInterruptAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleNakedAttr(), 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(), handleSharedTrylockFunctionAttr(), handleSimpleAttribute(), handleTargetAttr(), handleTestTypestateAttr(), handleTLSModelAttr(), handleTransparentUnionAttr(), handleTryAcquireCapabilityAttr(), handleTypeTagForDatatypeAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), and handleX86ForceAlignArgPointerAttr().

const AvailabilityChange& clang::AttributeList::getAvailabilityDeprecated ( ) const
inline

Definition at line 437 of file AttributeList.h.

References getKind().

Referenced by handleAvailabilityAttr().

const AvailabilityChange& clang::AttributeList::getAvailabilityIntroduced ( ) const
inline

Definition at line 432 of file AttributeList.h.

References getKind().

Referenced by handleAvailabilityAttr().

const AvailabilityChange& clang::AttributeList::getAvailabilityObsoleted ( ) const
inline

Definition at line 442 of file AttributeList.h.

References getKind().

Referenced by handleAvailabilityAttr().

SourceLocation clang::AttributeList::getEllipsisLoc ( ) const
inline

Definition at line 400 of file AttributeList.h.

Referenced by handleAlignedAttr().

Kind clang::AttributeList::getKind ( ) const
inline
AttributeList::Kind AttributeList::getKind ( const IdentifierInfo Name,
const IdentifierInfo Scope,
Syntax  SyntaxUsed 
)
static
bool clang::AttributeList::getLayoutCompatible ( ) const
inline
SourceLocation clang::AttributeList::getLoc ( ) const
inline

Definition at line 352 of file AttributeList.h.

References clang::SourceRange::getBegin().

Referenced by attrNonNullArgCheck(), checkAcquireOrderAttrCommon(), checkAttrArgsAreCapabilityObjs(), checkAttributeNumArgsImpl(), clang::Sema::CheckCallingConvAttr(), checkForConsumableClass(), checkFunctionOrMethodParameterIndex(), checkIBOutletCommon(), checkOmittedBlockReturnType(), clang::Sema::CheckRegparmAttr(), checkTryLockFunAttrCommon(), checkUInt32Argument(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), distributeNullabilityTypeAttr(), fillAttributedTypeLoc(), handleAbiTagAttr(), HandleAddressSpaceTypeAttribute(), handleAliasAttr(), handleAlignedAttr(), handleAMDGPUNumSGPRAttr(), handleAMDGPUNumVGPRAttr(), handleAnalyzerNoReturnAttr(), handleAnyX86InterruptAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallConvAttr(), handleCleanupAttr(), handleCommonAttr(), handleConsumableAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDeprecatedAttr(), handleEnableIfAttr(), HandleExtVectorTypeAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleFunctionTypeAttr(), handleGNUInlineAttr(), handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), handleLayoutVersion(), handleMipsInterruptAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleMSPointerTypeQualifierAttr(), HandleNeonVectorTypeAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoReturnAttr(), handleObjCBridgeAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), handleObjCPreciseLifetimeAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCSuppresProtocolAttr(), handleOpenCLAccessAttr(), HandleOpenCLAccessAttr(), handleOpenCLNoSVMAttr(), handleOpenCLUnrollHint(), handleOwnershipAttr(), handlePackedAttr(), handleParamTypestateAttr(), handleRestrictAttr(), handleReturnTypestateAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleTestTypestateAttr(), handleTransparentUnionAttr(), handleTypeTagForDatatypeAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), HandleVectorSizeAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), ProcessDeclAttribute(), clang::Sema::ProcessDeclAttributeList(), ProcessStmtAttribute(), processTypeAttrs(), and threadSafetyCheckIsPointer().

const ParsedType& clang::AttributeList::getMatchingCType ( ) const
inline
unsigned AttributeList::getMaxArgs ( ) const

Definition at line 184 of file AttributeList.cpp.

References getInfo(), getMinArgs(), and ParsedAttrInfo::OptArgs.

Referenced by handleCommonAttributeFeatures().

const Expr* clang::AttributeList::getMessageExpr ( ) const
inline

Definition at line 457 of file AttributeList.h.

References getKind().

Referenced by handleAvailabilityAttr().

unsigned AttributeList::getMinArgs ( ) const

Definition at line 180 of file AttributeList.cpp.

References getInfo(), and ParsedAttrInfo::NumArgs.

Referenced by getMaxArgs(), and handleCommonAttributeFeatures().

bool clang::AttributeList::getMustBeNull ( ) const
inline
IdentifierInfo* clang::AttributeList::getName ( ) const
inline

Definition at line 351 of file AttributeList.h.

Referenced by attrNonNullArgCheck(), checkAcquireOrderAttrCommon(), checkAttrArgsAreCapabilityObjs(), checkAttributeNumArgsImpl(), clang::Sema::CheckCallingConvAttr(), checkFunctionOrMethodParameterIndex(), checkIBOutletCommon(), checkOmittedBlockReturnType(), clang::Sema::checkStringLiteralArgumentAttr(), checkTryLockFunAttrCommon(), checkUInt32Argument(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), distributeNullabilityTypeAttr(), getImageAccessAttrStr(), HandleAddressSpaceTypeAttribute(), handleAlignedAttr(), handleAlwaysInlineAttr(), handleAnalyzerNoReturnAttr(), handleAnyX86InterruptAttr(), handleArgumentWithTypeTagAttr(), handleARMInterruptAttr(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallConvAttr(), handleCFAuditedTransferAttr(), handleCFUnknownTransferAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConsumableAttr(), handleDeprecatedAttr(), handleDisableTailCallsAttr(), handleDLLAttr(), HandleExtVectorTypeAttr(), handleFallThroughAttr(), handleFormatAttr(), handleGlobalAttr(), handleHotAttr(), handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), handleInternalLinkageAttr(), handleLayoutVersion(), handleMipsInterruptAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleMSP430InterruptAttr(), handleMSPointerTypeQualifierAttr(), handleNakedAttr(), HandleNeonVectorTypeAttr(), handleNoReturnAttr(), handleNoSanitizeSpecificAttr(), handleNotTailCalledAttr(), handleNSReturnsRetainedAttr(), handleObjCBridgeAttr(), handleObjCBridgeMutableAttr(), handleObjCBridgeRelatedAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipAttr(), handleObjCOwnershipTypeAttr(), handleObjCRequiresSuperAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCSuppresProtocolAttr(), handleOpenCLAccessAttr(), handleOpenCLNoSVMAttr(), handleOpenCLUnrollHint(), handleOwnershipAttr(), handlePackedAttr(), handleParamTypestateAttr(), handlePassObjectSizeAttr(), handleRestrictAttr(), handleReturnTypestateAttr(), handleSentinelAttr(), handleSetTypestateAttr(), handleSimpleAttributeWithExclusions(), handleTestTypestateAttr(), handleTransparentUnionAttr(), handleTypeTagForDatatypeAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), HandleVectorSizeAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), ProcessDeclAttribute(), ProcessStmtAttribute(), processTypeAttrs(), and threadSafetyCheckIsPointer().

AttributeList* clang::AttributeList::getNext ( ) const
inline
unsigned clang::AttributeList::getNumArgs ( ) const
inline
unsigned clang::AttributeList::getProcessingCache ( ) const
inline

Definition at line 387 of file AttributeList.h.

References hasProcessingCache().

Referenced by clang::Sema::CheckCallingConvAttr().

const PropertyData& clang::AttributeList::getPropertyData ( ) const
inline

Definition at line 490 of file AttributeList.h.

References isDeclspecPropertyAttribute().

Referenced by clang::Sema::HandleMSProperty().

SourceRange clang::AttributeList::getRange ( ) const
inline

Definition at line 353 of file AttributeList.h.

Referenced by checkUnusedDeclAttributes(), clang::Declarator::getCXX11AttributeRanges(), handleAbiTagAttr(), 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(), handleDeprecatedAttr(), handleDestructorAttr(), handleDisableTailCallsAttr(), handleDLLAttr(), handleEnableIfAttr(), handleExclusiveTrylockFunctionAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleHotAttr(), handleIBOutlet(), handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), handleInternalLinkageAttr(), handleLaunchBoundsAttr(), handleLayoutVersion(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleLoopHintAttr(), handleMinSizeAttr(), handleMipsInterruptAttr(), handleModeAttr(), handleMSInheritanceAttr(), handleNakedAttr(), 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(), handleSharedTrylockFunctionAttr(), handleSimpleAttribute(), handleSimpleAttributeWithExclusions(), handleTargetAttr(), handleTestTypestateAttr(), handleTLSModelAttr(), handleTransparentUnionAttr(), handleTryAcquireCapabilityAttr(), handleTypeTagForDatatypeAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), handleWeakRefAttr(), handleWorkGroupSize(), handleX86ForceAlignArgPointerAttr(), and ProcessStmtAttribute().

const Expr* clang::AttributeList::getReplacementExpr ( ) const
inline

Definition at line 462 of file AttributeList.h.

References getKind().

Referenced by handleAvailabilityAttr().

SourceLocation clang::AttributeList::getScopeLoc ( ) const
inline

Definition at line 357 of file AttributeList.h.

IdentifierInfo* clang::AttributeList::getScopeName ( ) const
inline
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 220 of file AttributeList.cpp.

References getInfo(), and ParsedAttrInfo::SpellingIndexToSemanticSpelling.

Referenced by handleMSInheritanceAttr().

SourceLocation clang::AttributeList::getStrictLoc ( ) const
inline

Definition at line 447 of file AttributeList.h.

References getKind().

Referenced by handleAvailabilityAttr().

const ParsedType& clang::AttributeList::getTypeArg ( ) const
inline

Definition at line 485 of file AttributeList.h.

Referenced by handleIBOutletCollection(), and handleVecTypeHint().

SourceLocation clang::AttributeList::getUnavailableLoc ( ) const
inline

Definition at line 452 of file AttributeList.h.

References getKind().

Referenced by handleAvailabilityAttr().

bool AttributeList::hasCustomParsing ( ) const

Definition at line 188 of file AttributeList.cpp.

References getInfo(), and ParsedAttrInfo::HasCustomParsing.

Referenced by handleCommonAttributeFeatures().

bool clang::AttributeList::hasParsedType ( ) const
inline
bool clang::AttributeList::hasProcessingCache ( ) const
inline

Definition at line 386 of file AttributeList.h.

Referenced by clang::Sema::CheckCallingConvAttr(), and getProcessingCache().

bool clang::AttributeList::hasScope ( ) const
inline

Definition at line 355 of file AttributeList.h.

Referenced by handleDeprecatedAttr().

bool AttributeList::hasVariadicArg ( ) const

Definition at line 224 of file AttributeList.cpp.

References getInfo(), and ParsedAttrInfo::OptArgs.

Referenced by handleCommonAttributeFeatures().

bool clang::AttributeList::isAlignasAttribute ( ) const
inline

Definition at line 366 of file AttributeList.h.

References getKind(), and isKeywordAttribute().

Referenced by isCXX11Attribute().

bool clang::AttributeList::isArgExpr ( unsigned  Arg) const
inline
bool clang::AttributeList::isArgIdent ( unsigned  Arg) const
inline
bool clang::AttributeList::isContextSensitiveKeywordAttribute ( ) const
inline

Definition at line 379 of file AttributeList.h.

References AS_ContextSensitiveKeyword.

Referenced by distributeNullabilityTypeAttr(), and processTypeAttrs().

bool clang::AttributeList::isCXX11Attribute ( ) const
inline
bool clang::AttributeList::isDeclspecAttribute ( ) const
inline

Definition at line 371 of file AttributeList.h.

References AS_Declspec.

Referenced by handleDeprecatedAttr(), ProcessDeclAttribute(), and ProcessStmtAttribute().

bool clang::AttributeList::isDeclspecPropertyAttribute ( ) const
inline

Is this the Microsoft __declspec(property) attribute?

Definition at line 362 of file AttributeList.h.

Referenced by getPropertyData().

bool clang::AttributeList::isInvalid ( ) const
inline
bool clang::AttributeList::isKeywordAttribute ( ) const
inline

Definition at line 375 of file AttributeList.h.

References AS_ContextSensitiveKeyword, and AS_Keyword.

Referenced by isAlignasAttribute().

bool AttributeList::isKnownToGCC ( ) const

Definition at line 216 of file AttributeList.cpp.

References getInfo(), and ParsedAttrInfo::IsKnownToGCC.

bool clang::AttributeList::isPackExpansion ( ) const
inline

Definition at line 399 of file AttributeList.h.

References clang::SourceLocation::isValid().

Referenced by handleAlignedAttr().

bool AttributeList::isStmtAttr ( ) const

Definition at line 208 of file AttributeList.cpp.

References getInfo(), and ParsedAttrInfo::IsStmt.

Referenced by ProcessDeclAttribute().

bool AttributeList::isTargetSpecificAttr ( ) const

Definition at line 200 of file AttributeList.cpp.

References getInfo(), and ParsedAttrInfo::IsTargetSpecific.

bool AttributeList::isTypeAttr ( ) const

Definition at line 204 of file AttributeList.cpp.

References getInfo(), and ParsedAttrInfo::IsType.

Referenced by checkOmittedBlockReturnType(), and ProcessDeclAttribute().

bool clang::AttributeList::isUsedAsTypeAttr ( ) const
inline

Definition at line 396 of file AttributeList.h.

Referenced by checkUnusedDeclAttributes(), and takeDeclAttributes().

void clang::AttributeList::setInvalid ( bool  b = true) const
inline
void clang::AttributeList::setNext ( AttributeList N)
inline
void clang::AttributeList::setProcessingCache ( unsigned  value) const
inline

Definition at line 391 of file AttributeList.h.

Referenced by clang::Sema::CheckCallingConvAttr().

void clang::AttributeList::setUsedAsTypeAttr ( )
inline

Definition at line 397 of file AttributeList.h.

Referenced by processTypeAttrs().

Friends And Related Function Documentation

friend class AttributeFactory
friend

Definition at line 340 of file AttributeList.h.

friend class AttributePool
friend

Definition at line 339 of file AttributeList.h.


The documentation for this class was generated from the following files: