My Project
Public Member Functions | List of all members
mlir::InFlightDiagnostic Class Reference

#include <Diagnostics.h>

Public Member Functions

 InFlightDiagnostic ()=default
 
 InFlightDiagnostic (InFlightDiagnostic &&rhs)
 
 ~InFlightDiagnostic ()
 
template<typename Arg >
InFlightDiagnosticoperator<< (Arg &&arg) &
 Stream operator for new diagnostic arguments. More...
 
template<typename Arg >
InFlightDiagnostic && operator<< (Arg &&arg) &&
 
template<typename... Args>
InFlightDiagnosticappend (Args &&... args) &
 Append arguments to the diagnostic. More...
 
template<typename... Args>
InFlightDiagnostic && append (Args &&... args) &&
 
DiagnosticattachNote (Optional< Location > noteLoc=llvm::None)
 Attaches a note to this diagnostic. More...
 
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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ InFlightDiagnostic() [1/2]

mlir::InFlightDiagnostic::InFlightDiagnostic ( )
default

◆ InFlightDiagnostic() [2/2]

mlir::InFlightDiagnostic::InFlightDiagnostic ( InFlightDiagnostic &&  rhs)
inline

◆ ~InFlightDiagnostic()

mlir::InFlightDiagnostic::~InFlightDiagnostic ( )
inline

Member Function Documentation

◆ abandon()

void InFlightDiagnostic::abandon ( )

Abandons this diagnostic so that it will no longer be reported.

Abandons this diagnostic.

◆ append() [1/2]

template<typename... Args>
InFlightDiagnostic& mlir::InFlightDiagnostic::append ( Args &&...  args) &
inline

Append arguments to the diagnostic.

◆ append() [2/2]

template<typename... Args>
InFlightDiagnostic&& mlir::InFlightDiagnostic::append ( Args &&...  args) &&
inline

◆ attachNote()

Diagnostic& mlir::InFlightDiagnostic::attachNote ( Optional< Location noteLoc = llvm::None)
inline

Attaches a note to this diagnostic.

◆ operator LogicalResult()

InFlightDiagnostic::operator LogicalResult ( ) const

Allow an inflight diagnostic to be converted to 'failure', otherwise 'success' if this is an empty diagnostic.

◆ operator<<() [1/2]

template<typename Arg >
InFlightDiagnostic& mlir::InFlightDiagnostic::operator<< ( Arg &&  arg) &
inline

Stream operator for new diagnostic arguments.

◆ operator<<() [2/2]

template<typename Arg >
InFlightDiagnostic&& mlir::InFlightDiagnostic::operator<< ( Arg &&  arg) &&
inline

◆ report()

void InFlightDiagnostic::report ( )

Reports the diagnostic to the engine.


The documentation for this class was generated from the following files: