MLIR  19.0.0git
Public Member Functions | List of all members
mlir::python::CollectDiagnosticsToStringScope Class Reference

RAII scope intercepting all diagnostics into a string. More...

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

Public Member Functions

 CollectDiagnosticsToStringScope (MlirContext ctx)
 
 ~CollectDiagnosticsToStringScope ()
 
std::string takeMessage ()
 

Detailed Description

RAII scope intercepting all diagnostics into a string.

The message must be checked before this goes out of scope.

Definition at line 577 of file PybindAdaptors.h.

Constructor & Destructor Documentation

◆ CollectDiagnosticsToStringScope()

mlir::python::CollectDiagnosticsToStringScope::CollectDiagnosticsToStringScope ( MlirContext  ctx)
inlineexplicit

Definition at line 579 of file PybindAdaptors.h.

References mlirContextAttachDiagnosticHandler().

◆ ~CollectDiagnosticsToStringScope()

mlir::python::CollectDiagnosticsToStringScope::~CollectDiagnosticsToStringScope ( )
inline

Definition at line 583 of file PybindAdaptors.h.

References mlirContextDetachDiagnosticHandler().

Member Function Documentation

◆ takeMessage()

std::string mlir::python::CollectDiagnosticsToStringScope::takeMessage ( )
inline

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