Intentionally leak a pointer so leak detectors do not report it.
Synopses
Declared in <llvm/Support/BuryPointer.h>
Intentionally leak a pointer so leak detectors do not report it.
void
BuryPointer(void const* Ptr);
Intentionally leak a pointer so leak detectors do not report it.
template<typename T>
void
BuryPointer(std::unique_ptr<T> Ptr);
Template Parameters
Name |
Description |
T |
Pointee type of the unique pointer. |
Parameters
Name |
Description |
Ptr |
Pointer to keep alive until process exit. |
Created with MrDocs