LLVM
8.0.1
|
Represents a set of regular expressions. More...
#include "llvm/Support/SpecialCaseList.h"
Public Member Functions | |
bool | insert (std::string Regexp, unsigned LineNumber, std::string &REError) |
unsigned | match (StringRef Query) const |
Represents a set of regular expressions.
Regular expressions which are "literal" (i.e. no regex metacharacters) are stored in Strings. The reason for doing so is efficiency; StringMap is much faster at matching literal strings than Regex.
Definition at line 118 of file SpecialCaseList.h.
bool llvm::SpecialCaseList::Matcher::insert | ( | std::string | Regexp, |
unsigned | LineNumber, | ||
std::string & | REError | ||
) |
Definition at line 29 of file SpecialCaseList.cpp.
References llvm::TrigramIndex::insert(), llvm::Regex::isLiteralERE(), and llvm::Regex::isValid().
Definition at line 61 of file SpecialCaseList.cpp.
References llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::StringMap< ValueTy, AllocatorTy >::find(), if(), and llvm::TrigramIndex::isDefinitelyOut().