clang
12.0.0git
|
Provides information a specialization of a member of a class template, which may be a member function, static data member, member class or member enumeration. More...
#include "clang/AST/DeclTemplate.h"
Public Member Functions | |
MemberSpecializationInfo (NamedDecl *IF, TemplateSpecializationKind TSK, SourceLocation POI=SourceLocation()) | |
NamedDecl * | getInstantiatedFrom () const |
Retrieve the member declaration from which this member was instantiated. More... | |
TemplateSpecializationKind | getTemplateSpecializationKind () const |
Determine what kind of template specialization this is. More... | |
bool | isExplicitSpecialization () const |
void | setTemplateSpecializationKind (TemplateSpecializationKind TSK) |
Set the template specialization kind. More... | |
SourceLocation | getPointOfInstantiation () const |
Retrieve the first point of instantiation of this member. More... | |
void | setPointOfInstantiation (SourceLocation POI) |
Set the first point of instantiation. More... | |
Provides information a specialization of a member of a class template, which may be a member function, static data member, member class or member enumeration.
Definition at line 618 of file DeclTemplate.h.
|
inlineexplicit |
Definition at line 628 of file DeclTemplate.h.
References clang::TSK_Undeclared.
|
inline |
Retrieve the member declaration from which this member was instantiated.
Definition at line 637 of file DeclTemplate.h.
Referenced by clang::EnumDecl::getInstantiatedFromMemberEnum(), and clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Retrieve the first point of instantiation of this member.
If the point of instantiation is an invalid location, then this member has not yet been instantiated.
Definition at line 658 of file DeclTemplate.h.
Referenced by clang::ASTNodeImporter::ImportTemplateInformation(), clang::Sema::InstantiateClassMembers(), clang::EnumDecl::setTemplateSpecializationKind(), and clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Determine what kind of template specialization this is.
Definition at line 640 of file DeclTemplate.h.
Referenced by DoMarkVarDeclReferenced(), clang::Sema::InstantiateClassMembers(), isExplicitSpecialization(), clang::Sema::RequireCompleteDeclContext(), and clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Definition at line 644 of file DeclTemplate.h.
References getTemplateSpecializationKind(), and clang::TSK_ExplicitSpecialization.
Referenced by hasExplicitMemberDefinition().
|
inline |
Set the first point of instantiation.
Definition at line 663 of file DeclTemplate.h.
Referenced by clang::ASTNodeImporter::ImportTemplateInformation(), clang::Sema::InstantiateClassMembers(), clang::EnumDecl::setTemplateSpecializationKind(), clang::ASTDeclReader::VisitCXXRecordDeclImpl(), clang::ASTDeclReader::VisitEnumDecl(), and clang::ASTDeclReader::VisitFunctionDecl().
|
inline |
Set the template specialization kind.
Definition at line 649 of file DeclTemplate.h.
References clang::TSK_Undeclared.
Referenced by clang::Sema::InstantiateClassMembers(), and clang::EnumDecl::setTemplateSpecializationKind().