My Project
Public Member Functions | Public Attributes | List of all members
mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl Struct Reference
Collaboration diagram for mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl:
Collaboration graph
[legend]

Public Member Functions

 SourceMgrDiagnosticVerifierHandlerImpl ()
 
Optional< MutableArrayRef< ExpectedDiag > > getExpectedDiags (StringRef bufName)
 Returns the expected diagnostics for the given source file. More...
 
MutableArrayRef< ExpectedDiagcomputeExpectedDiags (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...
 

Constructor & Destructor Documentation

◆ SourceMgrDiagnosticVerifierHandlerImpl()

mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::SourceMgrDiagnosticVerifierHandlerImpl ( )
inline

Member Function Documentation

◆ computeExpectedDiags()

MutableArrayRef< ExpectedDiag > SourceMgrDiagnosticVerifierHandlerImpl::computeExpectedDiags ( const llvm::MemoryBuffer *  buf)

Computes the expected diagnostics for the given source buffer.

◆ getExpectedDiags()

Optional< MutableArrayRef< ExpectedDiag > > SourceMgrDiagnosticVerifierHandlerImpl::getExpectedDiags ( StringRef  bufName)

Returns the expected diagnostics for the given source file.

Member Data Documentation

◆ expected

llvm::Regex mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expected
Initial value:
= llvm::Regex("expected-(error|note|remark|warning) "
"*(@([+-][0-9]+|above|below))? *{{(.*)}}")

Regex to match the expected diagnostics format.

◆ expectedDiagsPerFile

llvm::StringMap<SmallVector<ExpectedDiag, 2> > mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::expectedDiagsPerFile

A list of expected diagnostics for each buffer of the source manager.

◆ status

LogicalResult mlir::detail::SourceMgrDiagnosticVerifierHandlerImpl::status

The current status of the verifier.


The documentation for this struct was generated from the following file: