clang  3.9.0
Public Member Functions | Protected Attributes | List of all members
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:
[legend]
Collaboration diagram for clang::CodeGen::CodeGenFunction::RunCleanupsScope:
[legend]

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
 
CodeGenFunctionCGF
 

Detailed Description

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

Definition at line 482 of file CodeGenFunction.h.

Constructor & Destructor Documentation

clang::CodeGen::CodeGenFunction::RunCleanupsScope::RunCleanupsScope ( CodeGenFunction CGF)
inlineexplicit
clang::CodeGen::CodeGenFunction::RunCleanupsScope::~RunCleanupsScope ( )
inline

Exit this cleanup scope, emitting any accumulated cleanups.

Definition at line 510 of file CodeGenFunction.h.

References CGF, PerformCleanup, 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

CodeGenFunction& clang::CodeGen::CodeGenFunction::RunCleanupsScope::CGF
protected
bool clang::CodeGen::CodeGenFunction::RunCleanupsScope::PerformCleanup
protected

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