clang API Documentation

Public Member Functions
clang::PartialDiagnosticStorageAllocator 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

 PartialDiagnosticStorageAllocator ()
 ~PartialDiagnosticStorageAllocator ()
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 69 of file PartialDiagnostic.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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

Free the given storage object.

Definition at line 93 of file PartialDiagnostic.h.

References S.


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