clang  6.0.0svn
Public Member Functions | List of all members
clang::MemberSpecializationInfo Class Reference

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())
 
NamedDeclgetInstantiatedFrom () 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...
 

Detailed Description

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 595 of file DeclTemplate.h.

Constructor & Destructor Documentation

◆ MemberSpecializationInfo()

clang::MemberSpecializationInfo::MemberSpecializationInfo ( NamedDecl IF,
TemplateSpecializationKind  TSK,
SourceLocation  POI = SourceLocation() 
)
inlineexplicit

Definition at line 605 of file DeclTemplate.h.

References clang::TSK_Undeclared.

Member Function Documentation

◆ getInstantiatedFrom()

NamedDecl* clang::MemberSpecializationInfo::getInstantiatedFrom ( ) const
inline

Retrieve the member declaration from which this member was instantiated.

Definition at line 614 of file DeclTemplate.h.

Referenced by clang::ASTDeclWriter::VisitFunctionDecl().

◆ getPointOfInstantiation()

SourceLocation clang::MemberSpecializationInfo::getPointOfInstantiation ( ) const
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 635 of file DeclTemplate.h.

Referenced by clang::Sema::InstantiateClassMembers(), isImportedDeclContext(), clang::EnumDecl::setTemplateSpecializationKind(), and clang::ASTDeclWriter::VisitFunctionDecl().

◆ getTemplateSpecializationKind()

TemplateSpecializationKind clang::MemberSpecializationInfo::getTemplateSpecializationKind ( ) const
inline

◆ isExplicitSpecialization()

bool clang::MemberSpecializationInfo::isExplicitSpecialization ( ) const
inline

◆ setPointOfInstantiation()

void clang::MemberSpecializationInfo::setPointOfInstantiation ( SourceLocation  POI)
inline

◆ setTemplateSpecializationKind()

void clang::MemberSpecializationInfo::setTemplateSpecializationKind ( TemplateSpecializationKind  TSK)
inline

Set the template specialization kind.

Definition at line 626 of file DeclTemplate.h.

References clang::TSK_Undeclared.

Referenced by clang::Sema::InstantiateClass(), clang::Sema::InstantiateClassMembers(), and clang::EnumDecl::setTemplateSpecializationKind().


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