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

Inherited from ValueDecl:

Inherited from NamedDecl:

Inherited from Decl:

Methods

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)

Declared at: clang/include/clang/AST/Decl.h:830

Parameters

const clang::Decl* D

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

Declared at: clang/include/clang/AST/Decl.h:778

clang::DeclaratorDecl::ExtInfo* getExtInfo()

Declared at: clang/include/clang/AST/Decl.h:742

const clang::DeclaratorDecl::ExtInfo* getExtInfo()
    const

Declared at: clang/include/clang/AST/Decl.h:743

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

Declared at: clang/include/clang/AST/Decl.h:814

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

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

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

Description

Source range that this declaration covers.

Declared at: clang/include/clang/AST/Decl.h:776

clang::TemplateParameterList*
getTemplateParameterList(unsigned int index) const

Declared at: clang/include/clang/AST/Decl.h:818

Parameters

unsigned int index

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

Declared at: clang/include/clang/AST/Decl.h:807

clang::TypeSourceInfo* getTypeSourceInfo() const

Declared at: clang/include/clang/AST/Decl.h:755

clang::SourceLocation getTypeSpecEndLoc() const

Declared at: clang/include/clang/AST/Decl.h:827

clang::SourceLocation getTypeSpecStartLoc() const

Declared at: clang/include/clang/AST/Decl.h:826

bool hasExtInfo() const

Declared at: clang/include/clang/AST/Decl.h:741

void setInnerLocStart(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Decl.h:770

Parameters

clang::SourceLocation L

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)

Declared at: clang/include/clang/AST/Decl.h:823

Parameters

clang::ASTContext& Context
ArrayRef<clang::TemplateParameterList*> TPLists

void setTrailingRequiresClause(
    clang::Expr* TrailingRequiresClause)

Declared at: clang/include/clang/AST/Decl.h:812

Parameters

clang::Expr* TrailingRequiresClause

void setTypeSourceInfo(clang::TypeSourceInfo* TI)

Declared at: clang/include/clang/AST/Decl.h:761

Parameters

clang::TypeSourceInfo* TI