LLVM 22.0.0git
|
Public Member Functions | |
PrefixMatcher (ArrayRef< StringRef > CheckPrefixes, ArrayRef< StringRef > CommentPrefixes, StringRef Input) | |
StringRef | match (StringRef Buffer) |
Find the next match of a prefix in Buffer. |
Public Attributes | |
SmallVector< std::pair< StringRef, size_t > > | Prefixes |
Prefixes and their first occurrence past the current position. | |
StringRef | Input |
Definition at line 1705 of file FileCheck.cpp.
|
inline |
Definition at line 1710 of file FileCheck.cpp.
References A(), B(), for(), Input, Prefixes, and llvm::sort().
Find the next match of a prefix in Buffer.
Returns empty StringRef if not found.
Definition at line 1725 of file FileCheck.cpp.
References assert(), llvm::StringRef::data(), llvm::StringRef::empty(), Input, llvm::StringRef::npos, Prefixes, and llvm::StringRef::size().
Referenced by FindFirstMatchingPrefix().
StringRef PrefixMatcher::Input |
Definition at line 1708 of file FileCheck.cpp.
Referenced by match(), and PrefixMatcher().
SmallVector<std::pair<StringRef, size_t> > PrefixMatcher::Prefixes |
Prefixes and their first occurrence past the current position.
Definition at line 1707 of file FileCheck.cpp.
Referenced by match(), and PrefixMatcher().