llvm::MatchFuzzyDiag

MatchNoteDiag for a fuzzy match that serves as a suggestion for the next intended match for an expected pattern with too few or no good matches.

Synopsis

Declared in <llvm/FileCheck/FileCheck.h>

class MatchFuzzyDiag
    : public MatchNoteDiag

Base Classes

NameDescription
MatchNoteDiagAbstract base class for recording a FileCheck diagnostic that provides an additional note (possibly a new error) about the most recent MatchResultDiag.

Enums

NameDescription
FileCheckDiagKind Discriminator for concrete FileCheckDiag subclasses.

Member Functions

NameDescription
MatchFuzzyDiag [constructor]Construct a fuzzy-match note at MatchStart.
getKind Of what derived class is this an instance?
getMatchRange [virtual]Return an input range (never std::nullopt) starting and ending at the match start. The actual match end is not computed.
getMatchResultDiag [virtual]Get the note's associated MatchResultDiag.
isError [virtual]Always false. A fuzzy match is not an error even though it is performed due to an error.
setMatchResultDiag Set the note's associated MatchResultDiag.

Static Member Functions

NameDescription
classof Is FCD an instance of MatchFuzzyDiag?