clang
3.9.0
|
An allocator for Storage objects, which uses a small cache to objects, used to reduce malloc()/free() traffic for partial diagnostics. More...
#include <PartialDiagnostic.h>
Public Member Functions | |
StorageAllocator () | |
~StorageAllocator () | |
Storage * | Allocate () |
Allocate new storage. More... | |
void | Deallocate (Storage *S) |
Free the given storage object. More... | |
An allocator for Storage objects, which uses a small cache to objects, used to reduce malloc()/free() traffic for partial diagnostics.
Definition at line 78 of file PartialDiagnostic.h.
PartialDiagnostic::StorageAllocator::StorageAllocator | ( | ) |
Definition at line 1002 of file Diagnostic.cpp.
References I.
PartialDiagnostic::StorageAllocator::~StorageAllocator | ( | ) |
Definition at line 1008 of file Diagnostic.cpp.
|
inline |
Allocate new storage.
Definition at line 89 of file PartialDiagnostic.h.
References clang::PartialDiagnostic::Storage::DiagRanges, clang::PartialDiagnostic::Storage::FixItHints, clang::PartialDiagnostic::Storage::NumDiagArgs, and clang::Result.
|
inline |