MLIR
21.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. More... | |
MutableArrayRef< ExpectedDiag > | computeExpectedDiags (raw_ostream &os, llvm::SourceMgr &mgr, const llvm::MemoryBuffer *buf) |
Computes the expected diagnostics for the given source buffer. More... | |
SourceMgrDiagnosticVerifierHandler::Level | getVerifyLevel () const |
Public Attributes | |
LogicalResult | status |
The current status of the verifier. More... | |
llvm::StringMap< SmallVector< ExpectedDiag, 2 > > | expectedDiagsPerFile |
A list of expected diagnostics for each buffer of the source manager. More... | |
SmallVector< ExpectedDiag, 2 > | expectedUnknownLocDiags |
A list of expected diagnostics with unknown locations. More... | |
llvm::Regex | expected |
Regex to match the expected diagnostics format. More... | |
SourceMgrDiagnosticVerifierHandler::Level | level |
Verification level. More... | |
Definition at line 663 of file Diagnostics.cpp.
|
inline |
Definition at line 664 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 726 of file Diagnostics.cpp.
References mlir::detail::ExpectedDiag::computeRegex(), mlir::Error, mlir::detail::ExpectedDiag::fileLoc, kind, mlir::detail::ExpectedDiag::lineNo, mlir::Note, mlir::Remark, and mlir::Warning.
std::optional< MutableArrayRef< ExpectedDiag > > SourceMgrDiagnosticVerifierHandlerImpl::getExpectedDiags | ( | StringRef | bufName | ) |
Returns the expected diagnostics for the given source file.
Definition at line 718 of file Diagnostics.cpp.
|
inline |
Definition at line 677 of file Diagnostics.cpp.
References level.
llvm::Regex mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expected |
Regex to match the expected diagnostics format.
Definition at line 691 of file Diagnostics.cpp.
llvm::StringMap<SmallVector<ExpectedDiag, 2> > mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expectedDiagsPerFile |
A list of expected diagnostics for each buffer of the source manager.
Definition at line 685 of file Diagnostics.cpp.
SmallVector<ExpectedDiag, 2> mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expectedUnknownLocDiags |
A list of expected diagnostics with unknown locations.
Definition at line 688 of file Diagnostics.cpp.
SourceMgrDiagnosticVerifierHandler::Level mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::level |
Verification level.
Definition at line 696 of file Diagnostics.cpp.
Referenced by getVerifyLevel().
LogicalResult mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::status |
The current status of the verifier.
Definition at line 682 of file Diagnostics.cpp.