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 ()
 ContextRAII (const ContextRAII &)=delete
ContextRAIIoperator= (const ContextRAII &)=delete

Detailed Description

A RAII object to temporarily push a declaration context.

Definition at line 3472 of file Sema.h.

Constructor & Destructor Documentation

◆ ContextRAII() [1/2]

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

◆ ~ContextRAII()

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

Definition at line 3508 of file Sema.h.

References pop().

◆ ContextRAII() [2/2]

clang::Sema::ContextRAII::ContextRAII ( const ContextRAII & )
delete

References ContextRAII().

Member Function Documentation

◆ operator=()

ContextRAII & clang::Sema::ContextRAII::operator= ( const ContextRAII & )
delete

References ContextRAII().

◆ pop()


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