clang 22.0.0git
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
bool oldDidCallStackSave
CIRGenFunctioncgf

Detailed Description

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

Definition at line 880 of file CIRGenFunction.h.

Constructor & Destructor Documentation

◆ RunCleanupsScope()

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

Enter a new cleanup scope.

Definition at line 896 of file CIRGenFunction.h.

References cgf, clang::CIRGen::CIRGenFunction::CIRGenFunction(), oldDidCallStackSave, performCleanup, and true.

◆ ~RunCleanupsScope()

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

Exit this cleanup scope, emitting any accumulated cleanups.

Definition at line 906 of file CIRGenFunction.h.

References forceCleanup(), and performCleanup.

Member Function Documentation

◆ forceCleanup()

Member Data Documentation

◆ cgf

◆ oldDidCallStackSave

bool clang::CIRGen::CIRGenFunction::RunCleanupsScope::oldDidCallStackSave
protected

Definition at line 885 of file CIRGenFunction.h.

Referenced by forceCleanup(), and RunCleanupsScope().

◆ performCleanup

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

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