class Sema::CXXThisScopeRAII
Declaration
class Sema::CXXThisScopeRAII { /* full declaration omitted */ };
Description
RAII object used to temporarily allow the C++ 'this' expression to be used, with the given qualifiers on the current class type.
Declared at: clang/include/clang/Sema/Sema.h:6486
Member Variables
- private clang::Sema& S
- private clang::QualType OldCXXThisTypeOverride
- private bool Enabled
Method Overview
- public CXXThisScopeRAII(clang::Sema & S, clang::Decl * ContextDecl, clang::Qualifiers CXXThisTypeQuals, bool Enabled = true)
- public ~CXXThisScopeRAII()
Methods
¶CXXThisScopeRAII(
clang::Sema& S,
clang::Decl* ContextDecl,
clang::Qualifiers CXXThisTypeQuals,
bool Enabled = true)
CXXThisScopeRAII(
clang::Sema& S,
clang::Decl* ContextDecl,
clang::Qualifiers CXXThisTypeQuals,
bool Enabled = true)
Description
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'.
Declared at: clang/include/clang/Sema/Sema.h:6496
Parameters
- clang::Sema& S
- clang::Decl* ContextDecl
- clang::Qualifiers CXXThisTypeQuals
- bool Enabled = true
¶~CXXThisScopeRAII()
~CXXThisScopeRAII()
Declared at: clang/include/clang/Sema/Sema.h:6499