clang API Documentation
A RAII object to temporarily push a declaration context. More...
#include <Sema.h>
Public Member Functions | |
ContextRAII (Sema &S, DeclContext *ContextToPush, bool NewThisContext=true) | |
void | pop () |
~ContextRAII () |
clang::Sema::ContextRAII::ContextRAII | ( | Sema & | S, |
DeclContext * | ContextToPush, | ||
bool | NewThisContext = true |
||
) | [inline] |
Definition at line 568 of file Sema.h.
References clang::Sema::CurContext, and clang::Sema::CXXThisTypeOverride.
clang::Sema::ContextRAII::~ContextRAII | ( | ) | [inline] |
void clang::Sema::ContextRAII::pop | ( | ) | [inline] |
Definition at line 579 of file Sema.h.
References clang::Sema::CurContext, clang::Sema::CXXThisTypeOverride, clang::Sema::DelayedDiagnostics, and clang::Sema::DelayedDiagnostics::popUndelayed().
Referenced by clang::Sema::InstantiateClass(), clang::Sema::InstantiateEnum(), clang::Sema::InstantiateFunctionDefinition(), and ~ContextRAII().