class StreamingDiagnostic::DiagStorageAllocator
Declaration
class StreamingDiagnostic::DiagStorageAllocator { /* full declaration omitted */ };
Description
An allocator for DiagnosticStorage objects, which uses a small cache to objects, used to reduce malloc()/free() traffic for partial diagnostics.
Declared at: clang/include/clang/Basic/Diagnostic.h:1114
Member Variables
- private clang::DiagnosticStorage[16] Cached
- private clang::DiagnosticStorage* [16] FreeList
- private unsigned int NumFreeListEntries
- private static const unsigned int NumCached = 16
Method Overview
- public clang::DiagnosticStorage * Allocate()
- public void Deallocate(clang::DiagnosticStorage * S)
- public DiagStorageAllocator()
- public ~DiagStorageAllocator()
Methods
¶clang::DiagnosticStorage* Allocate()
clang::DiagnosticStorage* Allocate()
Description
Allocate new storage.
Declared at: clang/include/clang/Basic/Diagnostic.h:1125
¶void Deallocate(clang::DiagnosticStorage* S)
void Deallocate(clang::DiagnosticStorage* S)
Description
Free the given storage object.
Declared at: clang/include/clang/Basic/Diagnostic.h:1137
Parameters
¶DiagStorageAllocator()
DiagStorageAllocator()
Declared at: clang/include/clang/Basic/Diagnostic.h:1121
¶~DiagStorageAllocator()
~DiagStorageAllocator()
Declared at: clang/include/clang/Basic/Diagnostic.h:1122