|
clang 22.0.0git
|
RAII class used to determine whether SFINAE has trapped any errors that occur during template argument deduction. More...
#include "clang/Sema/Sema.h"
Public Member Functions | |
| SFINAETrap (Sema &S, bool WithAccessChecking=false) | |
| SFINAETrap (Sema &S, sema::TemplateDeductionInfo &Info) | |
| ~SFINAETrap () | |
| SFINAETrap (const SFINAETrap &)=delete | |
| SFINAETrap & | operator= (const SFINAETrap &)=delete |
| sema::TemplateDeductionInfo * | getDeductionInfo () const |
| bool | hasErrorOccurred () const |
| Determine whether any SFINAE errors have been trapped. | |
| void | setErrorOccurred () |
| bool | withAccessChecking () const |
RAII class used to determine whether SFINAE has trapped any errors that occur during template argument deduction.
| WithAccessChecking | If true, discard all diagnostics (from the immediate context) instead of adding them to the currently active TemplateDeductionInfo. |
Definition at line 12434 of file Sema.h.
References clang::nullptr, clang::Sema::SFINAEContextBase::S, and clang::Sema::Sema().
|
inline |
Definition at line 12437 of file Sema.h.
References false, clang::Sema::SFINAEContextBase::S, and clang::Sema::Sema().
|
inline |
Definition at line 12440 of file Sema.h.
References clang::Sema::SFINAEContextBase::S.
|
delete |
|
inline |
|
inline |
Determine whether any SFINAE errors have been trapped.
Definition at line 12452 of file Sema.h.
Referenced by clang::Sema::BuildMemberReferenceExpr(), builtinCommonTypeImpl(), CheckConvertibilityForTypeTraits(), convertArgsForAvailabilityChecks(), clang::Sema::DeduceTemplateArguments(), clang::Sema::DeduceTemplateArguments(), DeduceTemplateArguments(), clang::Sema::DeduceTemplateArgumentsFromType(), DiagnoseInvalidRedeclaration(), EvaluateBinaryTypeTrait(), EvaluateBooleanTypeTrait(), HasNonDeletedDefaultedEqualityComparison(), instantiateExplicitSpecifierDeferred(), isAtLeastAsSpecializedAs(), and clang::Sema::LookupLiteralOperator().
|
delete |
|
inline |