clang  3.9.0
Public Member Functions | List of all members
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>

Public Member Functions

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

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 78 of file PartialDiagnostic.h.

Constructor & Destructor Documentation

PartialDiagnostic::StorageAllocator::StorageAllocator ( )

Definition at line 1002 of file Diagnostic.cpp.

References I.

PartialDiagnostic::StorageAllocator::~StorageAllocator ( )

Definition at line 1008 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 101 of file PartialDiagnostic.h.

References S.


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