LLVM
8.0.1
|
Summary of a FileCheck diagnostic. More...
#include "llvm/Support/FileCheck.h"
Public Types | |
enum | MatchType { MatchFoundAndExpected, MatchFoundButExcluded, MatchFoundButWrongLine, MatchFoundButDiscarded, MatchNoneAndExcluded, MatchNoneButExpected, MatchFuzzy } |
What type of match result does this diagnostic describe? More... | |
Public Member Functions | |
FileCheckDiag (const SourceMgr &SM, const Check::FileCheckType &CheckTy, SMLoc CheckLoc, MatchType MatchTy, SMRange InputRange) | |
Public Attributes | |
Check::FileCheckType | CheckTy |
What is the FileCheck directive for this diagnostic? More... | |
unsigned | CheckLine |
Where is the FileCheck directive for this diagnostic? More... | |
unsigned | CheckCol |
enum llvm::FileCheckDiag::MatchType | MatchTy |
unsigned | InputStartLine |
The search range if MatchTy is MatchNoneAndExcluded or MatchNoneButExpected, or the match range otherwise. More... | |
unsigned | InputStartCol |
unsigned | InputEndLine |
unsigned | InputEndCol |
Summary of a FileCheck diagnostic.
Definition at line 155 of file FileCheck.h.
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. All match result types whose names end with "Excluded" are for excluded patterns, and all others are for expected patterns.
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.
Definition at line 174 of file FileCheck.h.
FileCheckDiag::FileCheckDiag | ( | const SourceMgr & | SM, |
const Check::FileCheckType & | CheckTy, | ||
SMLoc | CheckLoc, | ||
MatchType | MatchTy, | ||
SMRange | InputRange | ||
) |
Definition at line 556 of file FileCheck.cpp.
unsigned llvm::FileCheckDiag::CheckCol |
Definition at line 159 of file FileCheck.h.
unsigned llvm::FileCheckDiag::CheckLine |
Where is the FileCheck directive for this diagnostic?
Definition at line 159 of file FileCheck.h.
Check::FileCheckType llvm::FileCheckDiag::CheckTy |
What is the FileCheck directive for this diagnostic?
Definition at line 157 of file FileCheck.h.
Referenced by llvm::FileCheck::ReadCheckFile().
unsigned llvm::FileCheckDiag::InputEndCol |
Definition at line 199 of file FileCheck.h.
unsigned llvm::FileCheckDiag::InputEndLine |
Definition at line 198 of file FileCheck.h.
unsigned llvm::FileCheckDiag::InputStartCol |
Definition at line 197 of file FileCheck.h.
unsigned llvm::FileCheckDiag::InputStartLine |
The search range if MatchTy is MatchNoneAndExcluded or MatchNoneButExpected, or the match range otherwise.
Definition at line 196 of file FileCheck.h.
enum llvm::FileCheckDiag::MatchType llvm::FileCheckDiag::MatchTy |