clang 22.0.0git
Public Member Functions | Protected Attributes | List of all members
clang::CIRGen::CIRGenFunction::RunCleanupsScope Class Reference

Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenFunction.h"

Inheritance diagram for clang::CIRGen::CIRGenFunction::RunCleanupsScope:
[legend]

Public Member Functions

 RunCleanupsScope (CIRGenFunction &cgf)
 Enter a new cleanup scope.
 
 ~RunCleanupsScope ()
 Exit this cleanup scope, emitting any accumulated cleanups.
 
void forceCleanup ()
 Force the emission of cleanups now, instead of waiting until this object is destroyed.
 

Protected Attributes

bool performCleanup
 
CIRGenFunctioncgf
 

Detailed Description

Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited.

Definition at line 726 of file CIRGenFunction.h.

Constructor & Destructor Documentation

◆ RunCleanupsScope()

clang::CIRGen::CIRGenFunction::RunCleanupsScope::RunCleanupsScope ( CIRGenFunction cgf)
inlineexplicit

◆ ~RunCleanupsScope()

clang::CIRGen::CIRGenFunction::RunCleanupsScope::~RunCleanupsScope ( )
inline

Exit this cleanup scope, emitting any accumulated cleanups.

Definition at line 749 of file CIRGenFunction.h.

References forceCleanup(), and performCleanup.

Member Function Documentation

◆ forceCleanup()

void clang::CIRGen::CIRGenFunction::RunCleanupsScope::forceCleanup ( )
inline

Member Data Documentation

◆ cgf

CIRGenFunction& clang::CIRGen::CIRGenFunction::RunCleanupsScope::cgf
protected

◆ performCleanup

bool clang::CIRGen::CIRGenFunction::RunCleanupsScope::performCleanup
protected

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