LLVM: llvm::FileCheckString Struct Reference (original) (raw)
A check that we found in the input file. More...
#include "[FileCheck/FileCheckImpl.h](FileCheckImpl%5F8h%5Fsource.html)"
| Classes | |
|---|---|
| struct | DagNotPrefixInfo |
| Hold the information about the DAG/NOT strings in the program, which are not explicitly stored otherwise. More... |
| Public Member Functions | |
|---|---|
| FileCheckString (Pattern &&P, StringRef S, SMLoc L, std::vector< DagNotPrefixInfo > &&D) | |
| 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". | |
| bool | CheckNext (const SourceMgr &SM, StringRef Buffer) const |
| Verifies that there is a single line in the given Buffer. | |
| bool | CheckSame (const SourceMgr &SM, StringRef Buffer) const |
| Verifies that there is no newline in the given Buffer. | |
| bool | CheckNot (const SourceMgr &SM, StringRef Buffer, const std::vector< const DagNotPrefixInfo * > &NotStrings, const FileCheckRequest &Req, std::vector< FileCheckDiag > *Diags) const |
| Verifies that none of the strings in NotStrings are found in the given Buffer. | |
| size_t | CheckDag (const SourceMgr &SM, StringRef Buffer, std::vector< const DagNotPrefixInfo * > &NotStrings, const FileCheckRequest &Req, std::vector< FileCheckDiag > *Diags) const |
| Matches "dag strings" and their mixed "not strings". |
| Public Attributes | |
|---|---|
| Pattern | Pat |
| The pattern to match. | |
| StringRef | Prefix |
| Which prefix name this check matched. | |
| SMLoc | Loc |
| The location in the match file that the check string was specified. | |
| std::vector< DagNotPrefixInfo > | DagNotStrings |
| Hold the DAG/NOT strings occurring in the input file. |
A check that we found in the input file.
Definition at line 842 of file FileCheckImpl.h.
◆ Check()
Matches check string and its "not strings" and/or "dag strings".
Definition at line 2217 of file FileCheck.cpp.
References assert(), llvm::cantFail(), CheckDag(), CheckNext(), CheckNot(), CheckSame(), llvm::handleErrors(), Loc, llvm::FileCheckDiag::MatchFoundButWrongLine, llvm::StringRef::npos, Pat, Prefix, ProcessMatchResult(), reportMatchResult(), llvm::StringRef::substr(), llvm::Pattern::MatchResult::TheMatch, and llvm::FileCheckRequest::Verbose.
Referenced by llvm::FileCheck::checkInput().
◆ CheckDag()
Matches "dag strings" and their mixed "not strings".
Definition at line 2381 of file FileCheck.cpp.
References llvm::FileCheckRequest::AllowDeprecatedDagOverlap, assert(), llvm::Block, llvm::cantFail(), llvm::Check::CheckDAG, llvm::Check::CheckNot, CheckNot(), DagNotStrings, llvm::StringRef::data(), llvm::SourceMgr::DK_Note, llvm::SMLoc::getFromPointer(), llvm::handleErrors(), I, llvm::FileCheckDiag::MatchFoundButDiscarded, MI, llvm::StringRef::npos, Pat, printMatch(), llvm::SourceMgr::PrintMessage(), reportMatchResult(), llvm::StringRef::slice(), llvm::StringRef::substr(), llvm::Error::success(), llvm::Pattern::MatchResult::TheError, llvm::Pattern::MatchResult::TheMatch, and llvm::FileCheckRequest::VerboseVerbose.
Referenced by Check().
◆ CheckNext()
Verifies that there is a single line in the given Buffer.
Errors are reported against SM.
Definition at line 2298 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(), Loc, Pat, Prefix, and llvm::SourceMgr::PrintMessage().
Referenced by Check().
◆ CheckNot()
◆ CheckSame()
Verifies that there is no newline in the given Buffer.
Errors are reported against SM.
Definition at line 2337 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(), Loc, Pat, Prefix, and llvm::SourceMgr::PrintMessage().
Referenced by Check().
◆ DagNotStrings
◆ Loc
SMLoc llvm::FileCheckString::Loc
◆ Pat
◆ Prefix
The documentation for this struct was generated from the following files:
- lib/FileCheck/FileCheckImpl.h
- lib/FileCheck/FileCheck.cpp