clang API Documentation
RAII class used to determine whether SFINAE has trapped any errors that occur during template argument deduction. More...
#include <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.
clang::Sema::SFINAETrap::SFINAETrap | ( | Sema & | SemaRef, |
bool | AccessCheckingSFINAE = false |
||
) | [inline, explicit] |
Definition at line 6610 of file Sema.h.
References clang::Sema::AccessCheckingSFINAE, clang::Sema::InNonInstantiationSFINAEContext, and clang::Sema::isSFINAEContext().
clang::Sema::SFINAETrap::~SFINAETrap | ( | ) | [inline] |
Definition at line 6621 of file Sema.h.
References clang::Sema::AccessCheckingSFINAE, clang::Sema::InNonInstantiationSFINAEContext, and clang::Sema::NumSFINAEErrors.
bool clang::Sema::SFINAETrap::hasErrorOccurred | ( | ) | const [inline] |
Determine whether any SFINAE errors have been trapped.
Definition at line 6629 of file Sema.h.
References clang::Sema::NumSFINAEErrors.
Referenced by clang::Sema::BuildMemberReferenceExpr(), clang::Sema::DeduceTemplateArguments(), DiagnoseInvalidRedeclaration(), EvaluateBinaryTypeTrait(), evaluateTypeTrait(), FinishTemplateArgumentDeduction(), clang::Sema::FinishTemplateArgumentDeduction(), and clang::Sema::SubstituteExplicitTemplateArguments().