|
clang 22.0.0git
|
Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited. More...
#include "/work/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 |
| bool | oldDidCallStackSave |
| CIRGenFunction & | cgf |
Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited.
Definition at line 943 of file CIRGenFunction.h.
|
inlineexplicit |
Enter a new cleanup scope.
Definition at line 959 of file CIRGenFunction.h.
References cgf, clang::CIRGen::CIRGenFunction::CIRGenFunction(), oldDidCallStackSave, performCleanup, and true.
|
inline |
Exit this cleanup scope, emitting any accumulated cleanups.
Definition at line 969 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 976 of file CIRGenFunction.h.
References cgf, oldDidCallStackSave, and performCleanup.
Referenced by clang::CIRGen::CIRGenFunction::LexicalScope::cleanup(), clang::CIRGen::OpenACCRecipeBuilderBase::createFirstprivateRecipeCopy(), clang::CIRGen::OpenACCRecipeBuilderBase::createInitRecipe(), clang::CIRGen::OpenACCRecipeBuilderBase::createRecipeDestroySection(), clang::CIRGen::CIRGenFunction::emitDestructorBody(), clang::CIRGen::CIRGenFunction::emitReturnStmt(), and ~RunCleanupsScope().
|
protected |
Definition at line 955 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 948 of file CIRGenFunction.h.
Referenced by forceCleanup(), and RunCleanupsScope().
|
protected |
Definition at line 947 of file CIRGenFunction.h.
Referenced by clang::CIRGen::CIRGenFunction::LexicalScope::cleanup(), forceCleanup(), RunCleanupsScope(), and ~RunCleanupsScope().