LLVM 20.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 1653 of file FileCheck.cpp.
|
inline |
Definition at line 1658 of file FileCheck.cpp.
References A, B, llvm::StringRef::find(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::sort().
Find the next match of a prefix in Buffer.
Returns empty StringRef if not found.
Definition at line 1673 of file FileCheck.cpp.
References assert(), llvm::StringRef::data(), llvm::StringRef::find(), From, llvm::Match, llvm::StringRef::npos, llvm::StringRef::size(), and llvm::StringRef::substr().
Referenced by FindFirstMatchingPrefix().
StringRef PrefixMatcher::Input |
Definition at line 1656 of file FileCheck.cpp.
SmallVector<std::pair<StringRef, size_t> > PrefixMatcher::Prefixes |
Prefixes and their first occurrence past the current position.
Definition at line 1655 of file FileCheck.cpp.