clang API Documentation

Public Member Functions
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 <Sema.h>

List of all members.

Public Member Functions

 CXXThisScopeRAII (Sema &S, Decl *ContextDecl, unsigned 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'.
 ~CXXThisScopeRAII ()

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 4355 of file Sema.h.


Constructor & Destructor Documentation

Sema::CXXThisScopeRAII::CXXThisScopeRAII ( Sema S,
Decl ContextDecl,
unsigned  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 760 of file SemaExprCXX.cpp.

References clang::Sema::Context, clang::Sema::CXXThisTypeOverride, clang::ASTContext::getPointerType(), clang::ASTContext::getRecordType(), Record, and clang::QualType::withCVRQualifiers().

Definition at line 783 of file SemaExprCXX.cpp.

References clang::Sema::CXXThisTypeOverride, and S.


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