clang
10.0.0git
|
An allocator for Storage objects, which uses a small cache to objects, used to reduce malloc()/free() traffic for partial diagnostics. More...
#include "clang/Basic/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 84 of file PartialDiagnostic.h.
PartialDiagnostic::StorageAllocator::StorageAllocator | ( | ) |
Definition at line 1137 of file Diagnostic.cpp.
PartialDiagnostic::StorageAllocator::~StorageAllocator | ( | ) |
Definition at line 1143 of file Diagnostic.cpp.
References clang::DiagnosticError::ID.
|
inline |
Allocate new storage.
Definition at line 95 of file PartialDiagnostic.h.
References clang::PartialDiagnostic::Storage::DiagRanges, clang::PartialDiagnostic::Storage::FixItHints, clang::PartialDiagnostic::Storage::NumDiagArgs, clang::Result, and clang::PartialDiagnostic::Storage::Storage().
|
inline |
Free the given storage object.
Definition at line 107 of file PartialDiagnostic.h.