clang 22.0.0git
|
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"
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 |
CIRGenFunction & | cgf |
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.
|
inlineexplicit |
Enter a new cleanup scope.
Definition at line 741 of file CIRGenFunction.h.
References cgf, clang::CIRGen::CIRGenFunction::currentCleanupStackDepth, clang::CIRGen::CIRGenFunction::ehStack, and clang::CIRGen::EHScopeStack::stable_begin().
|
inline |
Exit this cleanup scope, emitting any accumulated cleanups.
Definition at line 749 of file CIRGenFunction.h.
References forceCleanup(), and performCleanup.
|
inline |
Force the emission of cleanups now, instead of waiting until this object is destroyed.
Definition at line 756 of file CIRGenFunction.h.
References cgf, clang::CIRGen::CIRGenFunction::currentCleanupStackDepth, clang::CIRGen::CIRGenFunction::getBuilder(), performCleanup, and clang::CIRGen::CIRGenFunction::popCleanupBlocks().
Referenced by clang::CIRGen::CIRGenFunction::LexicalScope::cleanup(), and ~RunCleanupsScope().
|
protected |
Definition at line 737 of file CIRGenFunction.h.
Referenced by clang::CIRGen::CIRGenFunction::LexicalScope::cleanup(), clang::CIRGen::CIRGenFunction::LexicalScope::createCleanupBlock(), forceCleanup(), clang::CIRGen::CIRGenFunction::LexicalScope::getOrCreateRetBlock(), clang::CIRGen::CIRGenFunction::LexicalScope::LexicalScope(), clang::CIRGen::CIRGenFunction::LexicalScope::restore(), and RunCleanupsScope().
|
protected |
Definition at line 730 of file CIRGenFunction.h.
Referenced by clang::CIRGen::CIRGenFunction::LexicalScope::cleanup(), forceCleanup(), and ~RunCleanupsScope().