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

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

#include "clang/Sema/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 2671 of file Sema.h.

Constructor & Destructor Documentation

◆ ContextRAII()

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

Definition at line 2681 of file Sema.h.

◆ ~ContextRAII()

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

Definition at line 2707 of file Sema.h.

Member Function Documentation

◆ pop()

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

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