|
LLVM
10.0.0
|
A check that we found in the input file. More...
#include "Support/FileCheckImpl.h"
Public Member Functions | |
| FileCheckString (const Pattern &P, StringRef S, SMLoc L) | |
| size_t | Check (const SourceMgr &SM, StringRef Buffer, bool IsLabelScanMode, size_t &MatchLen, FileCheckRequest &Req, std::vector< FileCheckDiag > *Diags) const |
| Matches check string and its "not strings" and/or "dag strings". More... | |
| bool | CheckNext (const SourceMgr &SM, StringRef Buffer) const |
Verifies that there is a single line in the given Buffer. More... | |
| bool | CheckSame (const SourceMgr &SM, StringRef Buffer) const |
Verifies that there is no newline in the given Buffer. More... | |
| bool | CheckNot (const SourceMgr &SM, StringRef Buffer, const std::vector< const Pattern *> &NotStrings, const FileCheckRequest &Req, std::vector< FileCheckDiag > *Diags) const |
Verifies that none of the strings in NotStrings are found in the given Buffer. More... | |
| size_t | CheckDag (const SourceMgr &SM, StringRef Buffer, std::vector< const Pattern *> &NotStrings, const FileCheckRequest &Req, std::vector< FileCheckDiag > *Diags) const |
| Matches "dag strings" and their mixed "not strings". More... | |
Public Attributes | |
| Pattern | 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< Pattern > | 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 569 of file FileCheckImpl.h.
Definition at line 583 of file FileCheckImpl.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, | ||
| FileCheckRequest & | Req, | ||
| std::vector< FileCheckDiag > * | Diags | ||
| ) | const |
Matches check string and its "not strings" and/or "dag strings".
Definition at line 1410 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::Expected< T >::takeError(), llvm::FileCheckRequest::Verbose, and llvm::FileCheckRequest::VerboseVerbose.
Referenced by llvm::FileCheck::checkInput().
| size_t FileCheckString::CheckDag | ( | const SourceMgr & | SM, |
| StringRef | Buffer, | ||
| std::vector< const Pattern *> & | NotStrings, | ||
| const FileCheckRequest & | Req, | ||
| std::vector< FileCheckDiag > * | Diags | ||
| ) | const |
Matches "dag strings" and their mixed "not strings".
Definition at line 1579 of file FileCheck.cpp.
Verifies that there is a single line in the given Buffer.
Errors are reported against SM.
Definition at line 1492 of file FileCheck.cpp.
References llvm::Check::CheckEmpty, llvm::Check::CheckNext, CountNumNewlinesBetween(), llvm::StringRef::data(), llvm::SourceMgr::DK_Error, llvm::SourceMgr::DK_Note, llvm::StringRef::end(), llvm::SMLoc::getFromPointer(), llvm::cl::Prefix, and llvm::SourceMgr::PrintMessage().
| bool FileCheckString::CheckNot | ( | const SourceMgr & | SM, |
| StringRef | Buffer, | ||
| const std::vector< const Pattern *> & | NotStrings, | ||
| const FileCheckRequest & | Req, | ||
| std::vector< FileCheckDiag > * | Diags | ||
| ) | const |
Verifies that none of the strings in NotStrings are found in the given Buffer.
Errors are reported against SM and diagnostics recorded in Diags according to the verbosity level set in Req.
Definition at line 1553 of file FileCheck.cpp.
References assert(), llvm::Check::CheckNot, llvm::cl::Prefix, PrintMatch(), PrintNoMatch(), llvm::Expected< T >::takeError(), and llvm::FileCheckRequest::VerboseVerbose.
Verifies that there is no newline in the given Buffer.
Errors are reported against SM.
Definition at line 1531 of file FileCheck.cpp.
References llvm::Check::CheckSame, CountNumNewlinesBetween(), llvm::StringRef::data(), llvm::SourceMgr::DK_Error, llvm::SourceMgr::DK_Note, llvm::StringRef::end(), llvm::SMLoc::getFromPointer(), llvm::cl::Prefix, and llvm::SourceMgr::PrintMessage().
| std::vector<Pattern> 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 581 of file FileCheckImpl.h.
| SMLoc llvm::FileCheckString::Loc |
The location in the match file that the check string was specified.
Definition at line 577 of file FileCheckImpl.h.
Referenced by PrintMatch(), and PrintNoMatch().
| Pattern llvm::FileCheckString::Pat |
The pattern to match.
Definition at line 571 of file FileCheckImpl.h.
Referenced by llvm::FileCheck::checkInput(), PrintMatch(), and PrintNoMatch().
| StringRef llvm::FileCheckString::Prefix |
Which prefix name this check matched.
Definition at line 574 of file FileCheckImpl.h.
Referenced by PrintMatch(), and PrintNoMatch().
1.8.13