clang API Documentation

Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
clang::DeclaratorDecl Class Reference

Represents a ValueDecl that came out of a declarator. Contains type source information through TypeSourceInfo. More...

#include <Decl.h>

Inheritance diagram for clang::DeclaratorDecl:
Inheritance graph
[legend]
Collaboration diagram for clang::DeclaratorDecl:
Collaboration graph
[legend]

List of all members.

Classes

struct  ExtInfo

Public Member Functions

TypeSourceInfogetTypeSourceInfo () const
void setTypeSourceInfo (TypeSourceInfo *TI)
SourceLocation getInnerLocStart () const
void setInnerLocStart (SourceLocation L)
SourceLocation getOuterLocStart () const
SourceRange getSourceRange () const override LLVM_READONLY
 Source range that this declaration covers.
SourceLocation getLocStart () const LLVM_READONLY
NestedNameSpecifiergetQualifier () const
 Retrieve the nested-name-specifier that qualifies the name of this declaration, if it was present in the source.
NestedNameSpecifierLoc getQualifierLoc () const
 Retrieve the nested-name-specifier (with source-location information) that qualifies the name of this declaration, if it was present in the source.
void setQualifierInfo (NestedNameSpecifierLoc QualifierLoc)
unsigned getNumTemplateParameterLists () const
TemplateParameterListgetTemplateParameterList (unsigned index) const
void setTemplateParameterListsInfo (ASTContext &Context, unsigned NumTPLists, TemplateParameterList **TPLists)
SourceLocation getTypeSpecStartLoc () const

Static Public Member Functions

static bool classof (const Decl *D)
static bool classofKind (Kind K)

Protected Member Functions

 DeclaratorDecl (Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N, QualType T, TypeSourceInfo *TInfo, SourceLocation StartL)

Friends

class ASTDeclReader
class ASTDeclWriter

Detailed Description

Represents a ValueDecl that came out of a declarator. Contains type source information through TypeSourceInfo.

Definition at line 544 of file Decl.h.


Constructor & Destructor Documentation

clang::DeclaratorDecl::DeclaratorDecl ( Kind  DK,
DeclContext DC,
SourceLocation  L,
DeclarationName  N,
QualType  T,
TypeSourceInfo TInfo,
SourceLocation  StartL 
) [inline, protected]

Definition at line 562 of file Decl.h.


Member Function Documentation

static bool clang::DeclaratorDecl::classof ( const Decl D) [inline, static]
static bool clang::DeclaratorDecl::classofKind ( Kind  K) [inline, static]

Retrieve the nested-name-specifier that qualifies the name of this declaration, if it was present in the source.

Definition at line 597 of file Decl.h.

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

SourceRange DeclaratorDecl::getSourceRange ( ) const [override, virtual]

Definition at line 569 of file Decl.h.

Referenced by clang::Sema::ActOnObjCForCollectionStmt(), clang::Sema::ActOnOpenMPFirstprivateClause(), clang::Sema::ActOnOpenMPPrivateClause(), clang::Sema::ActOnStartOfFunctionDef(), clang::Sema::ActOnVarTemplateSpecialization(), addFunctionPointerConversion(), clang::Sema::AddInitializerToDecl(), clang::ASTContext::adjustExceptionSpec(), clang::Sema::BuildBlockForLambdaConversion(), clang::Sema::BuildDeclaratorGroup(), clang::Sema::buildInitCaptureField(), CheckAbstractClassUsage(), clang::Sema::CheckEquivalentExceptionSpec(), clang::Sema::CheckExplicitlyDefaultedMemberExceptionSpec(), CheckForModifiableLvalue(), clang::Sema::CheckFunctionDeclaration(), CheckMethodOverrideParam(), CheckNonTypeTemplatePartialSpecializationArgs(), clang::Sema::checkThisInStaticMemberFunctionExceptionSpec(), clang::Sema::checkThisInStaticMemberFunctionType(), clang::Sema::CheckVariableDeclarationType(), clang::Sema::CompleteVarTemplateSpecializationDecl(), DiagnoseCalleeStaticArrayParam(), DiagnoseInvalidRedeclaration(), FinishForRangeVarDecl(), FormatFunctionParameter(), clang::ParmVarDecl::getOriginalType(), clang::Sema::getReturnTypeLoc(), clang::FunctionDecl::getReturnTypeSourceRange(), getSourceRange(), getTypeSpecStartLoc(), hasDeducedReturnType(), clang::hasImplicitExceptionSpec(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), IsTailPaddedMemberArray(), clang::Sema::MergeFunctionDecl(), NeedsInstantiationAsFunctionType(), clang::Sema::RebuildTemplateParamsInCurrentInstantiation(), clang::Sema::SubstExceptionSpec(), clang::TemplateDeclInstantiator::SubstFunctionType(), clang::Sema::SubstParmVarDecl(), clang::TreeTransform< Derived >::TransformFunctionTypeParam(), clang::ASTNodeImporter::VisitFieldDecl(), clang::ASTNodeImporter::VisitFunctionDecl(), clang::ASTNodeImporter::VisitNonTypeTemplateParmDecl(), clang::ASTNodeImporter::VisitObjCIvarDecl(), clang::ASTNodeImporter::VisitParmVarDecl(), clang::ASTNodeImporter::VisitVarDecl(), clang::ASTNodeImporter::VisitVarTemplateDecl(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().

void DeclaratorDecl::setTemplateParameterListsInfo ( ASTContext Context,
unsigned  NumTPLists,
TemplateParameterList **  TPLists 
)

Friends And Related Function Documentation

friend class ASTDeclReader [friend]
friend class ASTDeclWriter [friend]

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