clang  6.0.0svn
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 "clang/Basic/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

◆ StorageAllocator()

PartialDiagnostic::StorageAllocator::StorageAllocator ( )

Definition at line 1041 of file Diagnostic.cpp.

◆ ~StorageAllocator()

PartialDiagnostic::StorageAllocator::~StorageAllocator ( )

Definition at line 1047 of file Diagnostic.cpp.

References clang::DiagnosticError::ID.

Member Function Documentation

◆ Allocate()

Storage* clang::PartialDiagnostic::StorageAllocator::Allocate ( )
inline

◆ Deallocate()

void clang::PartialDiagnostic::StorageAllocator::Deallocate ( Storage S)
inline

Free the given storage object.

Definition at line 101 of file PartialDiagnostic.h.


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