|
clang
3.8.0
|
Provides information about a dependent function-template specialization declaration. More...
#include <DeclTemplate.h>
Public Member Functions | |
| 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 |
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 556 of file DeclTemplate.h.
|
static |
Definition at line 3242 of file Decl.cpp.
References clang::ASTContext::Allocate(), Buffer, clang::UnresolvedSetImpl::size(), and clang::TemplateArgumentListInfo::size().
Referenced by clang::FunctionDecl::setDependentTemplateSpecialization().
|
inline |
Definition at line 609 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the number of explicit template arguments that were given.
Definition at line 601 of file DeclTemplate.h.
References clang::NumArgs.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the number of function templates that this might be a specialization of.
Definition at line 587 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Definition at line 613 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the i'th template candidate.
Definition at line 590 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the nth template argument.
Definition at line 604 of file DeclTemplate.h.
References I.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the explicit template arguments that were given.
Definition at line 596 of file DeclTemplate.h.
| friend clang::DependentFunctionTemplateSpecializationInfo::TrailingObjects |
Definition at line 617 of file DeclTemplate.h.
1.8.6