clang
19.0.0git
|
A class which encapsulates the logic for delaying diagnostics during parsing and other processing. More...
#include "clang/Sema/Sema.h"
Public Member Functions | |
DelayedDiagnostics ()=default | |
void | add (const sema::DelayedDiagnostic &diag) |
Adds a delayed diagnostic. More... | |
bool | shouldDelayDiagnostics () |
Determines whether diagnostics should be delayed. More... | |
sema::DelayedDiagnosticPool * | getCurrentPool () const |
Returns the current delayed-diagnostics pool. More... | |
DelayedDiagnosticsState | push (sema::DelayedDiagnosticPool &pool) |
Enter a new scope. More... | |
void | popWithoutEmitting (DelayedDiagnosticsState state) |
Leave a delayed-diagnostic state that was previously pushed. More... | |
DelayedDiagnosticsState | pushUndelayed () |
Enter a new scope where access and deprecation diagnostics are not delayed. More... | |
void | popUndelayed (DelayedDiagnosticsState state) |
Undo a previous pushUndelayed(). More... | |
A class which encapsulates the logic for delaying diagnostics during parsing and other processing.
|
default |
|
inline |
Adds a delayed diagnostic.
Add a diagnostic to the current delay pool.
Definition at line 327 of file DelayedDiagnostic.h.
References clang::sema::DelayedDiagnosticPool::add(), and shouldDelayDiagnostics().
|
inline |
Returns the current delayed-diagnostics pool.
Definition at line 951 of file Sema.h.
Referenced by clang::Sema::ActOnEndOfTranslationUnit().
|
inline |
Undo a previous pushUndelayed().
Definition at line 979 of file Sema.h.
Referenced by clang::Sema::PopParsingClass().
|
inline |
|
inline |
Enter a new scope.
Access and deprecation diagnostics will be collected in this pool.
Definition at line 955 of file Sema.h.
Referenced by clang::Sema::PushParsingDeclaration().
|
inline |
Enter a new scope where access and deprecation diagnostics are not delayed.
Definition at line 971 of file Sema.h.
Referenced by clang::Sema::PushParsingClass().
|
inline |