reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/tools/extra/clangd/FuzzyMatch.cpp
   98   auto Best = std::max(Scores[PatN][WordN][Miss].Score,
   99                        Scores[PatN][WordN][Match].Score);
  106   if (WordN == PatN)
  182   WordN = std::min<int>(MaxWord, NewWord.size());
  183   if (PatN > WordN)
  185   std::copy(NewWord.begin(), NewWord.begin() + WordN, Word);
  188   for (int I = 0; I < WordN; ++I)
  193     if (W == WordN)
  202   WordTypeSet = calculateRoles(llvm::StringRef(Word, WordN),
  203                                llvm::makeMutableArrayRef(WordRole, WordN));
  217   for (int W = 0; W < WordN; ++W) {
  223     for (int W = P; W < WordN; ++W) {
  310   OS << "=== Match \"" << llvm::StringRef(Word, WordN) << "\" against ["
  314     return Result = llvm::StringRef(Word, WordN);
  316   if (WordN == 0) {
  323   } else if (isAwful(std::max(Scores[PatN][WordN][Match].Score,
  324                               Scores[PatN][WordN][Miss].Score))) {
  334       (Scores[PatN][WordN][Match].Score > Scores[PatN][WordN][Miss].Score)
  334       (Scores[PatN][WordN][Match].Score > Scores[PatN][WordN][Miss].Score)
  339   for (int W = WordN - 1, P = PatN - 1; W >= 0; --W) {
  348   for (int I = 0; I < WordN; ++I) {
  355   if (A[WordN - 1] == Match)
  358   for (char C : llvm::StringRef(Word, WordN))
  361   for (int I = 0, J = 0; I < WordN; I++)
  364   for (int I = 0; I < WordN; I++)
  369   OS << "\n'" << llvm::StringRef(Word, WordN) << "'\n ";
  370   for (int I = 0; I < WordN; ++I)
  379   for (char C : llvm::StringRef(Word, WordN))
  382   OS << "-+----" << std::string(WordN * 4, '-') << "\n";
  386       for (int J = 0; J <= WordN; ++J) {