My Project
|
#include <Diagnostics.h>
Public Member Functions | |
SourceMgrDiagnosticVerifierHandler (llvm::SourceMgr &srcMgr, MLIRContext *ctx, raw_ostream &out) | |
SourceMgrDiagnosticVerifierHandler (llvm::SourceMgr &srcMgr, MLIRContext *ctx) | |
~SourceMgrDiagnosticVerifierHandler () | |
LogicalResult | verify () |
![]() | |
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... | |
![]() | |
ScopedDiagnosticHandler (MLIRContext *ctx) | |
template<typename FuncTy > | |
ScopedDiagnosticHandler (MLIRContext *ctx, FuncTy &&handler) | |
~ScopedDiagnosticHandler () | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
template<typename FuncTy > | |
void | setHandler (FuncTy &&handler) |
Set the handler to manage via RAII. More... | |
![]() | |
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 that verifies that emitted diagnostics match 'expected-*' lines on the corresponding line of the source file.
SourceMgrDiagnosticVerifierHandler::SourceMgrDiagnosticVerifierHandler | ( | llvm::SourceMgr & | srcMgr, |
MLIRContext * | ctx, | ||
raw_ostream & | out | ||
) |
SourceMgrDiagnosticVerifierHandler::SourceMgrDiagnosticVerifierHandler | ( | llvm::SourceMgr & | srcMgr, |
MLIRContext * | ctx | ||
) |
SourceMgrDiagnosticVerifierHandler::~SourceMgrDiagnosticVerifierHandler | ( | ) |
LogicalResult SourceMgrDiagnosticVerifierHandler::verify | ( | ) |
Returns the status of the handler and verifies that all expected diagnostics were emitted. This return success if all diagnostics were verified correctly, failure otherwise.
Returns the status of the verifier and verifies that all expected diagnostics were emitted. This return success if all diagnostics were verified correctly, failure otherwise.