MLIR
20.0.0git
|
Public Member Functions | |
SourceMgrDiagnosticVerifierHandlerImpl () | |
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... | |
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... | |
llvm::Regex | expected |
Regex to match the expected diagnostics format. More... | |
Definition at line 659 of file Diagnostics.cpp.
|
inline |
Definition at line 660 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 709 of file Diagnostics.cpp.
References mlir::detail::ExpectedDiag::computeRegex(), mlir::Error, 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 701 of file Diagnostics.cpp.
llvm::Regex mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expected |
Regex to match the expected diagnostics format.
Definition at line 678 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 675 of file Diagnostics.cpp.
LogicalResult mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::status |
The current status of the verifier.
Definition at line 672 of file Diagnostics.cpp.