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

References

tools/clang/tools/extra/clangd/FuzzyMatch.cpp
   78       ScoreScale(PatN ? float{1} / (PerfectBonus * PatN) : 0), WordN(0) {
   78       ScoreScale(PatN ? float{1} / (PerfectBonus * PatN) : 0), WordN(0) {
   79   std::copy(Pattern.begin(), Pattern.begin() + PatN, Pat);
   80   for (int I = 0; I < PatN; ++I)
   84   for (int P = 0; P <= PatN; ++P)
   88   PatTypeSet = calculateRoles(llvm::StringRef(Pat, PatN),
   89                               llvm::makeMutableArrayRef(PatRole, PatN));
   95   if (!PatN)
   98   auto Best = std::max(Scores[PatN][WordN][Miss].Score,
   99                        Scores[PatN][WordN][Match].Score);
  103       ScoreScale * std::min(PerfectBonus * PatN, std::max<int>(0, Best));
  106   if (WordN == PatN)
  183   if (PatN > WordN)
  186   if (PatN == 0)
  192   for (int W = 0, P = 0; P != PatN; ++W) {
  222   for (int P = 0; P < PatN; ++P) {
  228       if (P < PatN - 1) { // Skipping trailing characters is always free.
  311      << llvm::StringRef(Pat, PatN) << "] ===\n";
  312   if (PatN == 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) {
  372   OS << "\n[" << llvm::StringRef(Pat, PatN) << "]\n ";
  373   for (int I = 0; I < PatN; ++I)
  383   for (int I = 0; I <= PatN; ++I) {
tools/clang/tools/extra/clangd/FuzzyMatch.h
   82   llvm::StringRef pattern() const { return llvm::StringRef(Pat, PatN); }
   83   bool empty() const { return PatN == 0; }