class StreamingDiagnostic::DiagStorageAllocator

Declaration

class StreamingDiagnostic::DiagStorageAllocator { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/Basic/Diagnostic.h:1114

Member Variables

private clang::DiagnosticStorage[16] Cached
private clang::DiagnosticStorage* [16] FreeList
private unsigned int NumFreeListEntries
private static const unsigned int NumCached = 16

Method Overview

Methods

clang::DiagnosticStorage* Allocate()

Description

Allocate new storage.

Declared at: clang/include/clang/Basic/Diagnostic.h:1125

void Deallocate(clang::DiagnosticStorage* S)

Description

Free the given storage object.

Declared at: clang/include/clang/Basic/Diagnostic.h:1137

Parameters

clang::DiagnosticStorage* S

DiagStorageAllocator()

Declared at: clang/include/clang/Basic/Diagnostic.h:1121

~DiagStorageAllocator()

Declared at: clang/include/clang/Basic/Diagnostic.h:1122