clang 20.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 &SemaRef, bool AccessCheckingSFINAE=false) | |
~SFINAETrap () | |
bool | hasErrorOccurred () const |
Determine whether any SFINAE errors have been trapped. | |
RAII class used to determine whether SFINAE has trapped any errors that occur during template argument deduction.
|
inlineexplicit |
Definition at line 12092 of file Sema.h.
References clang::Sema::AccessCheckingSFINAE, clang::Sema::InNonInstantiationSFINAEContext, and clang::Sema::isSFINAEContext().
|
inline |
Definition at line 12104 of file Sema.h.
References clang::Sema::AccessCheckingSFINAE, clang::Sema::getDiagnostics(), clang::Sema::InNonInstantiationSFINAEContext, clang::Sema::NumSFINAEErrors, and clang::DiagnosticsEngine::setLastDiagnosticIgnored().
|
inline |
Determine whether any SFINAE errors have been trapped.
Definition at line 12114 of file Sema.h.
References clang::Sema::NumSFINAEErrors.
Referenced by clang::Sema::BuildMemberReferenceExpr(), calculateConstraintSatisfaction(), CheckConvertibilityForTypeTraits(), convertArgsForAvailabilityChecks(), DeduceTemplateArguments(), clang::Sema::DeduceTemplateArgumentsFromType(), DiagnoseInvalidRedeclaration(), EvaluateBinaryTypeTrait(), EvaluateBooleanTypeTrait(), clang::Sema::FinishTemplateArgumentDeduction(), FinishTemplateArgumentDeduction(), HasNonDeletedDefaultedEqualityComparison(), instantiateExplicitSpecifierDeferred(), clang::Sema::isTemplateTemplateParameterAtLeastAsSpecializedAs(), clang::Sema::LookupLiteralOperator(), SubstituteConstraintExpressionWithoutSatisfaction(), and clang::Sema::SubstituteExplicitTemplateArguments().