clang 22.0.0git
|
Information for lazily generating a cleanup. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/EHScopeStack.h"
Public Member Functions | |
Cleanup (const Cleanup &)=default | |
Cleanup (Cleanup &&) | |
Cleanup ()=default | |
virtual | ~Cleanup ()=default |
virtual void | emit (CIRGenFunction &cgf)=0 |
Emit the cleanup. | |
virtual size_t | getSize () const =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 93 of file EHScopeStack.h.
|
default |
|
inline |
Definition at line 99 of file EHScopeStack.h.
References Cleanup().
|
default |
|
virtualdefault |
|
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.
References clang::CIRGen::EHScopeStack::CIRGenFunction.
|
pure virtual |