|
LLVM 23.0.0git
|
Abstract base class for recording a FileCheck diagnostic that reports a match result for a pattern. More...
#include "llvm/FileCheck/FileCheck.h"
Public Member Functions | |
| MatchResultDiag (FileCheckDiagKind Kind, const Check::FileCheckType &CheckTy, SMLoc CheckLoc, SMRange SearchRange) | |
| virtual | ~MatchResultDiag ()=0 |
| Destructor is purely virtual to ensure this remains an abstract class. | |
| const MatchResultDiag & | getMatchResultDiag () const override |
| Get itself. | |
| Check::FileCheckType | getCheckTy () const |
| What is the type of pattern for this match result? | |
| SMLoc | getCheckLoc () const |
| Where is the pattern for this match result? | |
| SMRange | getSearchRange () const |
| What is the search range for the match result? | |
| Public Member Functions inherited from llvm::FileCheckDiag | |
| FileCheckDiag (FileCheckDiagKind Kind) | |
| virtual | ~FileCheckDiag ()=0 |
| Destructor is purely virtual to ensure this remains an abstract class. | |
| FileCheckDiagKind | getKind () const |
| Of what derived class is this an instance? | |
| virtual bool | isError () const =0 |
| Does this diagnostic reveal a new error? | |
| virtual std::optional< SMRange > | getMatchRange () const =0 |
Return the input range for which this diagnostic indicates text that was matched in some way (e.g., successful pattern match, discarded pattern match, or variable capture), or return std::nullopt if the diagnostic has no such input range. | |
Static Public Member Functions | |
| static bool | classof (const FileCheckDiag *FCD) |
Is FCD an instance of MatchResultDiag? | |
Additional Inherited Members | |
| Public Types inherited from llvm::FileCheckDiag | |
| enum | FileCheckDiagKind { MatchResultDiag_First , MatchFoundDiag = MatchResultDiag_First , MatchNoneDiag , MatchResultDiag_Last = MatchNoneDiag , MatchNoteDiag_First , MatchFuzzyDiag = MatchNoteDiag_First , MatchCustomNoteDiag , MatchNoteDiag_Last = MatchCustomNoteDiag } |
Abstract base class for recording a FileCheck diagnostic that reports a match result for a pattern.
Definition at line 177 of file FileCheck.h.
|
inline |
Definition at line 184 of file FileCheck.h.
References llvm::FileCheckDiag::FileCheckDiag().
Referenced by getMatchResultDiag(), llvm::MatchFoundDiag::MatchFoundDiag(), and llvm::MatchNoneDiag::MatchNoneDiag().
|
pure virtual |
Destructor is purely virtual to ensure this remains an abstract class.
Definition at line 1508 of file FileCheck.cpp.
|
inlinestatic |
Is FCD an instance of MatchResultDiag?
Definition at line 191 of file FileCheck.h.
References llvm::FileCheckDiag::FileCheckDiag(), llvm::FileCheckDiag::getKind(), llvm::FileCheckDiag::MatchResultDiag_First, and llvm::FileCheckDiag::MatchResultDiag_Last.
|
inline |
Where is the pattern for this match result?
Definition at line 200 of file FileCheck.h.
|
inline |
What is the type of pattern for this match result?
Definition at line 198 of file FileCheck.h.
|
inlineoverridevirtual |
Get itself.
Implements llvm::FileCheckDiag.
Definition at line 196 of file FileCheck.h.
References MatchResultDiag().
|
inline |
What is the search range for the match result?
Definition at line 202 of file FileCheck.h.