|
clang
5.0.0
|
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 78 of file PartialDiagnostic.h.
| PartialDiagnostic::StorageAllocator::StorageAllocator | ( | ) |
Definition at line 1040 of file Diagnostic.cpp.
References I.
| PartialDiagnostic::StorageAllocator::~StorageAllocator | ( | ) |
Definition at line 1046 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 |
1.8.6