MLIR 22.0.0git
mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::ErrorCapture Struct Reference

RAII object that captures any error diagnostics emitted to the provided context. More...

#include "mlir/Bindings/Python/IRCore.h"

Public Member Functions

 ErrorCapture (PyMlirContextRef ctx)
 ~ErrorCapture ()
std::vector< PyDiagnostic::DiagnosticInfotake ()

Detailed Description

RAII object that captures any error diagnostics emitted to the provided context.

Definition at line 435 of file IRCore.h.

Constructor & Destructor Documentation

◆ ErrorCapture()

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::ErrorCapture::ErrorCapture ( PyMlirContextRef ctx)
inline

◆ ~ErrorCapture()

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::ErrorCapture::~ErrorCapture ( )
inline

Definition at line 440 of file IRCore.h.

References mlirContextDetachDiagnosticHandler().

Member Function Documentation

◆ take()


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