clang 22.0.0git
clang::Sema::SFINAETrap Class Reference

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 ForValidityCheck=false)
 ~SFINAETrap ()
bool hasErrorOccurred () const
 Determine whether any SFINAE errors have been trapped.

Detailed Description

RAII class used to determine whether SFINAE has trapped any errors that occur during template argument deduction.

Definition at line 12392 of file Sema.h.

Constructor & Destructor Documentation

◆ SFINAETrap()

clang::Sema::SFINAETrap::SFINAETrap ( Sema & SemaRef,
bool ForValidityCheck = false )
inlineexplicit
Parameters
ForValidityCheckIf true, discard all diagnostics (from the immediate context) instead of adding them to the currently active TemplateDeductionInfo (as returned by isSFINAEContext).

Definition at line 12403 of file Sema.h.

References clang::Sema::AccessCheckingSFINAE, clang::Sema::getDiagnostics(), clang::Sema::InNonInstantiationSFINAEContext, clang::Sema::NumSFINAEErrors, and clang::Sema::Sema().

◆ ~SFINAETrap()

clang::Sema::SFINAETrap::~SFINAETrap ( )
inline

Definition at line 12415 of file Sema.h.

Member Function Documentation

◆ hasErrorOccurred()


The documentation for this class was generated from the following file: