clang API Documentation

Classes | Public Member Functions
clang::DependentFunctionTemplateSpecializationInfo Class Reference

Provides information about a dependent function-template specialization declaration. More...

#include <DeclTemplate.h>

Collaboration diagram for clang::DependentFunctionTemplateSpecializationInfo:
Collaboration graph
[legend]

List of all members.

Classes

struct  CA

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.
FunctionTemplateDeclgetTemplate (unsigned I) const
 Returns the i'th template candidate.
const TemplateArgumentLocgetTemplateArgs () const
 Returns the explicit template arguments that were given.
unsigned getNumTemplateArgs () const
 Returns the number of explicit template arguments that were given.
const TemplateArgumentLocgetTemplateArg (unsigned I) const
 Returns the nth template argument.
SourceLocation getLAngleLoc () const
SourceLocation getRAngleLoc () const

Detailed Description

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:

   template \<class T> void foo(T);
   template \<class T> class A {
     friend void foo<>(T);
   };

Definition at line 463 of file DeclTemplate.h.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 520 of file DeclTemplate.h.

References clang::SourceRange::getBegin().

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

Returns the number of explicit template arguments that were given.

Definition at line 510 of file DeclTemplate.h.

References d.

Referenced by getTemplateArg(), and clang::ASTDeclWriter::VisitFunctionDecl().

Returns the number of function templates that this might be a specialization of.

Definition at line 493 of file DeclTemplate.h.

References d.

Referenced by getTemplate(), getTemplateArgs(), and clang::ASTDeclWriter::VisitFunctionDecl().

Definition at line 524 of file DeclTemplate.h.

References clang::SourceRange::getEnd().

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

Returns the i'th template candidate.

Definition at line 498 of file DeclTemplate.h.

References getNumTemplates().

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

Returns the nth template argument.

Definition at line 515 of file DeclTemplate.h.

References getNumTemplateArgs(), and getTemplateArgs().

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

Returns the explicit template arguments that were given.

Definition at line 504 of file DeclTemplate.h.

References getNumTemplates().

Referenced by DependentFunctionTemplateSpecializationInfo(), and getTemplateArg().


Member Data Documentation

Definition at line 475 of file DeclTemplate.h.


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