|
LLVM 23.0.0git
|
MatchResultDiag for a pattern that did not match the input.
More...
#include "llvm/FileCheck/FileCheck.h"
Public Types | |
| enum | StatusTy { Success , InvalidPattern , Expected } |
| 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 } |
Public Member Functions | |
| MatchNoneDiag (const Check::FileCheckType &CheckTy, SMLoc CheckLoc, StatusTy Status, SMRange SearchRange) | |
| bool | isError () const override |
| Does the lack of match represent an error? | |
| StatusTy | getStatus () const |
| Does the lack of a match indicate a success? If not, why not? | |
| std::optional< SMRange > | getMatchRange () const override |
Return std::nullopt. | |
| Public Member Functions inherited from llvm::MatchResultDiag | |
| 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? | |
Static Public Member Functions | |
| static bool | classof (const FileCheckDiag *FCD) |
Is FCD an instance of MatchNoneDiag? | |
| Static Public Member Functions inherited from llvm::MatchResultDiag | |
| static bool | classof (const FileCheckDiag *FCD) |
Is FCD an instance of MatchResultDiag? | |
MatchResultDiag for a pattern that did not match the input.
Definition at line 264 of file FileCheck.h.
| Enumerator | |
|---|---|
| Success | Indicates no match for an excluded pattern. |
| InvalidPattern | Indicates no match due to an expected or excluded pattern that has proven to be invalid at match time (error). The exact problems are usually reported in subsequent |
| Expected | Indicates no match for an expected pattern (error). In some cases, it follows good matches (because multiple matches are expected) or discarded matches for the pattern. |
Definition at line 266 of file FileCheck.h.
|
inline |
Definition at line 283 of file FileCheck.h.
References MatchNoneDiag(), and llvm::MatchResultDiag::MatchResultDiag().
Referenced by MatchNoneDiag().
|
inlinestatic |
Is FCD an instance of MatchNoneDiag?
Definition at line 289 of file FileCheck.h.
References llvm::FileCheckDiag::getKind(), and llvm::FileCheckDiag::MatchNoneDiag.
|
inlineoverridevirtual |
|
inline |
Does the lack of a match indicate a success? If not, why not?
Definition at line 295 of file FileCheck.h.
|
inlineoverridevirtual |
Does the lack of match represent an error?
Implements llvm::FileCheckDiag.
Definition at line 293 of file FileCheck.h.
References Success.