clang  3.7.0
Classes | Public Member Functions | List of all members
clang::CodeGen::EHScopeStack::Cleanup Class Referenceabstract

#include <EHScopeStack.h>

Inheritance diagram for clang::CodeGen::EHScopeStack::Cleanup:
[legend]

Classes

class  Flags
 Generation flags. More...
 

Public Member Functions

virtual ~Cleanup ()
 
virtual void Emit (CodeGenFunction &CGF, Flags flags)=0
 

Detailed Description

Information for lazily generating a cleanup. Subclasses must be POD-like: cleanups will not be destructed, and they will be allocated on the cleanup stack and freely copied and moved around.

Cleanup implementations should generally be declared in an anonymous namespace.

Definition at line 141 of file EHScopeStack.h.

Constructor & Destructor Documentation

virtual clang::CodeGen::EHScopeStack::Cleanup::~Cleanup ( )
inlinevirtual

Definition at line 174 of file EHScopeStack.h.

Member Function Documentation

virtual void clang::CodeGen::EHScopeStack::Cleanup::Emit ( CodeGenFunction CGF,
Flags  flags 
)
pure virtual

Emit the cleanup. For normal cleanups, this is run in the same EH context as when the cleanup was pushed, i.e. the immediately-enclosing context of the cleanup scope. For EH cleanups, this is run in a terminate context.

Referenced by EmitCleanup().


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