[#llvm-CrashRecoveryContextCleanup] = xref:llvm.adoc[llvm]::CrashRecoveryContextCleanup :relfileprefix: ../ :mrdocs: Abstract base class of cleanup handlers. == Synopsis Declared in `<llvm/Support/CrashRecoveryContext.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class CrashRecoveryContextCleanup; ---- == Description Derived classes override method recoverResources, which makes actual work on resource recovery. Cleanup handlers are stored in a double list, which is owned and managed by a crash recovery context. == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/CrashRecoveryContextCleanup/2destructor.adoc[`~CrashRecoveryContextCleanup`] [.small]#[destructor]# [.small]#[virtual]# | Destroy the cleanup handler. | xref:llvm/CrashRecoveryContextCleanup/getContext.adoc[`getContext`] | Return the crash recovery context that owns this handler. | xref:llvm/CrashRecoveryContextCleanup/recoverResources.adoc[`recoverResources`] [.small]#[virtual]# | Reclaim the resource associated with this cleanup handler. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/CrashRecoveryContextCleanup/cleanupFired.adoc[`cleanupFired`] | Whether this cleanup has already been run. |=== == Protected Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/CrashRecoveryContextCleanup/2constructor.adoc[`CrashRecoveryContextCleanup`] [.small]#[constructor]# | Construct a cleanup handler bound to `context.` |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/CrashRecoveryContextCleanup/context.adoc[`context`] | The crash recovery context that owns this cleanup handler. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:llvm/CrashRecoveryContext.adoc[llvm::CrashRecoveryContext]` | Crash recovery helper object. |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:llvm/CrashRecoveryContextCleanupBase.adoc[`CrashRecoveryContextCleanupBase`] | Base class of cleanup handler that controls recovery of resources of the given type. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#