LLVM  4.0.0
Public Member Functions | Public Attributes | List of all members
llvm::SpecialCaseList::Entry Struct Reference

Represents a set of regular expressions. More...

Collaboration diagram for llvm::SpecialCaseList::Entry:
[legend]

Public Member Functions

bool match (StringRef Query) const
 

Public Attributes

StringSet Strings
 
TrigramIndex Trigrams
 
std::unique_ptr< RegexRegEx
 

Detailed Description

Represents a set of regular expressions.

Regular expressions which are "literal" (i.e. no regex metacharacters) are stored in Strings, while all others are represented as a single pipe-separated regex in RegEx. The reason for doing so is efficiency; StringSet is much faster at matching literal strings than Regex.

Definition at line 35 of file SpecialCaseList.cpp.

Member Function Documentation

bool llvm::SpecialCaseList::Entry::match ( StringRef  Query) const
inline

Member Data Documentation

std::unique_ptr<Regex> llvm::SpecialCaseList::Entry::RegEx

Definition at line 38 of file SpecialCaseList.cpp.

Referenced by match().

StringSet llvm::SpecialCaseList::Entry::Strings

Definition at line 36 of file SpecialCaseList.cpp.

Referenced by match().

TrigramIndex llvm::SpecialCaseList::Entry::Trigrams

Definition at line 37 of file SpecialCaseList.cpp.

Referenced by match().


The documentation for this struct was generated from the following file: