| 
    MLIR 22.0.0git
    
   | 
 
This class represents a diagnostic that is inflight and set to be reported. More...
#include "mlir/IR/Diagnostics.h"
Public Member Functions | |
| InFlightDiagnostic ()=default | |
| InFlightDiagnostic (InFlightDiagnostic &&rhs) | |
| ~InFlightDiagnostic () | |
| template<typename Arg> | |
| InFlightDiagnostic & | operator<< (Arg &&arg) & | 
| Stream operator for new diagnostic arguments.   | |
| template<typename Arg> | |
| InFlightDiagnostic && | operator<< (Arg &&arg) && | 
| template<typename... Args> | |
| InFlightDiagnostic & | append (Args &&...args) & | 
| Append arguments to the diagnostic.   | |
| template<typename... Args> | |
| InFlightDiagnostic && | append (Args &&...args) && | 
| Diagnostic & | attachNote (std::optional< Location > noteLoc=std::nullopt) | 
| Attaches a note to this diagnostic.   | |
| Diagnostic * | getUnderlyingDiagnostic () | 
| Returns the underlying diagnostic or nullptr if this diagnostic isn't active.   | |
| void | report () | 
| Reports the diagnostic to the engine.   | |
| void | abandon () | 
| Abandons this diagnostic so that it will no longer be reported.   | |
| operator LogicalResult () const | |
| Allow an inflight diagnostic to be converted to 'failure', otherwise 'success' if this is an empty diagnostic.   | |
| operator ParseResult () const | |
| Allow an inflight diagnostic to be converted to 'failure', otherwise 'success' if this is an empty diagnostic.   | |
| template<typename T> | |
| operator FailureOr< T > () const | |
| Allow an inflight diagnostic to be converted to FailureOr<T>.   | |
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 316 of file Diagnostics.h.
      
  | 
  default | 
Referenced by append(), append(), InFlightDiagnostic(), operator<<(), and operator<<().
      
  | 
  inline | 
Definition at line 319 of file Diagnostics.h.
References InFlightDiagnostic(), and rhs.
      
  | 
  inline | 
Definition at line 325 of file Diagnostics.h.
References report().
| void InFlightDiagnostic::abandon | ( | ) | 
Abandons this diagnostic so that it will no longer be reported.
Abandons this diagnostic.
Definition at line 221 of file Diagnostics.cpp.
      
  | 
  inline | 
Append arguments to the diagnostic.
Definition at line 342 of file Diagnostics.h.
References InFlightDiagnostic().
Referenced by append(), mlir::emitOptionalError(), mlir::emitOptionalRemark(), mlir::emitOptionalWarning(), operator<<(), operator<<(), and mlir::detail::verifySymbolTable().
      
  | 
  inline | 
Definition at line 349 of file Diagnostics.h.
References append(), and InFlightDiagnostic().
      
  | 
  inline | 
Attaches a note to this diagnostic.
Definition at line 354 of file Diagnostics.h.
Referenced by mlir::detail::Parser::parseFloatFromIntegerLiteral(), mlir::OpTrait::SingleBlockImplicitTerminator< TerminatorOpType >::Impl< ConcreteType >::verifyRegionTrait(), and mlir::detail::verifySymbolTable().
      
  | 
  inline | 
Returns the underlying diagnostic or nullptr if this diagnostic isn't active.
Definition at line 361 of file Diagnostics.h.
      
  | 
  inline | 
Allow an inflight diagnostic to be converted to FailureOr<T>.
Always results in 'failure' because this cast cannot possibly return an object of 'T'.
Definition at line 381 of file Diagnostics.h.
| InFlightDiagnostic::operator LogicalResult | ( | ) | const | 
Allow an inflight diagnostic to be converted to 'failure', otherwise 'success' if this is an empty diagnostic.
Definition at line 205 of file Diagnostics.cpp.
      
  | 
  inline | 
Allow an inflight diagnostic to be converted to 'failure', otherwise 'success' if this is an empty diagnostic.
Definition at line 375 of file Diagnostics.h.
      
  | 
  inline | 
Stream operator for new diagnostic arguments.
Definition at line 332 of file Diagnostics.h.
References append(), and InFlightDiagnostic().
      
  | 
  inline | 
Definition at line 336 of file Diagnostics.h.
References append(), and InFlightDiagnostic().
| void InFlightDiagnostic::report | ( | ) | 
Reports the diagnostic to the engine.
Definition at line 210 of file Diagnostics.cpp.
Referenced by ~InFlightDiagnostic().