class DeclaratorDecl
Declaration
class DeclaratorDecl : public ValueDecl { /* full declaration omitted */ };
Description
Represents a ValueDecl that came out of a declarator. Contains type source information through TypeSourceInfo.
Declared at: clang/include/clang/AST/Decl.h:726
Inherits from: ValueDecl
Member Variables
- private llvm::PointerUnion<TypeSourceInfo*, ExtInfo*> DeclInfo
- private clang::SourceLocation InnerLocStart
- The start of the source range for this declaration, ignoring outer template declarations.
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- protected DeclaratorDecl(clang::Decl::Kind DK, clang::DeclContext * DC, clang::SourceLocation L, clang::DeclarationName N, clang::QualType T, clang::TypeSourceInfo * TInfo, clang::SourceLocation StartL)
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::SourceLocation getBeginLoc() const
- private clang::DeclaratorDecl::ExtInfo * getExtInfo()
- private const clang::DeclaratorDecl::ExtInfo * getExtInfo() const
- public clang::SourceLocation getInnerLocStart() const
- public unsigned int getNumTemplateParameterLists() const
- public clang::SourceLocation getOuterLocStart() const
- public clang::NestedNameSpecifier * getQualifier() const
- public clang::NestedNameSpecifierLoc getQualifierLoc() const
- public clang::SourceRange getSourceRange() const
- public clang::TemplateParameterList * getTemplateParameterList(unsigned int index) const
- public clang::Expr * getTrailingRequiresClause()
- public const clang::Expr * getTrailingRequiresClause() const
- public clang::TypeSourceInfo * getTypeSourceInfo() const
- public clang::SourceLocation getTypeSpecEndLoc() const
- public clang::SourceLocation getTypeSpecStartLoc() const
- private bool hasExtInfo() const
- public void setInnerLocStart(clang::SourceLocation L)
- public void setQualifierInfo(clang::NestedNameSpecifierLoc QualifierLoc)
- public void setTemplateParameterListsInfo(clang::ASTContext & Context, ArrayRef<clang::TemplateParameterList *> TPLists)
- public void setTrailingRequiresClause(clang::Expr * TrailingRequiresClause)
- public void setTypeSourceInfo(clang::TypeSourceInfo * TI)
Inherited from ValueDecl:
Inherited from NamedDecl:
- public classof
- public classofKind
- public declarationReplaces
- public getDeclName
- public getExplicitVisibility
- public getFormalLinkage
- public getIdentifier
- public getLinkageAndVisibility
- public getLinkageInternal
- public getMostRecentDecl
- public getMostRecentDecl
- public getName
- public getNameAsString
- public getNameForDiagnostic
- public getObjCFStringFormattingFamily
- public getQualifiedNameAsString
- public getUnderlyingDecl
- public getUnderlyingDecl
- public getVisibility
- public hasExternalFormalLinkage
- public hasLinkage
- public hasLinkageBeenComputed
- public isCXXClassMember
- public isCXXInstanceMember
- public isExternallyDeclarable
- public isExternallyVisible
- public isLinkageValid
- public isReserved
- public printName
- public printNestedNameSpecifier
- public printNestedNameSpecifier
- public printQualifiedName
- public printQualifiedName
- public setDeclName
Inherited from Decl:
- public EnableStatistics
- public PrintStats
- public add
- public addAttr
- public attr_begin
- public attr_end
- public attrs
- public canBeWeakImported
- public castFromDeclContext
- public castToDeclContext
- public classofKind
- public dropAttr
- public dropAttrs
- public dump
- public dump
- public dumpColor
- public getASTContext
- protected getASTMutationListener
- public getAccess
- public getAccessUnsafe
- public getAsFunction
- public getAsFunction
- public getAttr
- public getAttrs
- public getAttrs
- public getAvailability
- public getBeginLoc
- public getBody
- public getBodyRBrace
- protected getCachedLinkage
- public getCanonicalDecl
- public getCanonicalDecl
- public getDeclContext
- public getDeclContext
- public getDeclKindName
- public getDefiningAttr
- public getDescribedTemplate
- public getDescribedTemplateParams
- public getEndLoc
- public getExternalSourceSymbolAttr
- public getFriendObjectKind
- public getFunctionType
- public getGlobalID
- public getID
- public getIdentifierNamespace
- public getIdentifierNamespaceForKind
- public getImportedOwningModule
- public getKind
- public getLangOpts
- public getLexicalDeclContext
- public getLexicalDeclContext
- public getLocalOwningModule
- public getLocation
- public getMaxAlignment
- public getModuleOwnershipKind
- public getMostRecentDecl
- public getMostRecentDecl
- protected getMostRecentDeclImpl
- public getNextDeclInContext
- public getNextDeclInContext
- protected getNextRedeclarationImpl
- public getNonClosureContext
- public getNonClosureContext
- public getOwningModule
- public getOwningModuleForLinkage
- public getOwningModuleID
- public getParentFunctionOrMethod
- public getParentFunctionOrMethod
- public getPreviousDecl
- public getPreviousDecl
- protected getPreviousDeclImpl
- public getSourceRange
- public getTemplateDepth
- public getTranslationUnitDecl
- public getTranslationUnitDecl
- public getVersionIntroduced
- public hasAttr
- public hasAttrs
- public hasBody
- protected hasCachedLinkage
- public hasDefiningAttr
- protected hasLocalOwningModuleStorage
- public hasOwningModule
- public hasTagIdentifierNamespace
- public isCanonicalDecl
- public isDefinedOutsideFunctionOrMethod
- public isDeprecated
- public isDiscardedInGlobalModuleFragment
- public isFirstDecl
- public isFromASTFile
- public isFunctionOrFunctionTemplate
- public isImplicit
- public isInAnonymousNamespace
- public isInExportDeclContext
- public isInIdentifierNamespace
- public isInLocalScopeForInstantiation
- public isInStdNamespace
- public isInvalidDecl
- public isInvisibleOutsideTheOwningModule
- public isLocalExternDecl
- public isModulePrivate
- public isOutOfLine
- public isParameterPack
- public isReachable
- public isReferenced
- public isTagIdentifierNamespace
- public isTemplateDecl
- public isTemplateParameter
- public isTemplateParameterPack
- public isTemplated
- public isThisDeclarationReferenced
- public isTopLevelDeclInObjCContainer
- public isUnavailable
- public isUnconditionallyVisible
- public isUsed
- public isWeakImported
- public markUsed
- public print
- public print
- public printGroup
- public redecls
- public redecls_begin
- public redecls_end
- public setAccess
- public setAttrs
- protected setCachedLinkage
- public setDeclContext
- public setFromASTFile
- public setImplicit
- public setInvalidDecl
- public setIsUsed
- public setLexicalDeclContext
- public setLocalExternDecl
- public setLocalOwningModule
- public setLocation
- public setModuleOwnershipKind
- protected setModulePrivate
- public setNonMemberOperator
- public setObjectOfFriendDecl
- public setOwningModuleID
- public setReferenced
- public setTopLevelDeclInObjCContainer
- public setVisibleDespiteOwningModule
- public specific_attr_begin
- public specific_attr_end
- public specific_attrs
- protected updateOutOfDate
Methods
¶DeclaratorDecl(clang::Decl::Kind DK,
clang::DeclContext* DC,
clang::SourceLocation L,
clang::DeclarationName N,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::SourceLocation StartL)
DeclaratorDecl(clang::Decl::Kind DK,
clang::DeclContext* DC,
clang::SourceLocation L,
clang::DeclarationName N,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::SourceLocation StartL)
Declared at: clang/include/clang/AST/Decl.h:746
Parameters
- clang::Decl::Kind DK
- clang::DeclContext* DC
- clang::SourceLocation L
- clang::DeclarationName N
- clang::QualType T
- clang::TypeSourceInfo* TInfo
- clang::SourceLocation StartL
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/Decl.h:830
Parameters
- const clang::Decl* D
¶static bool classofKind(clang::Decl::Kind K)
static bool classofKind(clang::Decl::Kind K)
Declared at: clang/include/clang/AST/Decl.h:831
Parameters
- clang::Decl::Kind K
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Decl.h:778
¶clang::DeclaratorDecl::ExtInfo* getExtInfo()
clang::DeclaratorDecl::ExtInfo* getExtInfo()
Declared at: clang/include/clang/AST/Decl.h:742
¶const clang::DeclaratorDecl::ExtInfo* getExtInfo()
const
const clang::DeclaratorDecl::ExtInfo* getExtInfo()
const
Declared at: clang/include/clang/AST/Decl.h:743
¶clang::SourceLocation getInnerLocStart() const
clang::SourceLocation getInnerLocStart() const
Description
Return start of source range ignoring outer template declarations.
Declared at: clang/include/clang/AST/Decl.h:769
¶unsigned int getNumTemplateParameterLists() const
unsigned int getNumTemplateParameterLists() const
Declared at: clang/include/clang/AST/Decl.h:814
¶clang::SourceLocation getOuterLocStart() const
clang::SourceLocation getOuterLocStart() const
Description
Return start of source range taking into account any outer template declarations.
Declared at: clang/include/clang/AST/Decl.h:774
¶clang::NestedNameSpecifier* getQualifier() const
clang::NestedNameSpecifier* getQualifier() const
Description
Retrieve the nested-name-specifier that qualifies the name of this declaration, if it was present in the source.
Declared at: clang/include/clang/AST/Decl.h:784
¶clang::NestedNameSpecifierLoc getQualifierLoc()
const
clang::NestedNameSpecifierLoc getQualifierLoc()
const
Description
Retrieve the nested-name-specifier (with source-location information) that qualifies the name of this declaration, if it was present in the source.
Declared at: clang/include/clang/AST/Decl.h:792
¶clang::SourceRange getSourceRange() const
clang::SourceRange getSourceRange() const
Description
Source range that this declaration covers.
Declared at: clang/include/clang/AST/Decl.h:776
¶clang::TemplateParameterList*
getTemplateParameterList(unsigned int index) const
clang::TemplateParameterList*
getTemplateParameterList(unsigned int index) const
Declared at: clang/include/clang/AST/Decl.h:818
Parameters
- unsigned int index
¶clang::Expr* getTrailingRequiresClause()
clang::Expr* getTrailingRequiresClause()
Description
Get the constraint-expression introduced by the trailing requires-clause in the function/member declaration, or null if no requires-clause was provided.
Declared at: clang/include/clang/AST/Decl.h:802
¶const clang::Expr* getTrailingRequiresClause()
const
const clang::Expr* getTrailingRequiresClause()
const
Declared at: clang/include/clang/AST/Decl.h:807
¶clang::TypeSourceInfo* getTypeSourceInfo() const
clang::TypeSourceInfo* getTypeSourceInfo() const
Declared at: clang/include/clang/AST/Decl.h:755
¶clang::SourceLocation getTypeSpecEndLoc() const
clang::SourceLocation getTypeSpecEndLoc() const
Declared at: clang/include/clang/AST/Decl.h:827
¶clang::SourceLocation getTypeSpecStartLoc() const
clang::SourceLocation getTypeSpecStartLoc() const
Declared at: clang/include/clang/AST/Decl.h:826
¶bool hasExtInfo() const
bool hasExtInfo() const
Declared at: clang/include/clang/AST/Decl.h:741
¶void setInnerLocStart(clang::SourceLocation L)
void setInnerLocStart(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Decl.h:770
Parameters
¶void setQualifierInfo(
clang::NestedNameSpecifierLoc QualifierLoc)
void setQualifierInfo(
clang::NestedNameSpecifierLoc QualifierLoc)
Declared at: clang/include/clang/AST/Decl.h:797
Parameters
- clang::NestedNameSpecifierLoc QualifierLoc
¶void setTemplateParameterListsInfo(
clang::ASTContext& Context,
ArrayRef<clang::TemplateParameterList*>
TPLists)
void setTemplateParameterListsInfo(
clang::ASTContext& Context,
ArrayRef<clang::TemplateParameterList*>
TPLists)
Declared at: clang/include/clang/AST/Decl.h:823
Parameters
- clang::ASTContext& Context
- ArrayRef<clang::TemplateParameterList*> TPLists
¶void setTrailingRequiresClause(
clang::Expr* TrailingRequiresClause)
void setTrailingRequiresClause(
clang::Expr* TrailingRequiresClause)
Declared at: clang/include/clang/AST/Decl.h:812
Parameters
- clang::Expr* TrailingRequiresClause
¶void setTypeSourceInfo(clang::TypeSourceInfo* TI)
void setTypeSourceInfo(clang::TypeSourceInfo* TI)
Declared at: clang/include/clang/AST/Decl.h:761