clang API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
clang::TypeDecl Class Reference

#include <Decl.h>

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

List of all members.

Public Member Functions

const TypegetTypeForDecl () const
void setTypeForDecl (const Type *TD)
SourceLocation getLocStart () const
void setLocStart (SourceLocation L)
virtual SourceRange getSourceRange () const
 Source range that this declaration covers.

Static Public Member Functions

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

Protected Member Functions

 TypeDecl (Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id, SourceLocation StartL=SourceLocation())

Friends

class ASTContext
class DeclContext
class TagDecl
class TemplateTypeParmDecl
class TagType
class ASTReader

Detailed Description

TypeDecl - Represents a declaration of a type.

Definition at line 2214 of file Decl.h.


Constructor & Destructor Documentation

clang::TypeDecl::TypeDecl ( Kind  DK,
DeclContext DC,
SourceLocation  L,
IdentifierInfo Id,
SourceLocation  StartL = SourceLocation() 
) [inline, protected]

Definition at line 2231 of file Decl.h.


Member Function Documentation

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

Definition at line 2251 of file Decl.h.

static bool clang::TypeDecl::classofKind ( Kind  K) [inline, static]
SourceLocation clang::TypeDecl::getLocStart ( ) const [inline]
virtual SourceRange clang::TypeDecl::getSourceRange ( ) const [inline, virtual]

Source range that this declaration covers.

Reimplemented from clang::Decl.

Reimplemented in clang::TagDecl, clang::TypeAliasDecl, clang::TypedefDecl, clang::ClassTemplateSpecializationDecl, and clang::TemplateTypeParmDecl.

Definition at line 2242 of file Decl.h.

References clang::Decl::getLocation().

const Type* clang::TypeDecl::getTypeForDecl ( ) const [inline]
void clang::TypeDecl::setLocStart ( SourceLocation  L) [inline]

Definition at line 2241 of file Decl.h.

Referenced by clang::Sema::InstantiateClass(), and clang::ASTDeclReader::VisitTypeDecl().

void clang::TypeDecl::setTypeForDecl ( const Type TD) [inline]

Definition at line 2238 of file Decl.h.

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


Friends And Related Function Documentation

friend class ASTContext [friend]

Definition at line 2223 of file Decl.h.

friend class ASTReader [friend]

Reimplemented from clang::Decl.

Reimplemented in clang::CXXRecordDecl.

Definition at line 2228 of file Decl.h.

friend class DeclContext [friend]

Reimplemented from clang::Decl.

Reimplemented in clang::RecordDecl, and clang::CXXRecordDecl.

Definition at line 2224 of file Decl.h.

friend class TagDecl [friend]

Definition at line 2225 of file Decl.h.

friend class TagType [friend]

Definition at line 2227 of file Decl.h.

friend class TemplateTypeParmDecl [friend]

Definition at line 2226 of file Decl.h.


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