clang
3.7.0
|
Provides information about a dependent function-template specialization declaration. More...
#include <DeclTemplate.h>
Public Member Functions | |
DependentFunctionTemplateSpecializationInfo (const UnresolvedSetImpl &Templates, const TemplateArgumentListInfo &TemplateArgs) | |
unsigned | getNumTemplates () const |
Returns the number of function templates that this might be a specialization of. More... | |
FunctionTemplateDecl * | getTemplate (unsigned I) const |
Returns the i'th template candidate. More... | |
const TemplateArgumentLoc * | getTemplateArgs () const |
Returns the explicit template arguments that were given. More... | |
unsigned | getNumTemplateArgs () const |
Returns the number of explicit template arguments that were given. More... | |
const TemplateArgumentLoc & | getTemplateArg (unsigned I) const |
Returns the nth template argument. More... | |
SourceLocation | getLAngleLoc () const |
SourceLocation | getRAngleLoc () const |
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 545 of file DeclTemplate.h.
DependentFunctionTemplateSpecializationInfo::DependentFunctionTemplateSpecializationInfo | ( | const UnresolvedSetImpl & | Templates, |
const TemplateArgumentListInfo & | TemplateArgs | ||
) |
Definition at line 3129 of file Decl.cpp.
References d, getTemplateArgs(), clang::UnresolvedSetImpl::size(), and clang::TemplateArgumentListInfo::size().
|
inline |
Definition at line 602 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the number of explicit template arguments that were given.
Definition at line 592 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the number of function templates that this might be a specialization of.
Definition at line 575 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Definition at line 606 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the i'th template candidate.
Definition at line 580 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the nth template argument.
Definition at line 597 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the explicit template arguments that were given.
Definition at line 586 of file DeclTemplate.h.
Referenced by DependentFunctionTemplateSpecializationInfo().
void* clang::DependentFunctionTemplateSpecializationInfo::Aligner |
Definition at line 557 of file DeclTemplate.h.
struct CA clang::DependentFunctionTemplateSpecializationInfo::d |
Definition at line 558 of file DeclTemplate.h.
Referenced by DependentFunctionTemplateSpecializationInfo().