|
MLIR 22.0.0git
|
Public Member Functions | |
| SourceMgrDiagnosticVerifierHandlerImpl (SourceMgrDiagnosticVerifierHandler::Level level) | |
| std::optional< MutableArrayRef< ExpectedDiag > > | getExpectedDiags (StringRef bufName) |
| Returns the expected diagnostics for the given source file. | |
| MutableArrayRef< ExpectedDiag > | computeExpectedDiags (raw_ostream &os, llvm::SourceMgr &mgr, const llvm::MemoryBuffer *buf) |
| Computes the expected diagnostics for the given source buffer. | |
| SourceMgrDiagnosticVerifierHandler::Level | getVerifyLevel () const |
Public Attributes | |
| LogicalResult | status |
| The current status of the verifier. | |
| llvm::StringMap< SmallVector< ExpectedDiag, 2 > > | expectedDiagsPerFile |
| A list of expected diagnostics for each buffer of the source manager. | |
| SmallVector< ExpectedDiag, 2 > | expectedUnknownLocDiags |
| A list of expected diagnostics with unknown locations. | |
| llvm::Regex | expected |
| Regex to match the expected diagnostics format. | |
| SourceMgrDiagnosticVerifierHandler::Level | level |
| Verification level. | |
Definition at line 667 of file Diagnostics.cpp.
|
inline |
Definition at line 668 of file Diagnostics.cpp.
| MutableArrayRef< ExpectedDiag > SourceMgrDiagnosticVerifierHandlerImpl::computeExpectedDiags | ( | raw_ostream & | os, |
| llvm::SourceMgr & | mgr, | ||
| const llvm::MemoryBuffer * | buf ) |
Computes the expected diagnostics for the given source buffer.
Definition at line 730 of file Diagnostics.cpp.
References mlir::detail::ExpectedDiag::computeRegex(), mlir::Error, expected, expectedDiagsPerFile, expectedUnknownLocDiags, mlir::detail::ExpectedDiag::fileLoc, mlir::detail::ExpectedDiag::lineNo, mlir::Note, mlir::Remark, status, and mlir::Warning.
| std::optional< MutableArrayRef< ExpectedDiag > > SourceMgrDiagnosticVerifierHandlerImpl::getExpectedDiags | ( | StringRef | bufName | ) |
Returns the expected diagnostics for the given source file.
Definition at line 722 of file Diagnostics.cpp.
References expectedDiagsPerFile.
|
inline |
Definition at line 681 of file Diagnostics.cpp.
References level.
| llvm::Regex mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expected |
Regex to match the expected diagnostics format.
Definition at line 695 of file Diagnostics.cpp.
Referenced by computeExpectedDiags().
| llvm::StringMap<SmallVector<ExpectedDiag, 2> > mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expectedDiagsPerFile |
A list of expected diagnostics for each buffer of the source manager.
Definition at line 689 of file Diagnostics.cpp.
Referenced by computeExpectedDiags(), and getExpectedDiags().
| SmallVector<ExpectedDiag, 2> mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expectedUnknownLocDiags |
A list of expected diagnostics with unknown locations.
Definition at line 692 of file Diagnostics.cpp.
Referenced by computeExpectedDiags().
| SourceMgrDiagnosticVerifierHandler::Level mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::level |
Verification level.
Definition at line 700 of file Diagnostics.cpp.
Referenced by getVerifyLevel(), and SourceMgrDiagnosticVerifierHandlerImpl().
| LogicalResult mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::status |
The current status of the verifier.
Definition at line 686 of file Diagnostics.cpp.
Referenced by computeExpectedDiags(), and SourceMgrDiagnosticVerifierHandlerImpl().