clang API Documentation
#include <Decl.h>


Public Member Functions | |
| SourceRange | getSourceRange () const override LLVM_READONLY |
| Source range that this declaration covers. | |
| TypeAliasTemplateDecl * | getDescribedAliasTemplate () const |
| void | setDescribedAliasTemplate (TypeAliasTemplateDecl *TAT) |
Static Public Member Functions | |
| static TypeAliasDecl * | Create (ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, TypeSourceInfo *TInfo) |
| static TypeAliasDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
| static bool | classof (const Decl *D) |
| static bool | classofKind (Kind K) |
TypeAliasDecl - Represents the declaration of a typedef-name via a C++0x alias-declaration.
| static bool clang::TypeAliasDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::TypedefNameDecl.
Definition at line 2585 of file Decl.h.
References clang::Decl::getKind().
| static bool clang::TypeAliasDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::TypedefNameDecl.
| TypeAliasDecl * TypeAliasDecl::Create | ( | ASTContext & | C, |
| DeclContext * | DC, | ||
| SourceLocation | StartLoc, | ||
| SourceLocation | IdLoc, | ||
| IdentifierInfo * | Id, | ||
| TypeSourceInfo * | TInfo | ||
| ) | [static] |
Definition at line 3873 of file Decl.cpp.
References AttributeLangSupport::C.
Referenced by clang::Sema::ActOnAliasDeclaration(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), and clang::ASTNodeImporter::VisitTypedefNameDecl().
| TypeAliasDecl * TypeAliasDecl::CreateDeserialized | ( | ASTContext & | C, |
| unsigned | ID | ||
| ) | [static] |
Definition at line 3880 of file Decl.cpp.
References AttributeLangSupport::C.
| TypeAliasTemplateDecl* clang::TypeAliasDecl::getDescribedAliasTemplate | ( | ) | const [inline] |
Definition at line 2581 of file Decl.h.
Referenced by clang::ASTDeclWriter::VisitTypeAliasDecl().
| SourceRange TypeAliasDecl::getSourceRange | ( | ) | const [override, virtual] |
Source range that this declaration covers.
Reimplemented from clang::TypeDecl.
Definition at line 3894 of file Decl.cpp.
References clang::TypeDecl::getLocStart(), and clang::TypedefNameDecl::getTypeSourceInfo().
| void clang::TypeAliasDecl::setDescribedAliasTemplate | ( | TypeAliasTemplateDecl * | TAT | ) | [inline] |
Definition at line 2582 of file Decl.h.
Referenced by clang::Sema::ActOnAliasDeclaration(), and clang::ASTDeclReader::VisitTypeAliasDecl().