struct DeductionFailureInfo

Declaration

struct DeductionFailureInfo { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/Sema/TemplateDeduction.h:241

Member Variables

public unsigned int Result
A Sema::TemplateDeductionResult.
public unsigned int HasDiagnostic
Indicates whether a diagnostic is stored in Diagnostic.
public void* Data
Opaque pointer containing additional data about this deduction failure.
public char[32] Diagnostic
A diagnostic indicating why deduction failed.

Method Overview

Methods

void Destroy()

Description

Free any memory associated with this deduction failure.

Declared at: clang/include/clang/Sema/TemplateDeduction.h:280

llvm::Optional<unsigned int> getCallArgIndex()

Description

Return the index of the call argument that this deduction failure refers to, if any.

Declared at: clang/include/clang/Sema/TemplateDeduction.h:277

const clang::TemplateArgument* getFirstArg()

Description

Return the first template argument this deduction failure refers to, if any.

Declared at: clang/include/clang/Sema/TemplateDeduction.h:269

clang::PartialDiagnosticAt* getSFINAEDiagnostic()

Description

Retrieve the diagnostic which caused this deduction failure, if any.

Declared at: clang/include/clang/Sema/TemplateDeduction.h:257

const clang::TemplateArgument* getSecondArg()

Description

Return the second template argument this deduction failure refers to, if any.

Declared at: clang/include/clang/Sema/TemplateDeduction.h:273

clang::TemplateArgumentList*
getTemplateArgumentList()

Description

Retrieve the template argument list associated with this deduction failure, if any.

Declared at: clang/include/clang/Sema/TemplateDeduction.h:265

clang::TemplateParameter getTemplateParameter()

Description

Retrieve the template parameter this deduction failure refers to, if any.

Declared at: clang/include/clang/Sema/TemplateDeduction.h:261