clang
3.7.0
|
Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited. More...
#include <CodeGenFunction.h>
Public Member Functions | |
RunCleanupsScope (CodeGenFunction &CGF) | |
Enter a new cleanup scope. More... | |
~RunCleanupsScope () | |
Exit this cleanup scope, emitting any accumulated cleanups. More... | |
bool | requiresCleanups () const |
Determine whether this scope requires any cleanups. More... | |
void | ForceCleanup () |
Force the emission of cleanups now, instead of waiting until this object is destroyed. More... | |
Protected Attributes | |
bool | PerformCleanup |
CodeGenFunction & | CGF |
Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited.
Definition at line 457 of file CodeGenFunction.h.
|
inlineexplicit |
Enter a new cleanup scope.
Definition at line 473 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::EHStack, clang::CodeGen::CodeGenFunction::LifetimeExtendedCleanupStack, and clang::CodeGen::EHScopeStack::stable_begin().
|
inline |
Exit this cleanup scope, emitting any accumulated cleanups.
Definition at line 485 of file CodeGenFunction.h.
References CGF, PerformCleanup, and clang::CodeGen::CodeGenFunction::PopCleanupBlocks().
|
inline |
Force the emission of cleanups now, instead of waiting until this object is destroyed.
Definition at line 500 of file CodeGenFunction.h.
References CGF, PerformCleanup, and clang::CodeGen::CodeGenFunction::PopCleanupBlocks().
Referenced by clang::CodeGen::CodeGenFunction::EmitConstructorBody(), clang::CodeGen::CodeGenFunction::EmitDestructorBody(), clang::CodeGen::CodeGenFunction::EmitObjCForCollectionStmt(), clang::CodeGen::CodeGenFunction::EmitReturnStmt(), clang::CodeGen::CodeGenFunction::EmitSwitchStmt(), clang::CodeGen::CodeGenFunction::EmitWhileStmt(), clang::CodeGen::CodeGenFunction::ExitCXXTryStmt(), clang::CodeGen::CodeGenFunction::LexicalScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::GenerateCXXGlobalInitFunc(), and clang::CodeGen::CodeGenFunction::GenerateDestroyHelperFunction().
|
inline |
Determine whether this scope requires any cleanups.
Definition at line 494 of file CodeGenFunction.h.
References CGF, clang::CodeGen::CodeGenFunction::EHStack, and clang::CodeGen::EHScopeStack::stable_begin().
Referenced by emitCXXDestructMethod(), clang::CodeGen::CodeGenFunction::EmitOMPSimdDirective(), clang::CodeGen::CodeGenFunction::EmitSwitchStmt(), and clang::CodeGen::CodeGenFunction::EmitWhileStmt().
|
protected |
Definition at line 469 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), ForceCleanup(), clang::CodeGen::CodeGenFunction::LexicalScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), requiresCleanups(), clang::CodeGen::CodeGenFunction::LexicalScope::rescopeLabels(), clang::CodeGen::CodeGenFunction::LexicalScope::~LexicalScope(), and ~RunCleanupsScope().
|
protected |
Definition at line 462 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::LexicalScope::addLabel(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), ForceCleanup(), clang::CodeGen::CodeGenFunction::LexicalScope::~LexicalScope(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::~OMPPrivateScope(), and ~RunCleanupsScope().