clang 20.0.0git
|
An allocator for DiagnosticStorage objects, which uses a small cache to objects, used to reduce malloc()/free() traffic for partial diagnostics. More...
#include "clang/Basic/Diagnostic.h"
Public Member Functions | |
DiagStorageAllocator () | |
~DiagStorageAllocator () | |
DiagnosticStorage * | Allocate () |
Allocate new storage. | |
void | Deallocate (DiagnosticStorage *S) |
Free the given storage object. | |
An allocator for DiagnosticStorage objects, which uses a small cache to objects, used to reduce malloc()/free() traffic for partial diagnostics.
Definition at line 1119 of file Diagnostic.h.
clang::StreamingDiagnostic::DiagStorageAllocator::DiagStorageAllocator | ( | ) |
clang::StreamingDiagnostic::DiagStorageAllocator::~DiagStorageAllocator | ( | ) |
|
inline |
Allocate new storage.
Definition at line 1130 of file Diagnostic.h.
References clang::Result.
Referenced by clang::StreamingDiagnostic::getStorage().
|
inline |
Free the given storage object.
Definition at line 1142 of file Diagnostic.h.
Referenced by clang::StreamingDiagnostic::freeStorageSlow().