|
LLVM 23.0.0git
|
Abstract base class for recording a FileCheck diagnostic that provides an additional note (possibly a new error) about the most recent MatchResultDiag.
More...
#include "llvm/FileCheck/FileCheck.h"
Public Member Functions | |
| MatchNoteDiag (FileCheckDiagKind Kind) | |
| virtual | ~MatchNoteDiag ()=0 |
| Destructor is purely virtual to ensure this remains an abstract class. | |
| const MatchResultDiag & | getMatchResultDiag () const override |
Get the note's associated MatchResultDiag. | |
| void | setMatchResultDiag (MatchResultDiag *MRDNew) |
Set the note's associated MatchResultDiag. | |
| 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 MatchNoteDiag? | |
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 provides an additional note (possibly a new error) about the most recent MatchResultDiag.
Definition at line 303 of file FileCheck.h.
|
inline |
Definition at line 308 of file FileCheck.h.
References llvm::FileCheckDiag::FileCheckDiag().
Referenced by llvm::MatchCustomNoteDiag::MatchCustomNoteDiag(), llvm::MatchCustomNoteDiag::MatchCustomNoteDiag(), and llvm::MatchFuzzyDiag::MatchFuzzyDiag().
|
pure virtual |
Destructor is purely virtual to ensure this remains an abstract class.
Definition at line 1509 of file FileCheck.cpp.
|
inlinestatic |
Is FCD an instance of MatchNoteDiag?
Definition at line 312 of file FileCheck.h.
References llvm::FileCheckDiag::FileCheckDiag(), llvm::FileCheckDiag::getKind(), llvm::FileCheckDiag::MatchNoteDiag_First, and llvm::FileCheckDiag::MatchNoteDiag_Last.
|
inlineoverridevirtual |
Get the note's associated MatchResultDiag.
Implements llvm::FileCheckDiag.
Definition at line 317 of file FileCheck.h.
|
inline |
Set the note's associated MatchResultDiag.
Definition at line 319 of file FileCheck.h.
References assert().