clang API Documentation

Public Types | Public Member Functions
clang::TemplateSpecCandidateSet Class Reference

#include <TemplateDeduction.h>

List of all members.

Public Types

typedef SmallVector
< TemplateSpecCandidate, 16 >
::iterator 
iterator

Public Member Functions

 TemplateSpecCandidateSet (SourceLocation Loc)
 ~TemplateSpecCandidateSet ()
SourceLocation getLocation () const
void clear ()
 Clear out all of the candidates. TODO: This may be unnecessary.
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.
void NoteCandidates (Sema &S, SourceLocation Loc)
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 250 of file TemplateDeduction.h.


Member Typedef Documentation

Definition at line 270 of file TemplateDeduction.h.


Constructor & Destructor Documentation

clang::TemplateSpecCandidateSet::TemplateSpecCandidateSet ( SourceLocation  Loc) [inline]

Definition at line 261 of file TemplateDeduction.h.

Definition at line 262 of file TemplateDeduction.h.


Member Function Documentation

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

Definition at line 279 of file TemplateDeduction.h.

Referenced by clang::Sema::CheckVarTemplateId(), and clang::Sema::InstantiateClassTemplateSpecialization().

Definition at line 271 of file TemplateDeduction.h.

Referenced by NoteCandidates().

Clear out all of the candidates. TODO: This may be unnecessary.

Definition at line 9666 of file SemaOverload.cpp.

Definition at line 275 of file TemplateDeduction.h.

Definition at line 272 of file TemplateDeduction.h.

Referenced by NoteCandidates().

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 9676 of file SemaOverload.cpp.

References begin(), clang::Sema::Diag(), clang::Sema::Diags, end(), clang::DiagnosticsEngine::getShowOverloads(), clang::TemplateSpecCandidate::NoteDeductionFailure(), clang::Ovl_Best, size(), and clang::TemplateSpecCandidate::Specialization.

Referenced by clang::Sema::getMostSpecialized(), and NoteCandidates().

Definition at line 286 of file TemplateDeduction.h.

References NoteCandidates().

Definition at line 274 of file TemplateDeduction.h.

Referenced by NoteCandidates().


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