clang API Documentation

Public Member Functions
clang::Sema::ContextRAII Class Reference

A RAII object to temporarily push a declaration context. More...

#include <Sema.h>

List of all members.

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


Constructor & Destructor Documentation

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.

Definition at line 587 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: