clang API Documentation

Public Member Functions | Protected Attributes
clang::CodeGen::CodeGenFunction::RunCleanupsScope Class Reference

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

#include <CodeGenFunction.h>

Inheritance diagram for clang::CodeGen::CodeGenFunction::RunCleanupsScope:
Inheritance graph
[legend]
Collaboration diagram for clang::CodeGen::CodeGenFunction::RunCleanupsScope:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RunCleanupsScope (CodeGenFunction &CGF)
 Enter a new cleanup scope.
 ~RunCleanupsScope ()
 Exit this cleanup scope, emitting any accumulated cleanups.
bool requiresCleanups () const
 Determine whether this scope requires any cleanups.
void ForceCleanup ()
 Force the emission of cleanups now, instead of waiting until this object is destroyed.

Protected Attributes

CodeGenFunctionCGF

Detailed Description

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

Definition at line 793 of file CodeGenFunction.h.


Constructor & Destructor Documentation

clang::CodeGen::CodeGenFunction::RunCleanupsScope::RunCleanupsScope ( CodeGenFunction CGF) [inline, explicit]

Enter a new cleanup scope.

Definition at line 806 of file CodeGenFunction.h.

References clang::CodeGen::CodeGenFunction::EHStack, and clang::CodeGen::EHScopeStack::stable_begin().

clang::CodeGen::CodeGenFunction::RunCleanupsScope::~RunCleanupsScope ( ) [inline]

Exit this cleanup scope, emitting any accumulated cleanups.

Definition at line 816 of file CodeGenFunction.h.

References CGF, and clang::CodeGen::CodeGenFunction::PopCleanupBlocks().


Member Function Documentation

void clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup ( ) [inline]
bool clang::CodeGen::CodeGenFunction::RunCleanupsScope::requiresCleanups ( ) const [inline]

Member Data Documentation


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