struct FileCheckString
Declaration
struct FileCheckString { /* full declaration omitted */ };
Description
A check that we found in the input file.
Declared at: llvm/lib/Support/FileCheckImpl.h:569
Member Variables
- public llvm::Pattern Pat
- The pattern to match.
- public llvm::StringRef Prefix
- Which prefix name this check matched.
- public llvm::SMLoc Loc
- The location in the match file that the check string was specified.
- public 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).
Method Overview
- public size_t Check(const llvm::SourceMgr & SM, llvm::StringRef Buffer, bool IsLabelScanMode, size_t & MatchLen, llvm::FileCheckRequest & Req, std::vector<FileCheckDiag> * Diags) const
- public size_t CheckDag(const llvm::SourceMgr & SM, llvm::StringRef Buffer, std::vector<const Pattern *> & NotStrings, const llvm::FileCheckRequest & Req, std::vector<FileCheckDiag> * Diags) const
- public bool CheckNext(const llvm::SourceMgr & SM, llvm::StringRef Buffer) const
- public bool CheckNot(const llvm::SourceMgr & SM, llvm::StringRef Buffer, const std::vector<const Pattern *> & NotStrings, const llvm::FileCheckRequest & Req, std::vector<FileCheckDiag> * Diags) const
- public bool CheckSame(const llvm::SourceMgr & SM, llvm::StringRef Buffer) const
- public FileCheckString(const llvm::Pattern & P, llvm::StringRef S, llvm::SMLoc L)
Methods
¶size_t Check(
const llvm::SourceMgr& SM,
llvm::StringRef Buffer,
bool IsLabelScanMode,
size_t& MatchLen,
llvm::FileCheckRequest& Req,
std::vector<FileCheckDiag>* Diags) const
size_t Check(
const llvm::SourceMgr& SM,
llvm::StringRef Buffer,
bool IsLabelScanMode,
size_t& MatchLen,
llvm::FileCheckRequest& Req,
std::vector<FileCheckDiag>* Diags) const
Description
Matches check string and its "not strings" and/or "dag strings".
Declared at: llvm/lib/Support/FileCheckImpl.h:587
Parameters
- const llvm::SourceMgr& SM
- llvm::StringRef Buffer
- bool IsLabelScanMode
- size_t& MatchLen
- llvm::FileCheckRequest& Req
- std::vector<FileCheckDiag>* Diags
¶size_t CheckDag(
const llvm::SourceMgr& SM,
llvm::StringRef Buffer,
std::vector<const Pattern*>& NotStrings,
const llvm::FileCheckRequest& Req,
std::vector<FileCheckDiag>* Diags) const
size_t CheckDag(
const llvm::SourceMgr& SM,
llvm::StringRef Buffer,
std::vector<const Pattern*>& NotStrings,
const llvm::FileCheckRequest& Req,
std::vector<FileCheckDiag>* Diags) const
Description
Matches "dag strings" and their mixed "not strings".
Declared at: llvm/lib/Support/FileCheckImpl.h:605
Parameters
- const llvm::SourceMgr& SM
- llvm::StringRef Buffer
- std::vector<const Pattern*>& NotStrings
- const llvm::FileCheckRequest& Req
- std::vector<FileCheckDiag>* Diags
¶bool CheckNext(const llvm::SourceMgr& SM,
llvm::StringRef Buffer) const
bool CheckNext(const llvm::SourceMgr& SM,
llvm::StringRef Buffer) const
Description
Verifies that there is a single line in the given \p Buffer. Errors are reported against \p SM.
Declared at: llvm/lib/Support/FileCheckImpl.h:593
Parameters
- const llvm::SourceMgr& SM
- llvm::StringRef Buffer
¶bool CheckNot(
const llvm::SourceMgr& SM,
llvm::StringRef Buffer,
const std::vector<const Pattern*>& NotStrings,
const llvm::FileCheckRequest& Req,
std::vector<FileCheckDiag>* Diags) const
bool CheckNot(
const llvm::SourceMgr& SM,
llvm::StringRef Buffer,
const std::vector<const Pattern*>& NotStrings,
const llvm::FileCheckRequest& Req,
std::vector<FileCheckDiag>* Diags) const
Description
Verifies that none of the strings in \p NotStrings are found in the given\p Buffer. Errors are reported against \p SM and diagnostics recorded in\p Diags according to the verbosity level set in \p Req.
Declared at: llvm/lib/Support/FileCheckImpl.h:600
Parameters
- const llvm::SourceMgr& SM
- llvm::StringRef Buffer
- const std::vector<const Pattern*>& NotStrings
- const llvm::FileCheckRequest& Req
- std::vector<FileCheckDiag>* Diags
¶bool CheckSame(const llvm::SourceMgr& SM,
llvm::StringRef Buffer) const
bool CheckSame(const llvm::SourceMgr& SM,
llvm::StringRef Buffer) const
Description
Verifies that there is no newline in the given \p Buffer. Errors are reported against \p SM.
Declared at: llvm/lib/Support/FileCheckImpl.h:596
Parameters
- const llvm::SourceMgr& SM
- llvm::StringRef Buffer
¶FileCheckString(const llvm::Pattern& P,
llvm::StringRef S,
llvm::SMLoc L)
FileCheckString(const llvm::Pattern& P,
llvm::StringRef S,
llvm::SMLoc L)
Declared at: llvm/lib/Support/FileCheckImpl.h:583
Parameters
- const llvm::Pattern& P
- llvm::StringRef S
- llvm::SMLoc L