|
My Project
|
This class is a utility diagnostic handler for use with llvm::SourceMgr. More...
#include <Diagnostics.h>


Public Member Functions | |
| SourceMgrDiagnosticHandler (llvm::SourceMgr &mgr, MLIRContext *ctx, raw_ostream &os) | |
| SourceMgrDiagnosticHandler (llvm::SourceMgr &mgr, MLIRContext *ctx) | |
| ~SourceMgrDiagnosticHandler () | |
| void | emitDiagnostic (Location loc, Twine message, DiagnosticSeverity kind) |
| Emit the given diagnostic information with the held source manager. More... | |
Public Member Functions inherited from mlir::ScopedDiagnosticHandler | |
| ScopedDiagnosticHandler (MLIRContext *ctx) | |
| template<typename FuncTy > | |
| ScopedDiagnosticHandler (MLIRContext *ctx, FuncTy &&handler) | |
| ~ScopedDiagnosticHandler () | |
Protected Member Functions | |
| void | emitDiagnostic (Diagnostic &diag) |
| Emit the given diagnostic with the held source manager. More... | |
| const llvm::MemoryBuffer * | getBufferForFile (StringRef filename) |
| Get a memory buffer for the given file, or nullptr if one is not found. More... | |
Protected Member Functions inherited from mlir::ScopedDiagnosticHandler | |
| template<typename FuncTy > | |
| void | setHandler (FuncTy &&handler) |
| Set the handler to manage via RAII. More... | |
Protected Attributes | |
| llvm::SourceMgr & | mgr |
| The source manager that we are wrapping. More... | |
| raw_ostream & | os |
| The output stream to use when printing diagnostics. More... | |
This class is a utility diagnostic handler for use with llvm::SourceMgr.
| SourceMgrDiagnosticHandler::SourceMgrDiagnosticHandler | ( | llvm::SourceMgr & | mgr, |
| MLIRContext * | ctx, | ||
| raw_ostream & | os | ||
| ) |
| SourceMgrDiagnosticHandler::SourceMgrDiagnosticHandler | ( | llvm::SourceMgr & | mgr, |
| MLIRContext * | ctx | ||
| ) |
| SourceMgrDiagnosticHandler::~SourceMgrDiagnosticHandler | ( | ) |
| void SourceMgrDiagnosticHandler::emitDiagnostic | ( | Location | loc, |
| Twine | message, | ||
| DiagnosticSeverity | kind | ||
| ) |
Emit the given diagnostic information with the held source manager.
|
protected |
Emit the given diagnostic with the held source manager.
|
protected |
Get a memory buffer for the given file, or nullptr if one is not found.
Get a memory buffer for the given file, or nullptr if no file is available.
|
protected |
The source manager that we are wrapping.
|
protected |
The output stream to use when printing diagnostics.
1.8.13