clang 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::DependentFunctionTemplateSpecializationInfo Class Referencefinal

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

#include "clang/AST/DeclTemplate.h"

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

Public Member Functions

ArrayRef< FunctionTemplateDecl * > getCandidates () const
 Returns the candidates for the primary function template.
 

Static Public Member Functions

static DependentFunctionTemplateSpecializationInfoCreate (ASTContext &Context, const UnresolvedSetImpl &Candidates, const TemplateArgumentListInfo *TemplateArgs)
 

Public Attributes

const ASTTemplateArgumentListInfoTemplateArgumentsAsWritten
 The template arguments as written in the sources, if provided.
 

Detailed Description

Provides information about a dependent function-template specialization declaration.

This is used for function templates explicit specializations declared within class templates:

template<typename> struct A {
template<typename> void f();
template<> void f<int>(); // DependentFunctionTemplateSpecializationInfo
};

As well as dependent friend declarations naming function template specializations declared within class templates:

template \<class T> void foo(T);
template \<class T> class A {
friend void foo<>(T); // DependentFunctionTemplateSpecializationInfo
};
const FunctionProtoType * T

Definition at line 687 of file DeclTemplate.h.

Member Function Documentation

◆ Create()

DependentFunctionTemplateSpecializationInfo * DependentFunctionTemplateSpecializationInfo::Create ( ASTContext Context,
const UnresolvedSetImpl Candidates,
const TemplateArgumentListInfo TemplateArgs 
)
static

◆ getCandidates()

ArrayRef< FunctionTemplateDecl * > clang::DependentFunctionTemplateSpecializationInfo::getCandidates ( ) const
inline

Returns the candidates for the primary function template.

Definition at line 708 of file DeclTemplate.h.

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

Member Data Documentation

◆ TemplateArgumentsAsWritten

const ASTTemplateArgumentListInfo* clang::DependentFunctionTemplateSpecializationInfo::TemplateArgumentsAsWritten

The template arguments as written in the sources, if provided.

Definition at line 701 of file DeclTemplate.h.

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


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