clang 24.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
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

Detailed Description

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

Definition at line 12678 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 12694 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 12697 of file Sema.h.

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

◆ ~SFINAETrap()

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

Definition at line 12700 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 12707 of file Sema.h.

◆ hasErrorOccurred()

◆ operator=()

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

◆ setErrorOccurred()

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

Definition at line 12713 of file Sema.h.

◆ withAccessChecking()

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

Definition at line 12715 of file Sema.h.


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