clang 22.0.0git
clang::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.
void Deallocate (DiagnosticStorage *S)
 Free the given storage object.

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 192 of file Diagnostic.h.

Constructor & Destructor Documentation

◆ DiagStorageAllocator()

DiagStorageAllocator::DiagStorageAllocator ( )

Definition at line 1502 of file Diagnostic.cpp.

◆ ~DiagStorageAllocator()

DiagStorageAllocator::~DiagStorageAllocator ( )

Definition at line 1508 of file Diagnostic.cpp.

Member Function Documentation

◆ Allocate()

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

Allocate new storage.

Definition at line 203 of file Diagnostic.h.

References clang::Result.

◆ Deallocate()

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

Free the given storage object.

Definition at line 215 of file Diagnostic.h.


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