clang-tools 20.0.0git
|
#include <FuzzyMatch.h>
Public Member Functions | |
FuzzyMatcher (llvm::StringRef Pattern) | |
std::optional< float > | match (llvm::StringRef Word) |
llvm::StringRef | pattern () const |
bool | empty () const |
llvm::SmallString< 256 > | dumpLast (llvm::raw_ostream &) const |
Definition at line 71 of file FuzzyMatch.h.
clang::clangd::FuzzyMatcher::FuzzyMatcher | ( | llvm::StringRef | Pattern | ) |
Definition at line 76 of file FuzzyMatch.cpp.
References clang::clangd::AwfulScore, clang::clangd::calculateRoles(), and clang::clangd::lower().
llvm::SmallString< 256 > clang::clangd::FuzzyMatcher::dumpLast | ( | llvm::raw_ostream & | OS | ) | const |
Definition at line 308 of file FuzzyMatch.cpp.
References C, clang::clangd::isAwful(), OS, Score, and clang::clangd::Upper.
|
inline |
Definition at line 83 of file FuzzyMatch.h.
std::optional< float > clang::clangd::FuzzyMatcher::match | ( | llvm::StringRef | Word | ) |
Definition at line 92 of file FuzzyMatch.cpp.
References clang::clangd::isAwful(), clang::clangd::PerfectBonus, Score, and Word.
|
inline |
Definition at line 82 of file FuzzyMatch.h.