clang API Documentation
#include <Overload.h>

Public Member Functions | |
| PartialDiagnosticAt * | getSFINAEDiagnostic () |
| Retrieve the diagnostic which caused this deduction failure, if any. | |
| TemplateParameter | getTemplateParameter () |
| Retrieve the template parameter this deduction failure refers to, if any. | |
| TemplateArgumentList * | getTemplateArgumentList () |
| Retrieve the template argument list associated with this deduction failure, if any. | |
| const TemplateArgument * | getFirstArg () |
| Return the first template argument this deduction failure refers to, if any. | |
| const TemplateArgument * | getSecondArg () |
| Return the second template argument this deduction failure refers to, if any. | |
| void | Destroy () |
| Free any memory associated with this deduction failure. | |
Public Attributes | |
| unsigned | Result: 8 |
| A Sema::TemplateDeductionResult. | |
| unsigned | HasDiagnostic: 1 |
| Indicates whether a diagnostic is stored in Diagnostic. | |
| void * | Data |
| Opaque pointer containing additional data about this deduction failure. | |
| union { | |
| void * Align | |
| char Diagnostic [sizeof(PartialDiagnosticAt)] | |
| }; | |
| A diagnostic indicating why deduction failed. | |
A structure used to record information about a failed template argument deduction.
Definition at line 661 of file Overload.h.
| void clang::OverloadCandidate::DeductionFailureInfo::Destroy | ( | ) |
Free any memory associated with this deduction failure.
Definition at line 588 of file SemaOverload.cpp.
References Diag(), clang::Sema::TDK_FailedOverloadResolution, clang::Sema::TDK_Incomplete, clang::Sema::TDK_Inconsistent, clang::Sema::TDK_InstantiationDepth, clang::Sema::TDK_InvalidExplicitArguments, clang::Sema::TDK_NonDeducedMismatch, clang::Sema::TDK_SubstitutionFailure, clang::Sema::TDK_Success, clang::Sema::TDK_TooFewArguments, clang::Sema::TDK_TooManyArguments, and clang::Sema::TDK_Underqualified.
| const TemplateArgument * clang::OverloadCandidate::DeductionFailureInfo::getFirstArg | ( | ) |
Return the first template argument this deduction failure refers to, if any.
Definition at line 679 of file SemaOverload.cpp.
References FirstArg, clang::Sema::TDK_FailedOverloadResolution, clang::Sema::TDK_Incomplete, clang::Sema::TDK_Inconsistent, clang::Sema::TDK_InstantiationDepth, clang::Sema::TDK_InvalidExplicitArguments, clang::Sema::TDK_NonDeducedMismatch, clang::Sema::TDK_SubstitutionFailure, clang::Sema::TDK_Success, clang::Sema::TDK_TooFewArguments, clang::Sema::TDK_TooManyArguments, and clang::Sema::TDK_Underqualified.
| const TemplateArgument * clang::OverloadCandidate::DeductionFailureInfo::getSecondArg | ( | ) |
Return the second template argument this deduction failure refers to, if any.
Definition at line 704 of file SemaOverload.cpp.
References SecondArg, clang::Sema::TDK_FailedOverloadResolution, clang::Sema::TDK_Incomplete, clang::Sema::TDK_Inconsistent, clang::Sema::TDK_InstantiationDepth, clang::Sema::TDK_InvalidExplicitArguments, clang::Sema::TDK_NonDeducedMismatch, clang::Sema::TDK_SubstitutionFailure, clang::Sema::TDK_Success, clang::Sema::TDK_TooFewArguments, clang::Sema::TDK_TooManyArguments, and clang::Sema::TDK_Underqualified.
| PartialDiagnosticAt * clang::OverloadCandidate::DeductionFailureInfo::getSFINAEDiagnostic | ( | ) |
Retrieve the diagnostic which caused this deduction failure, if any.
Definition at line 621 of file SemaOverload.cpp.
| TemplateArgumentList * clang::OverloadCandidate::DeductionFailureInfo::getTemplateArgumentList | ( | ) |
Retrieve the template argument list associated with this deduction failure, if any.
Definition at line 655 of file SemaOverload.cpp.
References clang::Sema::TDK_FailedOverloadResolution, clang::Sema::TDK_Incomplete, clang::Sema::TDK_Inconsistent, clang::Sema::TDK_InstantiationDepth, clang::Sema::TDK_InvalidExplicitArguments, clang::Sema::TDK_NonDeducedMismatch, clang::Sema::TDK_SubstitutionFailure, clang::Sema::TDK_Success, clang::Sema::TDK_TooFewArguments, clang::Sema::TDK_TooManyArguments, and clang::Sema::TDK_Underqualified.
| TemplateParameter clang::OverloadCandidate::DeductionFailureInfo::getTemplateParameter | ( | ) |
Retrieve the template parameter this deduction failure refers to, if any.
Definition at line 628 of file SemaOverload.cpp.
References Param, clang::Sema::TDK_FailedOverloadResolution, clang::Sema::TDK_Incomplete, clang::Sema::TDK_Inconsistent, clang::Sema::TDK_InstantiationDepth, clang::Sema::TDK_InvalidExplicitArguments, clang::Sema::TDK_NonDeducedMismatch, clang::Sema::TDK_SubstitutionFailure, clang::Sema::TDK_Success, clang::Sema::TDK_TooFewArguments, clang::Sema::TDK_TooManyArguments, and clang::Sema::TDK_Underqualified.
| union { ... } |
A diagnostic indicating why deduction failed.
Definition at line 674 of file Overload.h.
Opaque pointer containing additional data about this deduction failure.
Definition at line 670 of file Overload.h.
Referenced by clang::MakeDeductionFailureInfo().
Definition at line 675 of file Overload.h.
Referenced by clang::MakeDeductionFailureInfo().
Indicates whether a diagnostic is stored in Diagnostic.
Definition at line 666 of file Overload.h.
Referenced by clang::MakeDeductionFailureInfo().
A Sema::TemplateDeductionResult.
Definition at line 663 of file Overload.h.
Referenced by clang::MakeDeductionFailureInfo().