class Sema::DelayedDiagnostics

Declaration

class Sema::DelayedDiagnostics { /* full declaration omitted */ };

Description

A class which encapsulates the logic for delaying diagnostics during parsing and other processing.

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

Member Variables

private sema::DelayedDiagnosticPool* CurPool
The current pool of diagnostics into which delayed diagnostics should go.

Method Overview

Methods

DelayedDiagnostics()

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

void add(const sema::DelayedDiagnostic& diag)

Description

Adds a delayed diagnostic.

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

Parameters

const sema::DelayedDiagnostic& diag

sema::DelayedDiagnosticPool* getCurrentPool()
    const

Description

Returns the current delayed-diagnostics pool.

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

void popUndelayed(
    clang::Sema::DelayedDiagnosticsState state)

Description

Undo a previous pushUndelayed().

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

Parameters

clang::Sema::DelayedDiagnosticsState state

void popWithoutEmitting(
    clang::Sema::DelayedDiagnosticsState state)

Description

Leave a delayed-diagnostic state that was previously pushed. Do not emit any of the diagnostics. This is performed as part of the bookkeeping of popping a pool "properly".

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

Parameters

clang::Sema::DelayedDiagnosticsState state

clang::Sema::DelayedDiagnosticsState push(
    sema::DelayedDiagnosticPool& pool)

Description

Enter a new scope. Access and deprecation diagnostics will be collected in this pool.

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

Parameters

sema::DelayedDiagnosticPool& pool

clang::Sema::DelayedDiagnosticsState
pushUndelayed()

Description

Enter a new scope where access and deprecation diagnostics are not delayed.

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

bool shouldDelayDiagnostics()

Description

Determines whether diagnostics should be delayed.

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