|
MLIR
22.0.0git
|
This class represents a diagnostic that is inflight and set to be reported. More...
#include "mlir/Tools/PDLL/AST/Diagnostic.h"
Public Member Functions | |
| InFlightDiagnostic ()=default | |
| InFlightDiagnostic (InFlightDiagnostic &&rhs) | |
| ~InFlightDiagnostic () | |
| Diagnostic & | operator* () |
| Access the internal diagnostic. More... | |
| Diagnostic * | operator-> () |
| void | report () |
| Reports the diagnostic to the engine. More... | |
| void | abandon () |
| Abandons this diagnostic so that it will no longer be reported. More... | |
| operator LogicalResult () const | |
| Allow an inflight diagnostic to be converted to 'failure', otherwise 'success' if this is an empty diagnostic. More... | |
This class represents a diagnostic that is inflight and set to be reported.
This allows for last minute modifications of the diagnostic before it is emitted by a DiagnosticEngine.
Definition at line 83 of file Diagnostic.h.
|
default |
|
inline |
Definition at line 86 of file Diagnostic.h.
|
inline |
Definition at line 92 of file Diagnostic.h.
References report().
|
inline |
Abandons this diagnostic so that it will no longer be reported.
Definition at line 105 of file Diagnostic.h.
|
inline |
Allow an inflight diagnostic to be converted to 'failure', otherwise 'success' if this is an empty diagnostic.
Definition at line 109 of file Diagnostic.h.
|
inline |
Access the internal diagnostic.
Definition at line 98 of file Diagnostic.h.
|
inline |
Definition at line 99 of file Diagnostic.h.
| void mlir::pdll::ast::InFlightDiagnostic::report | ( | ) |
Reports the diagnostic to the engine.
Referenced by ~InFlightDiagnostic().