clang API Documentation
Declaration of an alias template. More...
#include <DeclTemplate.h>


Public Member Functions | |
| TypeAliasDecl * | getTemplatedDecl () const |
| Get the underlying function declaration of the template. | |
| TypeAliasTemplateDecl * | getCanonicalDecl () |
| Retrieves the canonical declaration of this template. | |
| const TypeAliasTemplateDecl * | getCanonicalDecl () const |
| TypeAliasTemplateDecl * | getPreviousDecl () |
| Retrieve the previous declaration of this function template, or NULL if no such declaration exists. | |
| const TypeAliasTemplateDecl * | getPreviousDecl () const |
| Retrieve the previous declaration of this function template, or NULL if no such declaration exists. | |
| TypeAliasTemplateDecl * | getInstantiatedFromMemberTemplate () |
Static Public Member Functions | |
| static TypeAliasTemplateDecl * | Create (ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) |
| Create a function template node. | |
| static TypeAliasTemplateDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
| Create an empty alias template node. | |
| static bool | classof (const Decl *D) |
| static bool | classofKind (Kind K) |
Protected Types | |
| typedef CommonBase | Common |
| Pointer to the common data shared by all declarations of this template. | |
Protected Member Functions | |
| TypeAliasTemplateDecl (DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) | |
| CommonBase * | newCommon (ASTContext &C) const |
| Common * | getCommonPtr () |
Friends | |
| class | ASTDeclReader |
| class | ASTDeclWriter |
Declaration of an alias template.
For example:
template \<typename T> using V = std::map<T*, int, MyCompare<T>>;
Definition at line 2106 of file DeclTemplate.h.
typedef CommonBase clang::TypeAliasTemplateDecl::Common [protected] |
Pointer to the common data shared by all declarations of this template.
Reimplemented from clang::RedeclarableTemplateDecl.
Definition at line 2110 of file DeclTemplate.h.
| clang::TypeAliasTemplateDecl::TypeAliasTemplateDecl | ( | DeclContext * | DC, |
| SourceLocation | L, | ||
| DeclarationName | Name, | ||
| TemplateParameterList * | Params, | ||
| NamedDecl * | Decl | ||
| ) | [inline, protected] |
Definition at line 2112 of file DeclTemplate.h.
Referenced by Create(), and CreateDeserialized().
| static bool clang::TypeAliasTemplateDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::RedeclarableTemplateDecl.
Definition at line 2169 of file DeclTemplate.h.
References classofKind(), and clang::Decl::getKind().
| static bool clang::TypeAliasTemplateDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::RedeclarableTemplateDecl.
Definition at line 2170 of file DeclTemplate.h.
Referenced by classof().
| TypeAliasTemplateDecl * TypeAliasTemplateDecl::Create | ( | ASTContext & | C, |
| DeclContext * | DC, | ||
| SourceLocation | L, | ||
| DeclarationName | Name, | ||
| TemplateParameterList * | Params, | ||
| NamedDecl * | Decl | ||
| ) | [static] |
Create a function template node.
Definition at line 903 of file DeclTemplate.cpp.
References AdoptTemplateParameterList(), and TypeAliasTemplateDecl().
Referenced by clang::Sema::ActOnAliasDeclaration(), and clang::TemplateDeclInstantiator::VisitTypeAliasTemplateDecl().
| TypeAliasTemplateDecl * TypeAliasTemplateDecl::CreateDeserialized | ( | ASTContext & | C, |
| unsigned | ID | ||
| ) | [static] |
Create an empty alias template node.
Definition at line 913 of file DeclTemplate.cpp.
References clang::Decl::AllocateDeserializedDecl(), and TypeAliasTemplateDecl().
| TypeAliasTemplateDecl* clang::TypeAliasTemplateDecl::getCanonicalDecl | ( | ) | [inline, virtual] |
Retrieves the canonical declaration of this template.
Reimplemented from clang::RedeclarableTemplateDecl.
Definition at line 2129 of file DeclTemplate.h.
Referenced by getCanonicalDecl().
| const TypeAliasTemplateDecl* clang::TypeAliasTemplateDecl::getCanonicalDecl | ( | ) | const [inline] |
Reimplemented from clang::RedeclarableTemplateDecl.
Definition at line 2133 of file DeclTemplate.h.
References getCanonicalDecl().
| Common* clang::TypeAliasTemplateDecl::getCommonPtr | ( | ) | [inline, protected] |
Definition at line 2118 of file DeclTemplate.h.
| TypeAliasTemplateDecl* clang::TypeAliasTemplateDecl::getInstantiatedFromMemberTemplate | ( | ) | [inline] |
Definition at line 2152 of file DeclTemplate.h.
| TypeAliasTemplateDecl* clang::TypeAliasTemplateDecl::getPreviousDecl | ( | ) | [inline] |
Retrieve the previous declaration of this function template, or NULL if no such declaration exists.
Reimplemented from clang::Redeclarable< RedeclarableTemplateDecl >.
Definition at line 2140 of file DeclTemplate.h.
Referenced by getPreviousDecl().
| const TypeAliasTemplateDecl* clang::TypeAliasTemplateDecl::getPreviousDecl | ( | ) | const [inline] |
Retrieve the previous declaration of this function template, or NULL if no such declaration exists.
Reimplemented from clang::Redeclarable< RedeclarableTemplateDecl >.
Definition at line 2147 of file DeclTemplate.h.
References getPreviousDecl().
| TypeAliasDecl* clang::TypeAliasTemplateDecl::getTemplatedDecl | ( | ) | const [inline] |
Get the underlying function declaration of the template.
Reimplemented from clang::TemplateDecl.
Definition at line 2124 of file DeclTemplate.h.
References clang::TemplateDecl::TemplatedDecl.
Referenced by clang::Sema::ActOnAliasDeclaration(), clang::Sema::CheckTemplateIdType(), and clang::TemplateDeclInstantiator::VisitTypeAliasTemplateDecl().
| RedeclarableTemplateDecl::CommonBase * TypeAliasTemplateDecl::newCommon | ( | ASTContext & | C | ) | const [protected, virtual] |
Implements clang::RedeclarableTemplateDecl.
Definition at line 924 of file DeclTemplate.cpp.
References clang::ASTContext::AddDeallocation().
friend class ASTDeclReader [friend] |
Reimplemented from clang::RedeclarableTemplateDecl.
Definition at line 2172 of file DeclTemplate.h.
friend class ASTDeclWriter [friend] |
Reimplemented from clang::RedeclarableTemplateDecl.
Definition at line 2173 of file DeclTemplate.h.