clang API Documentation
#include <EHScopeStack.h>
Classes | |
class | Flags |
Generation flags. More... | |
Public Member Functions | |
virtual | ~Cleanup () |
virtual void | Emit (CodeGenFunction &CGF, Flags flags)=0 |
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.
virtual clang::CodeGen::EHScopeStack::Cleanup::~Cleanup | ( | ) | [inline, virtual] |
Definition at line 167 of file EHScopeStack.h.
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().