clang API Documentation
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. | |
void | Deallocate (Storage *S) |
Free the given storage object. |
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.
Definition at line 976 of file Diagnostic.cpp.
Definition at line 982 of file Diagnostic.cpp.
Storage* clang::PartialDiagnostic::StorageAllocator::Allocate | ( | ) | [inline] |
Allocate new storage.
Definition at line 89 of file PartialDiagnostic.h.
References clang::PartialDiagnostic::Storage::DiagRanges, clang::PartialDiagnostic::Storage::FixItHints, and clang::PartialDiagnostic::Storage::NumDiagArgs.
void clang::PartialDiagnostic::StorageAllocator::Deallocate | ( | Storage * | S | ) | [inline] |