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
- public DelayedDiagnostics()
- public void add(const sema::DelayedDiagnostic & diag)
- public sema::DelayedDiagnosticPool * getCurrentPool() const
- public void popUndelayed(clang::Sema::DelayedDiagnosticsState state)
- public void popWithoutEmitting(clang::Sema::DelayedDiagnosticsState state)
- public clang::Sema::DelayedDiagnosticsState push(sema::DelayedDiagnosticPool & pool)
- public clang::Sema::DelayedDiagnosticsState pushUndelayed()
- public bool shouldDelayDiagnostics()
Methods
¶DelayedDiagnostics()
DelayedDiagnostics()
Declared at: clang/include/clang/Sema/Sema.h:945
¶void add(const sema::DelayedDiagnostic& diag)
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
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)
void popUndelayed(
clang::Sema::DelayedDiagnosticsState state)
Description
Undo a previous pushUndelayed().
Declared at: clang/include/clang/Sema/Sema.h:984
Parameters
¶void popWithoutEmitting(
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 push(
sema::DelayedDiagnosticPool& pool)
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
¶clang::Sema::DelayedDiagnosticsState
pushUndelayed()
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()
bool shouldDelayDiagnostics()
Description
Determines whether diagnostics should be delayed.
Declared at: clang/include/clang/Sema/Sema.h:951