clang
9.0.0
|
TemplateSpecCandidateSet - A set of generalized overload candidates, used in template specializations. More...
#include "clang/Sema/TemplateDeduction.h"
Public Types | |
using | iterator = SmallVector< TemplateSpecCandidate, 16 >::iterator |
Public Member Functions | |
TemplateSpecCandidateSet (SourceLocation Loc, bool ForTakingAddress=false) | |
TemplateSpecCandidateSet (const TemplateSpecCandidateSet &)=delete | |
TemplateSpecCandidateSet & | operator= (const TemplateSpecCandidateSet &)=delete |
~TemplateSpecCandidateSet () | |
SourceLocation | getLocation () const |
void | clear () |
Clear out all of the candidates. More... | |
iterator | begin () |
iterator | end () |
size_t | size () const |
bool | empty () const |
TemplateSpecCandidate & | addCandidate () |
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 |
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 302 of file TemplateDeduction.h.
Definition at line 327 of file TemplateDeduction.h.
|
inline |
Definition at line 314 of file TemplateDeduction.h.
References clang::sema::TemplateDeductionInfo::operator=().
|
delete |
|
inline |
Definition at line 319 of file TemplateDeduction.h.
|
inline |
Add a new candidate with NumConversions conversion sequence slots to the overload set.
Definition at line 337 of file TemplateDeduction.h.
|
inline |
Definition at line 329 of file TemplateDeduction.h.
void TemplateSpecCandidateSet::clear | ( | ) |
Clear out all of the candidates.
TODO: This may be unnecessary.
Definition at line 10969 of file SemaOverload.cpp.
|
inline |
Definition at line 333 of file TemplateDeduction.h.
|
inline |
Definition at line 330 of file TemplateDeduction.h.
|
inline |
Definition at line 321 of file TemplateDeduction.h.
References clang::CodeGen::clear().
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 10979 of file SemaOverload.cpp.
References clang::Sema::Diag(), clang::Sema::Diags, clang::DiagnosticsEngine::getShowOverloads(), clang::TemplateSpecCandidate::NoteDeductionFailure(), clang::Ovl_Best, and clang::TemplateSpecCandidate::Specialization.
Referenced by clang::Sema::getMostSpecialized().
|
inline |
Definition at line 344 of file TemplateDeduction.h.
|
delete |
|
inline |
Definition at line 332 of file TemplateDeduction.h.