9 #ifndef MLIR_CAPI_DIAGNOSTICS_H
10 #define MLIR_CAPI_DIAGNOSTICS_H
20 assert(diagnostic.
ptr &&
"unexpected null diagnostic");
This class contains all of the information necessary to report a diagnostic to the DiagnosticEngine.
mlir::Diagnostic & unwrap(MlirDiagnostic diagnostic)
MlirDiagnostic wrap(mlir::Diagnostic &diagnostic)
Include the generated interface declarations.
An opaque reference to a diagnostic, always owned by the diagnostics engine (context).