clang  3.9.0
Public Member Functions | List of all members
clang::Sema::ContextRAII Class Reference

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 ()
 

Detailed Description

A RAII object to temporarily push a declaration context.

Definition at line 634 of file Sema.h.

Constructor & Destructor Documentation

clang::Sema::ContextRAII::ContextRAII ( Sema S,
DeclContext ContextToPush,
bool  NewThisContext = true 
)
inline

Definition at line 642 of file Sema.h.

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

clang::Sema::ContextRAII::~ContextRAII ( )
inline

Definition at line 661 of file Sema.h.

References pop().

Member Function Documentation

void clang::Sema::ContextRAII::pop ( )
inline

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