clang 17.0.0git
|
Provides information about a dependent function-template specialization declaration. More...
#include "clang/AST/DeclTemplate.h"
Public Member Functions | |
unsigned | getNumTemplates () const |
Returns the number of function templates that this might be a specialization of. | |
FunctionTemplateDecl * | getTemplate (unsigned I) const |
Returns the i'th template candidate. | |
const TemplateArgumentLoc * | getTemplateArgs () const |
Returns the explicit template arguments that were given. | |
unsigned | getNumTemplateArgs () const |
Returns the number of explicit template arguments that were given. | |
llvm::ArrayRef< TemplateArgumentLoc > | arguments () const |
const TemplateArgumentLoc & | getTemplateArg (unsigned I) const |
Returns the nth template argument. | |
SourceLocation | getLAngleLoc () const |
SourceLocation | getRAngleLoc () const |
Static Public Member Functions | |
static DependentFunctionTemplateSpecializationInfo * | Create (ASTContext &Context, const UnresolvedSetImpl &Templates, const TemplateArgumentListInfo &TemplateArgs) |
Public Attributes | |
friend | TrailingObjects |
Provides information about a dependent function-template specialization declaration.
Since explicit function template specialization and instantiation declarations can only appear in namespace scope, and you can only specialize a member of a fully-specialized class, the only way to get one of these is in a friend declaration like the following:
Definition at line 695 of file DeclTemplate.h.
|
inline |
Definition at line 744 of file DeclTemplate.h.
References getNumTemplateArgs(), and getTemplateArgs().
|
static |
Definition at line 4070 of file Decl.cpp.
References clang::ASTContext::Allocate(), clang::TemplateArgumentListInfo::size(), and clang::UnresolvedSetImpl::size().
Referenced by clang::FunctionDecl::setDependentTemplateSpecialization().
|
inline |
Definition at line 754 of file DeclTemplate.h.
References clang::SourceRange::getBegin().
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the number of explicit template arguments that were given.
Definition at line 742 of file DeclTemplate.h.
Referenced by arguments(), getTemplateArg(), and clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the number of function templates that this might be a specialization of.
Definition at line 728 of file DeclTemplate.h.
Referenced by getTemplate(), and clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Definition at line 758 of file DeclTemplate.h.
References clang::SourceRange::getEnd().
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the i'th template candidate.
Definition at line 731 of file DeclTemplate.h.
References getNumTemplates().
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the nth template argument.
Definition at line 749 of file DeclTemplate.h.
References getNumTemplateArgs(), and getTemplateArgs().
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the explicit template arguments that were given.
Definition at line 737 of file DeclTemplate.h.
Referenced by arguments(), and getTemplateArg().
friend clang::DependentFunctionTemplateSpecializationInfo::TrailingObjects |
Definition at line 720 of file DeclTemplate.h.