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 LLVM_READONLY
void setLocStart (SourceLocation L)
SourceRange getSourceRange () const override LLVM_READONLY
 Source range that this declaration covers.

Static Public Member Functions

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

Protected Member Functions

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

Friends

class ASTContext

Detailed Description

TypeDecl - Represents a declaration of a type.

Definition at line 2439 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 2451 of file Decl.h.


Member Function Documentation

static bool clang::TypeDecl::classof ( const Decl D) [inline, static]
static bool clang::TypeDecl::classofKind ( Kind  K) [inline, static]
SourceRange clang::TypeDecl::getSourceRange ( ) const [inline, override, 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 2465 of file Decl.h.

const Type* clang::TypeDecl::getTypeForDecl ( ) const [inline]

Definition at line 2464 of file Decl.h.

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

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

Friends And Related Function Documentation

friend class ASTContext [friend]

Definition at line 2448 of file Decl.h.


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