clang 22.0.0git
clang::Sema::CXXThisScopeRAII Class Reference

RAII object used to temporarily allow the C++ 'this' expression to be used, with the given qualifiers on the current class type. More...

#include "clang/Sema/Sema.h"

Public Member Functions

 CXXThisScopeRAII (Sema &S, Decl *ContextDecl, Qualifiers CXXThisTypeQuals, bool Enabled=true)
 Introduce a new scope where 'this' may be allowed (when enabled), using the given declaration (which is either a class template or a class) along with the given qualifiers.
 ~CXXThisScopeRAII ()
 CXXThisScopeRAII (const CXXThisScopeRAII &)=delete
CXXThisScopeRAIIoperator= (const CXXThisScopeRAII &)=delete

Detailed Description

RAII object used to temporarily allow the C++ 'this' expression to be used, with the given qualifiers on the current class type.

Definition at line 8444 of file Sema.h.

Constructor & Destructor Documentation

◆ CXXThisScopeRAII() [1/2]

Sema::CXXThisScopeRAII::CXXThisScopeRAII ( Sema & S,
Decl * ContextDecl,
Qualifiers CXXThisTypeQuals,
bool Enabled = true )

Introduce a new scope where 'this' may be allowed (when enabled), using the given declaration (which is either a class template or a class) along with the given qualifiers.

along with the qualifiers placed on '*this'.

Definition at line 1242 of file SemaExprCXX.cpp.

References clang::cast(), clang::Sema::CXXThisTypeOverride, false, clang::if(), clang::Sema::Sema(), clang::T, and clang::Template.

Referenced by CXXThisScopeRAII(), and operator=().

◆ ~CXXThisScopeRAII()

Sema::CXXThisScopeRAII::~CXXThisScopeRAII ( )

Definition at line 1271 of file SemaExprCXX.cpp.

◆ CXXThisScopeRAII() [2/2]

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

References CXXThisScopeRAII().

Member Function Documentation

◆ operator=()

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

References CXXThisScopeRAII().


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