llvm::MatchCustomNoteDiag

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

Synopsis

Declared in <llvm/FileCheck/FileCheck.h>

class MatchCustomNoteDiag
    : 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
MatchCustomNoteDiag [constructor]Constructors
getKind Of what derived class is this an instance?
getMatchRange [virtual]Return the match range described by the note, or std::nullopt if none.
getMatchResultDiag [virtual]Get the note's associated MatchResultDiag.
getNote Return the custom note text.
isError [virtual]Does this note indicate an additional error not indicated by the associated MatchResultDiag?
setMatchResultDiag Set the note's associated MatchResultDiag.

Static Member Functions

NameDescription
classof Is FCD an instance of MatchCustomNoteDiag?