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

References

tools/clang/tools/extra/clangd/FuzzyMatch.cpp
   83   Scores[0][0][Match] = {AwfulScore, Miss};
   86       for (Action A : {Miss, Match})
   99                        Scores[PatN][WordN][Match].Score);
  220     Scores[0][W + 1][Match] = {AwfulScore, Miss};
  226       auto MatchMissScore = PreMiss[Match].Score;
  229         MatchMissScore -= skipPenalty(W, Match);
  233                         ? ScoreInfo{MatchMissScore, Match}
  238           allowMatch(P, W, Match)
  239               ? PreMatch[Match].Score + matchBonus(P, W, Match)
  239               ? PreMatch[Match].Score + matchBonus(P, W, Match)
  244       Score[Match] = (MatchMatchScore > MissMatchScore)
  245                          ? ScoreInfo{MatchMatchScore, Match}
  293   if (W == 0 || Last == Match)
  323   } else if (isAwful(std::max(Scores[PatN][WordN][Match].Score,
  334       (Scores[PatN][WordN][Match].Score > Scores[PatN][WordN][Miss].Score)
  335           ? Match
  342     if (Last == Match)
  349     if (A[I] == Match && (I == 0 || A[I - 1] == Miss))
  351     if (A[I] == Miss && I > 0 && A[I - 1] == Match)
  355   if (A[WordN - 1] == Match)
  362     OS << " " << (A[I] == Match ? Pat[J++] : ' ') << " ";
  384     for (Action A : {Miss, Match}) {
  389                              Scores[I][J][A].Prev == Match ? '*' : ' ');