clang 22.0.0git
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 3476 of file Sema.h.

Constructor & Destructor Documentation

◆ ContextRAII()

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

◆ ~ContextRAII()

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

Definition at line 3512 of file Sema.h.

References pop().

Member Function Documentation

◆ pop()


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