clang API Documentation

Public Member Functions
clang::PartialDiagnostic::StorageAllocator Class Reference

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>

List of all members.

Public Member Functions

 StorageAllocator ()
 ~StorageAllocator ()
StorageAllocate ()
 Allocate new storage.
void Deallocate (Storage *S)
 Free the given storage object.

Detailed Description

An allocator for Storage objects, which uses a small cache to objects, used to reduce malloc()/free() traffic for partial diagnostics.

Definition at line 79 of file PartialDiagnostic.h.


Constructor & Destructor Documentation

PartialDiagnostic::StorageAllocator::StorageAllocator ( )

Definition at line 880 of file Diagnostic.cpp.

PartialDiagnostic::StorageAllocator::~StorageAllocator ( )

Definition at line 886 of file Diagnostic.cpp.


Member Function Documentation

Storage* clang::PartialDiagnostic::StorageAllocator::Allocate ( ) [inline]
void clang::PartialDiagnostic::StorageAllocator::Deallocate ( Storage S) [inline]

Free the given storage object.

Definition at line 102 of file PartialDiagnostic.h.

References S.


The documentation for this class was generated from the following files: