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

Synopsis

Declared in <llvm/FileCheck/FileCheck.h>

class MatchNoteDiag
    : public FileCheckDiag

Base Classes

Name

Description

FileCheckDiag

Abstract base class for recording a FileCheck diagnostic for a pattern (e.g., CHECK‐NEXT directive or ‐‐implicit‐check‐not).

Enums

Name

Description

FileCheckDiagKind

Discriminator for concrete FileCheckDiag subclasses.

Member Functions

Name

Description

MatchNoteDiag [constructor]

Construct a note diagnostic of the given Kind.

~MatchNoteDiag [destructor] [virtual]

Destructor is purely virtual to ensure this remains an abstract class.

getKind

Of what derived class is this an instance?

getMatchRange [virtual]

Return the input range matched by this diagnostic, if any.

getMatchResultDiag [virtual]

Get the note's associated MatchResultDiag.

isError [virtual]

Does this diagnostic reveal a new error?

setMatchResultDiag

Set the note's associated MatchResultDiag.

Static Member Functions

Name

Description

classof

Is FCD an instance of MatchNoteDiag?

Derived Classes

Name

Description

MatchCustomNoteDiag

MatchNoteDiag with a custom note not described by any other class derived from MatchNoteDiag.

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.

Created with MrDocs