class Sema::ImmediateDiagBuilder

Declaration

class Sema::ImmediateDiagBuilder : public DiagnosticBuilder { /* full declaration omitted */ };

Description

Helper class that creates diagnostics with optional template instantiation stacks. This class provides a wrapper around the basic DiagnosticBuilder class that emits diagnostics. ImmediateDiagBuilder is responsible for emitting the diagnostic (as DiagnosticBuilder does) and, if the diagnostic comes from inside a template instantiation, printing the template instantiation stack as well.

Declared at: clang/include/clang/Sema/Sema.h:1662

Inherits from: DiagnosticBuilder

Member Variables

private clang::Sema& SemaRef
private unsigned int DiagID

Inherited from StreamingDiagnostic:

protected DiagStorage = nullptr
protected Allocator = nullptr

Method Overview

Inherited from DiagnosticBuilder:

Inherited from StreamingDiagnostic:

Methods

ImmediateDiagBuilder(clang::DiagnosticBuilder& DB,
                     clang::Sema& SemaRef,
                     unsigned int DiagID)

Declared at: clang/include/clang/Sema/Sema.h:1667

Parameters

clang::DiagnosticBuilder& DB
clang::Sema& SemaRef
unsigned int DiagID

ImmediateDiagBuilder(
    clang::DiagnosticBuilder&& DB,
    clang::Sema& SemaRef,
    unsigned int DiagID)

Declared at: clang/include/clang/Sema/Sema.h:1669

Parameters

clang::DiagnosticBuilder&& DB
clang::Sema& SemaRef
unsigned int DiagID

ImmediateDiagBuilder(
    const clang::Sema::ImmediateDiagBuilder&)

Declared at: clang/include/clang/Sema/Sema.h:1678

Parameters

const clang::Sema::ImmediateDiagBuilder&

~ImmediateDiagBuilder()

Declared at: clang/include/clang/Sema/Sema.h:1680