LLVM
8.0.1
|
A check that we found in the input file. More...
#include "llvm/Support/FileCheck.h"
Public Member Functions | |
FileCheckString (const FileCheckPattern &P, StringRef S, SMLoc L) | |
size_t | Check (const SourceMgr &SM, StringRef Buffer, bool IsLabelScanMode, size_t &MatchLen, StringMap< StringRef > &VariableTable, FileCheckRequest &Req, std::vector< FileCheckDiag > *Diags) const |
Match check string and its "not strings" and/or "dag strings". More... | |
bool | CheckNext (const SourceMgr &SM, StringRef Buffer) const |
Verify there is a single line in the given buffer. More... | |
bool | CheckSame (const SourceMgr &SM, StringRef Buffer) const |
Verify there is no newline in the given buffer. More... | |
bool | CheckNot (const SourceMgr &SM, StringRef Buffer, const std::vector< const FileCheckPattern *> &NotStrings, StringMap< StringRef > &VariableTable, const FileCheckRequest &Req, std::vector< FileCheckDiag > *Diags) const |
Verify there's no "not strings" in the given buffer. More... | |
size_t | CheckDag (const SourceMgr &SM, StringRef Buffer, std::vector< const FileCheckPattern *> &NotStrings, StringMap< StringRef > &VariableTable, const FileCheckRequest &Req, std::vector< FileCheckDiag > *Diags) const |
Match "dag strings" and their mixed "not strings". More... | |
Public Attributes | |
FileCheckPattern | Pat |
The pattern to match. More... | |
StringRef | Prefix |
Which prefix name this check matched. More... | |
SMLoc | Loc |
The location in the match file that the check string was specified. More... | |
std::vector< FileCheckPattern > | DagNotStrings |
All of the strings that are disallowed from occurring between this match string and the previous one (or start of file). More... | |
A check that we found in the input file.
Definition at line 209 of file FileCheck.h.
|
inline |
Definition at line 223 of file FileCheck.h.
References Check(), llvm::Check::CheckNext, llvm::Check::CheckNot, and CheckSame().
size_t FileCheckString::Check | ( | const SourceMgr & | SM, |
StringRef | Buffer, | ||
bool | IsLabelScanMode, | ||
size_t & | MatchLen, | ||
StringMap< StringRef > & | VariableTable, | ||
FileCheckRequest & | Req, | ||
std::vector< FileCheckDiag > * | Diags | ||
) | const |
Match check string and its "not strings" and/or "dag strings".
Definition at line 1007 of file FileCheck.cpp.
References assert(), llvm::Check::CheckNext, llvm::Check::CheckNot, CheckSame(), llvm::FileCheckDiag::MatchFoundButWrongLine, llvm::StringRef::npos, PrintMatch(), PrintNoMatch(), ProcessMatchResult(), llvm::StringRef::substr(), llvm::FileCheckRequest::Verbose, and llvm::FileCheckRequest::VerboseVerbose.
Referenced by llvm::FileCheck::CheckInput().
size_t FileCheckString::CheckDag | ( | const SourceMgr & | SM, |
StringRef | Buffer, | ||
std::vector< const FileCheckPattern *> & | NotStrings, | ||
StringMap< StringRef > & | VariableTable, | ||
const FileCheckRequest & | Req, | ||
std::vector< FileCheckDiag > * | Diags | ||
) | const |
Match "dag strings" and their mixed "not strings".
Definition at line 1193 of file FileCheck.cpp.
Verify there is a single line in the given buffer.
Definition at line 1090 of file FileCheck.cpp.
References assert(), llvm::Check::CheckEmpty, llvm::Check::CheckNext, CountNumNewlinesBetween(), llvm::StringRef::data(), llvm::SourceMgr::DK_Error, llvm::SourceMgr::DK_Note, llvm::StringRef::end(), llvm::SourceMgr::FindBufferContainingLoc(), llvm::SMLoc::getFromPointer(), llvm::SourceMgr::getMemoryBuffer(), llvm::cl::Prefix, and llvm::SourceMgr::PrintMessage().
bool FileCheckString::CheckNot | ( | const SourceMgr & | SM, |
StringRef | Buffer, | ||
const std::vector< const FileCheckPattern *> & | NotStrings, | ||
StringMap< StringRef > & | VariableTable, | ||
const FileCheckRequest & | Req, | ||
std::vector< FileCheckDiag > * | Diags | ||
) | const |
Verify there's no "not strings" in the given buffer.
Definition at line 1165 of file FileCheck.cpp.
References assert(), llvm::Check::CheckNot, llvm::StringRef::npos, llvm::cl::Prefix, PrintMatch(), PrintNoMatch(), and llvm::FileCheckRequest::VerboseVerbose.
Verify there is no newline in the given buffer.
Definition at line 1136 of file FileCheck.cpp.
References assert(), llvm::Check::CheckSame, CountNumNewlinesBetween(), llvm::StringRef::data(), llvm::SourceMgr::DK_Error, llvm::SourceMgr::DK_Note, llvm::StringRef::end(), llvm::SourceMgr::FindBufferContainingLoc(), llvm::SMLoc::getFromPointer(), llvm::SourceMgr::getMemoryBuffer(), llvm::cl::Prefix, and llvm::SourceMgr::PrintMessage().
std::vector<FileCheckPattern> llvm::FileCheckString::DagNotStrings |
All of the strings that are disallowed from occurring between this match string and the previous one (or start of file).
Definition at line 221 of file FileCheck.h.
SMLoc llvm::FileCheckString::Loc |
The location in the match file that the check string was specified.
Definition at line 217 of file FileCheck.h.
Referenced by PrintMatch(), and PrintNoMatch().
FileCheckPattern llvm::FileCheckString::Pat |
The pattern to match.
Definition at line 211 of file FileCheck.h.
Referenced by llvm::FileCheck::CheckInput(), PrintMatch(), and PrintNoMatch().
StringRef llvm::FileCheckString::Prefix |
Which prefix name this check matched.
Definition at line 214 of file FileCheck.h.
Referenced by PrintMatch(), and PrintNoMatch().