clang API Documentation

Classes | Public Member Functions
clang::CodeGen::EHScopeStack::Cleanup Class Reference

#include <EHScopeStack.h>

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

List of all members.

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 134 of file EHScopeStack.h.


Constructor & Destructor Documentation

virtual clang::CodeGen::EHScopeStack::Cleanup::~Cleanup ( ) [inline, virtual]

Definition at line 167 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: