clang-tools 20.0.0git
Classes | Public Member Functions | List of all members
clang::clangd::FuzzyMatcher Class Reference

#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
 

Detailed Description

Definition at line 71 of file FuzzyMatch.h.

Constructor & Destructor Documentation

◆ FuzzyMatcher()

clang::clangd::FuzzyMatcher::FuzzyMatcher ( llvm::StringRef  Pattern)

Member Function Documentation

◆ dumpLast()

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.

◆ empty()

bool clang::clangd::FuzzyMatcher::empty ( ) const
inline

Definition at line 83 of file FuzzyMatch.h.

◆ match()

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.

◆ pattern()

llvm::StringRef clang::clangd::FuzzyMatcher::pattern ( ) const
inline

Definition at line 82 of file FuzzyMatch.h.


The documentation for this class was generated from the following files: