clang  14.0.0git
Public Member Functions | List of all members
clang::StreamingDiagnostic::DiagStorageAllocator Class Reference

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

#include "clang/Basic/Diagnostic.h"

Public Member Functions

 DiagStorageAllocator ()
 
 ~DiagStorageAllocator ()
 
DiagnosticStorageAllocate ()
 Allocate new storage. More...
 
void Deallocate (DiagnosticStorage *S)
 Free the given storage object. More...
 

Detailed Description

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

Definition at line 1112 of file Diagnostic.h.

Constructor & Destructor Documentation

◆ DiagStorageAllocator()

clang::StreamingDiagnostic::DiagStorageAllocator::DiagStorageAllocator ( )

◆ ~DiagStorageAllocator()

clang::StreamingDiagnostic::DiagStorageAllocator::~DiagStorageAllocator ( )

Member Function Documentation

◆ Allocate()

DiagnosticStorage* clang::StreamingDiagnostic::DiagStorageAllocator::Allocate ( )
inline

Allocate new storage.

Definition at line 1123 of file Diagnostic.h.

Referenced by clang::StreamingDiagnostic::getStorage().

◆ Deallocate()

void clang::StreamingDiagnostic::DiagStorageAllocator::Deallocate ( DiagnosticStorage S)
inline

Free the given storage object.

Definition at line 1135 of file Diagnostic.h.

Referenced by clang::StreamingDiagnostic::freeStorageSlow().


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