clang 20.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. | |
bool | shouldDelayDiagnostics () |
Determines whether diagnostics should be delayed. | |
sema::DelayedDiagnosticPool * | getCurrentPool () const |
Returns the current delayed-diagnostics pool. | |
DelayedDiagnosticsState | push (sema::DelayedDiagnosticPool &pool) |
Enter a new scope. | |
void | popWithoutEmitting (DelayedDiagnosticsState state) |
Leave a delayed-diagnostic state that was previously pushed. | |
DelayedDiagnosticsState | pushUndelayed () |
Enter a new scope where access and deprecation diagnostics are not delayed. | |
void | popUndelayed (DelayedDiagnosticsState state) |
Undo a previous pushUndelayed(). | |
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().
Referenced by clang::SemaObjC::AdjustParameterTypeForObjCAutoRefCount(), CheckAccess(), clang::Sema::CheckParameter(), EmitAvailabilityWarning(), handleObjCOwnershipTypeAttr(), and inferARCLifetimeForPointee().
|
inline |
Returns the current delayed-diagnostics pool.
Definition at line 1053 of file Sema.h.
Referenced by clang::Sema::ActOnEndOfTranslationUnit(), clang::Sema::PopParsingDeclaration(), and clang::Sema::redelayDiagnostics().
|
inline |
Undo a previous pushUndelayed().
Definition at line 1081 of file Sema.h.
Referenced by clang::Sema::PopParsingClass().
|
inline |
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".
Definition at line 1067 of file Sema.h.
Referenced by clang::Sema::PopParsingDeclaration().
|
inline |
Enter a new scope.
Access and deprecation diagnostics will be collected in this pool.
Definition at line 1057 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 1073 of file Sema.h.
Referenced by clang::Sema::PushParsingClass().
|
inline |
Determines whether diagnostics should be delayed.
Definition at line 1050 of file Sema.h.
Referenced by add(), clang::SemaObjC::AdjustParameterTypeForObjCAutoRefCount(), CheckAccess(), clang::Sema::CheckParameter(), EmitAvailabilityWarning(), handleObjCOwnershipTypeAttr(), and inferARCLifetimeForPointee().