|
clang
5.0.0
|
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. 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 659 of file DeclTemplate.h.
|
static |
Definition at line 3372 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 712 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the number of explicit template arguments that were given.
Definition at line 704 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 690 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Definition at line 716 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the i'th template candidate.
Definition at line 693 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the nth template argument.
Definition at line 707 of file DeclTemplate.h.
References I.
Referenced by clang::ASTDeclWriter::VisitFunctionDecl().
|
inline |
Returns the explicit template arguments that were given.
Definition at line 699 of file DeclTemplate.h.
| friend clang::DependentFunctionTemplateSpecializationInfo::TrailingObjects |
Definition at line 720 of file DeclTemplate.h.
1.8.6