LLVM 17.0.0git
|
#include "llvm/Support/TrigramIndex.h"
Public Member Functions | |
void | insert (const std::string &Regex) |
Inserts a new Regex into the index. | |
bool | isDefinitelyOut (StringRef Query) const |
Returns true, if special case list definitely does not have a line that matches the query. | |
bool | isDefeated () |
Returned true, iff the heuristic is defeated and not useful. | |
Definition at line 37 of file TrigramIndex.h.
void TrigramIndex::insert | ( | const std::string & | Regex | ) |
Inserts a new Regex into the index.
Definition at line 29 of file TrigramIndex.cpp.
References isAdvancedMetachar(), and llvm::size().
Referenced by llvm::SpecialCaseList::Matcher::insert().
|
inline |
Returned true, iff the heuristic is defeated and not useful.
In this case isDefinitelyOut always returns false.
Definition at line 48 of file TrigramIndex.h.
Returns true, if special case list definitely does not have a line that matches the query.
Returns false, if it's not sure.
Definition at line 86 of file TrigramIndex.cpp.
References I, and llvm::StringRef::size().