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 | |
| PartialDiagnosticStorageAllocator () | |
| ~PartialDiagnosticStorageAllocator () | |
| 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 69 of file PartialDiagnostic.h.
| PartialDiagnosticStorageAllocator::PartialDiagnosticStorageAllocator | ( | ) |
Definition at line 845 of file Diagnostic.cpp.
| PartialDiagnosticStorageAllocator::~PartialDiagnosticStorageAllocator | ( | ) |
Definition at line 851 of file Diagnostic.cpp.
Referenced by clang::ASTContext::~ASTContext().
| Storage* clang::PartialDiagnosticStorageAllocator::Allocate | ( | ) | [inline] |
Allocate new storage.
Definition at line 81 of file PartialDiagnostic.h.
References clang::PartialDiagnosticStorage::FixItHints, clang::PartialDiagnosticStorage::NumDiagArgs, and clang::PartialDiagnosticStorage::NumDiagRanges.
| void clang::PartialDiagnosticStorageAllocator::Deallocate | ( | Storage * | S | ) | [inline] |