clang API Documentation

Public Member Functions | Public Attributes
clang::OverloadCandidate::DeductionFailureInfo Struct Reference

#include <Overload.h>

Collaboration diagram for clang::OverloadCandidate::DeductionFailureInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

PartialDiagnosticAtgetSFINAEDiagnostic ()
 Retrieve the diagnostic which caused this deduction failure, if any.
TemplateParameter getTemplateParameter ()
 Retrieve the template parameter this deduction failure refers to, if any.
TemplateArgumentListgetTemplateArgumentList ()
 Retrieve the template argument list associated with this deduction failure, if any.
const TemplateArgumentgetFirstArg ()
 Return the first template argument this deduction failure refers to, if any.
const TemplateArgumentgetSecondArg ()
 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.

Detailed Description

A structure used to record information about a failed template argument deduction.

Definition at line 661 of file Overload.h.


Member Function Documentation

void clang::OverloadCandidate::DeductionFailureInfo::Destroy ( )
const TemplateArgument * clang::OverloadCandidate::DeductionFailureInfo::getFirstArg ( )
const TemplateArgument * clang::OverloadCandidate::DeductionFailureInfo::getSecondArg ( )
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 ( )
TemplateParameter clang::OverloadCandidate::DeductionFailureInfo::getTemplateParameter ( )

Member Data Documentation

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().


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