clang  6.0.0svn
Public Types | Public Member Functions | List of all members
clang::TemplateSpecCandidateSet Class Reference

TemplateSpecCandidateSet - A set of generalized overload candidates, used in template specializations. More...

#include "clang/Sema/TemplateDeduction.h"

Public Types

typedef SmallVector< TemplateSpecCandidate, 16 >::iterator iterator
 

Public Member Functions

 TemplateSpecCandidateSet (SourceLocation Loc, bool ForTakingAddress=false)
 
 ~TemplateSpecCandidateSet ()
 
SourceLocation getLocation () const
 
void clear ()
 Clear out all of the candidates. More...
 
iterator begin ()
 
iterator end ()
 
size_t size () const
 
bool empty () const
 
TemplateSpecCandidateaddCandidate ()
 Add a new candidate with NumConversions conversion sequence slots to the overload set. More...
 
void NoteCandidates (Sema &S, SourceLocation Loc)
 NoteCandidates - When no template specialization match is found, prints diagnostic messages containing the non-matching specializations that form the candidate set. More...
 
void NoteCandidates (Sema &S, SourceLocation Loc) const
 

Detailed Description

TemplateSpecCandidateSet - A set of generalized overload candidates, used in template specializations.

TODO: In the future, we may need to unify/generalize this with OverloadCandidateSet.

Definition at line 276 of file TemplateDeduction.h.

Member Typedef Documentation

◆ iterator

Definition at line 301 of file TemplateDeduction.h.

Constructor & Destructor Documentation

◆ TemplateSpecCandidateSet()

clang::TemplateSpecCandidateSet::TemplateSpecCandidateSet ( SourceLocation  Loc,
bool  ForTakingAddress = false 
)
inline

Definition at line 291 of file TemplateDeduction.h.

◆ ~TemplateSpecCandidateSet()

clang::TemplateSpecCandidateSet::~TemplateSpecCandidateSet ( )
inline

Definition at line 293 of file TemplateDeduction.h.

Member Function Documentation

◆ addCandidate()

TemplateSpecCandidate& clang::TemplateSpecCandidateSet::addCandidate ( )
inline

Add a new candidate with NumConversions conversion sequence slots to the overload set.

Definition at line 310 of file TemplateDeduction.h.

◆ begin()

iterator clang::TemplateSpecCandidateSet::begin ( )
inline

Definition at line 302 of file TemplateDeduction.h.

◆ clear()

void TemplateSpecCandidateSet::clear ( )

Clear out all of the candidates.

TODO: This may be unnecessary.

Definition at line 10622 of file SemaOverload.cpp.

◆ empty()

bool clang::TemplateSpecCandidateSet::empty ( ) const
inline

Definition at line 306 of file TemplateDeduction.h.

◆ end()

iterator clang::TemplateSpecCandidateSet::end ( )
inline

Definition at line 303 of file TemplateDeduction.h.

◆ getLocation()

SourceLocation clang::TemplateSpecCandidateSet::getLocation ( ) const
inline

Definition at line 295 of file TemplateDeduction.h.

References clang::CodeGen::clear().

◆ NoteCandidates() [1/2]

void TemplateSpecCandidateSet::NoteCandidates ( Sema S,
SourceLocation  Loc 
)

NoteCandidates - When no template specialization match is found, prints diagnostic messages containing the non-matching specializations that form the candidate set.

This is analoguous to OverloadCandidateSet::NoteCandidates() with OCD == OCD_AllCandidates and Cand->Viable == false.

Definition at line 10632 of file SemaOverload.cpp.

References clang::Sema::Diags, and clang::DiagnosticsEngine::getShowOverloads().

Referenced by clang::Sema::getMostSpecialized().

◆ NoteCandidates() [2/2]

void clang::TemplateSpecCandidateSet::NoteCandidates ( Sema S,
SourceLocation  Loc 
) const
inline

Definition at line 317 of file TemplateDeduction.h.

◆ size()

size_t clang::TemplateSpecCandidateSet::size ( ) const
inline

Definition at line 305 of file TemplateDeduction.h.


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