LLVM 20.0.0git
|
Summary of a FileCheck diagnostic. More...
#include "llvm/FileCheck/FileCheck.h"
Public Types | |
enum | MatchType { MatchFoundAndExpected , MatchFoundButExcluded , MatchFoundButWrongLine , MatchFoundButDiscarded , MatchFoundErrorNote , MatchNoneAndExcluded , MatchNoneButExpected , MatchNoneForInvalidPattern , 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, StringRef Note="") | |
Public Attributes | |
Check::FileCheckType | CheckTy |
What is the FileCheck directive for this diagnostic? | |
SMLoc | CheckLoc |
Where is the FileCheck directive for this diagnostic? | |
enum llvm::FileCheckDiag::MatchType | MatchTy |
unsigned | InputStartLine |
The search range if MatchTy starts with MatchNone, or the match range otherwise. | |
unsigned | InputStartCol |
unsigned | InputEndLine |
unsigned | InputEndCol |
std::string | Note |
A note to replace the one normally indicated by MatchTy, or the empty string if none. | |
Summary of a FileCheck diagnostic.
Definition at line 113 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.
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 130 of file FileCheck.h.
FileCheckDiag::FileCheckDiag | ( | const SourceMgr & | SM, |
const Check::FileCheckType & | CheckTy, | ||
SMLoc | CheckLoc, | ||
MatchType | MatchTy, | ||
SMRange | InputRange, | ||
StringRef | Note = "" |
||
) |
Definition at line 1457 of file FileCheck.cpp.
References llvm::SMRange::End, End, llvm::SourceMgr::getLineAndColumn(), InputEndCol, InputEndLine, InputStartCol, InputStartLine, and llvm::SMRange::Start.
SMLoc llvm::FileCheckDiag::CheckLoc |
Where is the FileCheck directive for this diagnostic?
Definition at line 117 of file FileCheck.h.
Check::FileCheckType llvm::FileCheckDiag::CheckTy |
What is the FileCheck directive for this diagnostic?
Definition at line 115 of file FileCheck.h.
unsigned llvm::FileCheckDiag::InputEndCol |
Definition at line 166 of file FileCheck.h.
Referenced by FileCheckDiag().
unsigned llvm::FileCheckDiag::InputEndLine |
Definition at line 165 of file FileCheck.h.
Referenced by FileCheckDiag().
unsigned llvm::FileCheckDiag::InputStartCol |
Definition at line 164 of file FileCheck.h.
Referenced by FileCheckDiag().
unsigned llvm::FileCheckDiag::InputStartLine |
The search range if MatchTy starts with MatchNone, or the match range otherwise.
Definition at line 163 of file FileCheck.h.
Referenced by FileCheckDiag().
enum llvm::FileCheckDiag::MatchType llvm::FileCheckDiag::MatchTy |
std::string llvm::FileCheckDiag::Note |
A note to replace the one normally indicated by MatchTy, or the empty string if none.
Definition at line 169 of file FileCheck.h.