MLIR  20.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 616 of file PybindAdaptors.h.

Constructor & Destructor Documentation

◆ CollectDiagnosticsToStringScope()

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

Definition at line 618 of file PybindAdaptors.h.

References mlirContextAttachDiagnosticHandler().

◆ ~CollectDiagnosticsToStringScope()

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

Definition at line 622 of file PybindAdaptors.h.

References mlirContextDetachDiagnosticHandler().

Member Function Documentation

◆ takeMessage()

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

Definition at line 627 of file PybindAdaptors.h.


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