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"

Inheritance diagram for clang::Sema::SFINAETrap:
[legend]

Public Member Functions

 SFINAETrap (Sema &S, bool WithAccessChecking=false)
 SFINAETrap (Sema &S, sema::TemplateDeductionInfo &Info)
 ~SFINAETrap ()
 SFINAETrap (const SFINAETrap &)=delete
SFINAETrapoperator= (const SFINAETrap &)=delete
sema::TemplateDeductionInfogetDeductionInfo () const
bool hasErrorOccurred () const
 Determine whether any SFINAE errors have been trapped.
void setErrorOccurred ()
bool withAccessChecking () const

Detailed Description

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

Definition at line 12418 of file Sema.h.

Constructor & Destructor Documentation

◆ SFINAETrap() [1/3]

clang::Sema::SFINAETrap::SFINAETrap ( Sema & S,
bool WithAccessChecking = false )
inlineexplicit
Parameters
WithAccessCheckingIf 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().

◆ SFINAETrap() [2/3]

clang::Sema::SFINAETrap::SFINAETrap ( Sema & S,
sema::TemplateDeductionInfo & Info )
inline

Definition at line 12437 of file Sema.h.

References false, clang::Sema::SFINAEContextBase::S, and clang::Sema::Sema().

◆ ~SFINAETrap()

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

Definition at line 12440 of file Sema.h.

References clang::Sema::SFINAEContextBase::S.

◆ SFINAETrap() [3/3]

clang::Sema::SFINAETrap::SFINAETrap ( const SFINAETrap & )
delete

Member Function Documentation

◆ getDeductionInfo()

sema::TemplateDeductionInfo * clang::Sema::SFINAETrap::getDeductionInfo ( ) const
inline

Definition at line 12447 of file Sema.h.

◆ hasErrorOccurred()

◆ operator=()

SFINAETrap & clang::Sema::SFINAETrap::operator= ( const SFINAETrap & )
delete

◆ setErrorOccurred()

void clang::Sema::SFINAETrap::setErrorOccurred ( )
inline

Definition at line 12453 of file Sema.h.

◆ withAccessChecking()

bool clang::Sema::SFINAETrap::withAccessChecking ( ) const
inline

Definition at line 12455 of file Sema.h.


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