clang-tools  14.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)
 
llvm::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)

Definition at line 76 of file FuzzyMatch.cpp.

Member Function Documentation

◆ dumpLast()

llvm::SmallString< 256 > clang::clangd::FuzzyMatcher::dumpLast ( llvm::raw_ostream &  OS) const

Definition at line 308 of file FuzzyMatch.cpp.

◆ empty()

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

Definition at line 83 of file FuzzyMatch.h.

◆ match()

llvm::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: