clang
7.0.0
|
Information for lazily generating a cleanup. More...
#include "/work/llvm-www-releases/7.0.0/docsbuild/llvm.src/tools/clang/lib/CodeGen/EHScopeStack.h"
Classes | |
class | Flags |
Generation flags. More... | |
Public Member Functions | |
Cleanup (const Cleanup &)=default | |
Cleanup (Cleanup &&) | |
Cleanup ()=default | |
virtual void | Emit (CodeGenFunction &CGF, Flags flags)=0 |
Emit the cleanup. More... | |
Protected Member Functions | |
~Cleanup ()=default | |
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 147 of file EHScopeStack.h.
|
protecteddefault |
|
default |
|
inline |
Definition at line 156 of file EHScopeStack.h.
|
default |
|
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.
Implemented in CleanupTy, clang::CodeGen::CatchRetScope, and clang::CodeGen::CodeGenFunction::CallLifetimeEnd.
Referenced by EmitCleanup().