clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions
clang::TypedefNameDecl Class Reference

Base class for declarations which introduce a typedef-name. More...

#include <Decl.h>

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

List of all members.

Public Types

typedef
redeclarable_base::redecl_range 
redecl_range
typedef
redeclarable_base::redecl_iterator 
redecl_iterator

Public Member Functions

bool isModed () const
TypeSourceInfogetTypeSourceInfo () const
QualType getUnderlyingType () const
void setTypeSourceInfo (TypeSourceInfo *newType)
void setModedTypeSourceInfo (TypeSourceInfo *unmodedTSI, QualType modedTy)
TypedefNameDeclgetCanonicalDecl () override
 Retrieves the canonical declaration of this typedef-name.
const TypedefNameDeclgetCanonicalDecl () const

Static Public Member Functions

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

Protected Types

typedef Redeclarable
< TypedefNameDecl
redeclarable_base

Protected Member Functions

 TypedefNameDecl (Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, TypeSourceInfo *TInfo)
TypedefNameDeclgetNextRedeclarationImpl () override
 Returns the next redeclaration or itself if this is the only decl.
TypedefNameDeclgetPreviousDeclImpl () override
 Implementation of getPreviousDecl(), to be overridden by any subclass that has a redeclaration chain.
TypedefNameDeclgetMostRecentDeclImpl () override
 Implementation of getMostRecentDecl(), to be overridden by any subclass that has a redeclaration chain.

Detailed Description

Base class for declarations which introduce a typedef-name.

Definition at line 2479 of file Decl.h.


Member Typedef Documentation

typedef redeclarable_base::redecl_iterator clang::TypedefNameDecl::redecl_iterator

Definition at line 2504 of file Decl.h.

Reimplemented from clang::Redeclarable< TypedefNameDecl >.

Definition at line 2503 of file Decl.h.

Definition at line 2491 of file Decl.h.


Constructor & Destructor Documentation

clang::TypedefNameDecl::TypedefNameDecl ( Kind  DK,
ASTContext C,
DeclContext DC,
SourceLocation  StartLoc,
SourceLocation  IdLoc,
IdentifierInfo Id,
TypeSourceInfo TInfo 
) [inline, protected]

Definition at line 2485 of file Decl.h.


Member Function Documentation

static bool clang::TypedefNameDecl::classof ( const Decl D) [inline, static]

Reimplemented from clang::TypeDecl.

Reimplemented in clang::TypeAliasDecl, and clang::TypedefDecl.

Definition at line 2536 of file Decl.h.

References clang::Decl::getKind().

static bool clang::TypedefNameDecl::classofKind ( Kind  K) [inline, static]

Reimplemented from clang::TypeDecl.

Reimplemented in clang::TypeAliasDecl, and clang::TypedefDecl.

Definition at line 2537 of file Decl.h.

Retrieves the canonical declaration of this typedef-name.

Reimplemented from clang::Decl.

Definition at line 2532 of file Decl.h.

Reimplemented from clang::Decl.

Definition at line 2533 of file Decl.h.

TypedefNameDecl* clang::TypedefNameDecl::getMostRecentDeclImpl ( ) [inline, override, protected, virtual]

Implementation of getMostRecentDecl(), to be overridden by any subclass that has a redeclaration chain.

Reimplemented from clang::Decl.

Definition at line 2498 of file Decl.h.

TypedefNameDecl* clang::TypedefNameDecl::getNextRedeclarationImpl ( ) [inline, override, protected, virtual]

Returns the next redeclaration or itself if this is the only decl.

Decl subclasses that can be redeclared should override this method so that Decl::redecl_iterator can iterate over them.

Reimplemented from clang::Decl.

Definition at line 2492 of file Decl.h.

TypedefNameDecl* clang::TypedefNameDecl::getPreviousDeclImpl ( ) [inline, override, protected, virtual]

Implementation of getPreviousDecl(), to be overridden by any subclass that has a redeclaration chain.

Reimplemented from clang::Decl.

Definition at line 2495 of file Decl.h.

Definition at line 2512 of file Decl.h.

Referenced by clang::ASTDeclWriter::VisitTypedefNameDecl().

void clang::TypedefNameDecl::setModedTypeSourceInfo ( TypeSourceInfo unmodedTSI,
QualType  modedTy 
) [inline]

Definition at line 2527 of file Decl.h.

Referenced by clang::ASTDeclReader::VisitTypedefNameDecl().


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