enum FileCheckDiag::MatchType

Description

What type of match result does this diagnostic describe? A directive's supplied pattern is said to be either expected or excluded depending on whether the pattern must have or must not have a match in order for the directive to succeed. For example, a CHECK directive's pattern is expected, and a CHECK-NOT directive's pattern is excluded. There might be more than one match result for a single pattern. For example, there might be several discarded matches (MatchFoundButDiscarded) before either a good match (MatchFoundAndExpected) or a failure to match (MatchNoneButExpected), and there might be a fuzzy match (MatchFuzzy) after the latter.

Declared at: llvm/include/llvm/FileCheck/FileCheck.h:130

Enumerators

NameValueComment
MatchFoundAndExpected0Indicates a good match for an expected pattern.
MatchFoundButExcluded1Indicates a match for an excluded pattern.
MatchFoundButWrongLine2Indicates a match for an expected pattern, but the match is on the wrong line.
MatchFoundButDiscarded3Indicates a discarded match for an expected pattern.
MatchFoundErrorNote4Indicates an error while processing a match after the match was found for an expected or excluded pattern. The error is specified by \c Note, to which it should be appropriate to prepend "error: " later. The full match itself should be recorded in a preceding diagnostic of a different\c MatchFound match type.
MatchNoneAndExcluded5Indicates no match for an excluded pattern.
MatchNoneButExpected6Indicates no match for an expected pattern, but this might follow good matches when multiple matches are expected for the pattern, or it might follow discarded matches for the pattern.
MatchNoneForInvalidPattern7Indicates no match due to an expected or excluded pattern that has proven to be invalid at match time. The exact problems are usually reported in subsequent diagnostics of the same match type but with\c Note set.
MatchFuzzy8Indicates a fuzzy match that serves as a suggestion for the next intended match for an expected pattern with too few or no good matches.