clang API Documentation
#include <Decl.h>


Public Member Functions | |
| const Type * | getTypeForDecl () 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 |
TypeDecl - Represents a declaration of a type.
| clang::TypeDecl::TypeDecl | ( | Kind | DK, |
| DeclContext * | DC, | ||
| SourceLocation | L, | ||
| IdentifierInfo * | Id, | ||
| SourceLocation | StartL = SourceLocation() |
||
| ) | [inline, protected] |
| static bool clang::TypeDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::NamedDecl.
Reimplemented in clang::RecordDecl, clang::EnumDecl, clang::UnresolvedUsingTypenameDecl, clang::TagDecl, clang::TypeAliasDecl, clang::TypedefDecl, clang::TypedefNameDecl, clang::ClassTemplatePartialSpecializationDecl, clang::ClassTemplateSpecializationDecl, clang::CXXRecordDecl, and clang::TemplateTypeParmDecl.
Definition at line 2250 of file Decl.h.
References clang::ParmVarDecl::classofKind(), and clang::Decl::getKind().
| static bool clang::TypeDecl::classof | ( | const TypeDecl * | D | ) | [inline, static] |
| static bool clang::TypeDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::NamedDecl.
Reimplemented in clang::RecordDecl, clang::EnumDecl, clang::UnresolvedUsingTypenameDecl, clang::TagDecl, clang::TypeAliasDecl, clang::TypedefDecl, clang::TypedefNameDecl, clang::ClassTemplatePartialSpecializationDecl, clang::ClassTemplateSpecializationDecl, clang::CXXRecordDecl, and clang::TemplateTypeParmDecl.
| SourceLocation clang::TypeDecl::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Decl.
Definition at line 2240 of file Decl.h.
Referenced by clang::Sema::ActOnStartCXXMemberDeclarations(), clang::TemplateTypeParmDecl::getSourceRange(), clang::TypedefDecl::getSourceRange(), clang::TypeAliasDecl::getSourceRange(), clang::UnresolvedUsingTypenameDecl::getUsingLoc(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), clang::ASTNodeImporter::VisitClassTemplateDecl(), clang::TemplateDeclInstantiator::VisitClassTemplateDecl(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), clang::TemplateDeclInstantiator::VisitCXXRecordDecl(), clang::ASTNodeImporter::VisitEnumDecl(), clang::TemplateDeclInstantiator::VisitEnumDecl(), clang::ASTNodeImporter::VisitRecordDecl(), clang::ASTNodeImporter::VisitTemplateTypeParmDecl(), clang::TemplateDeclInstantiator::VisitTemplateTypeParmDecl(), clang::ASTDeclWriter::VisitTypeDecl(), and clang::ASTNodeImporter::VisitTypedefNameDecl().
| 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] |
Definition at line 2237 of file Decl.h.
Referenced by clang::Sema::BuildBaseInitializer(), clang::Sema::BuildDelegatingInitializer(), clang::Sema::DeclareInheritedConstructors(), clang::Sema::DeduceAutoType(), clang::CodeGen::CGCXXABI::EmitMemberPointer(), clang::ClassTemplatePartialSpecializationDecl::getInjectedSpecializationType(), clang::TemplateDeclInstantiator::VisitTemplateTypeParmDecl(), and clang::ASTDeclWriter::VisitTypeDecl().
| 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().
friend class ASTContext [friend] |
friend class ASTReader [friend] |
Reimplemented from clang::Decl.
Reimplemented in clang::CXXRecordDecl.
friend class DeclContext [friend] |
Reimplemented from clang::Decl.
Reimplemented in clang::RecordDecl, and clang::CXXRecordDecl.
friend class TemplateTypeParmDecl [friend] |