Searched refs:MaxEditDistance (Results 1 – 9 of 9) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | edit_distance.h | 47 unsigned MaxEditDistance = 0) { 63 if (MaxEditDistance) { 68 if (AbsDiff > MaxEditDistance) 69 return MaxEditDistance + 1; 97 if (MaxEditDistance && BestThisRow > MaxEditDistance) 98 return MaxEditDistance + 1; 108 unsigned MaxEditDistance = 0) { 111 AllowReplacements, MaxEditDistance);
|
| H A D | StringRef.h | 224 unsigned MaxEditDistance = 0) const; 228 unsigned MaxEditDistance = 0) const;
|
| /freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Marshallers.cpp | 18 llvm::StringRef DropPrefix = "", unsigned MaxEditDistance = 3) { in getBestGuess() argument 19 if (MaxEditDistance != ~0U) in getBestGuess() 20 ++MaxEditDistance; in getBestGuess() 25 MaxEditDistance = 1; in getBestGuess() 30 if (Distance < MaxEditDistance) { in getBestGuess() 31 MaxEditDistance = Distance; in getBestGuess() 38 --MaxEditDistance; // Treat dropping the prefix as 1 edit in getBestGuess() 46 MaxEditDistance = 1; in getBestGuess() 51 if (Distance < MaxEditDistance) { in getBestGuess() 52 MaxEditDistance = Distance; in getBestGuess()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | SimpleTypoCorrection.h | 28 const unsigned MaxEditDistance; variable 35 : BestCandidate(), Typo(Typo), MaxEditDistance((Typo.size() + 2) / 3), in SimpleTypoCorrection() 36 BestEditDistance(MaxEditDistance + 1), BestIndex(0), NextIndex(0) {} in SimpleTypoCorrection()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SimpleTypoCorrection.cpp | 32 Candidate, /*AllowReplacements*/ true, MaxEditDistance); in add() 62 return BestEditDistance <= MaxEditDistance; in hasCorrection()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | CommentCommandTraits.cpp | 53 const unsigned MaxEditDistance = 1; in getTypoCorrectCommandInfo() local 55 unsigned BestEditDistance = MaxEditDistance; in getTypoCorrectCommandInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | StringRef.cpp | 95 unsigned MaxEditDistance) const { in edit_distance() 98 AllowReplacements, MaxEditDistance); in edit_distance() 102 StringRef Other, bool AllowReplacements, unsigned MaxEditDistance) const { in edit_distance_insensitive() 105 llvm::toLower, AllowReplacements, MaxEditDistance); in edit_distance_insensitive()
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ |
| H A D | Multilib.cpp | 100 const unsigned MaxEditDistance = 5; in DiagnoseUnclaimedMultilibCustomFlags() local 109 /*MaxEditDistance=*/MaxEditDistance); in DiagnoseUnclaimedMultilibCustomFlags() 110 if (!BestCandidate || (EditDistance <= MaxEditDistance && in DiagnoseUnclaimedMultilibCustomFlags()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaDeclObjC.cpp | 3680 const unsigned MaxEditDistance = 1; in HelperSelectorsForTypoCorrection() local 3681 unsigned BestEditDistance = MaxEditDistance + 1; in HelperSelectorsForTypoCorrection() 3688 unsigned EditDistance = Typo.edit_distance(MethodName, true, MaxEditDistance); in HelperSelectorsForTypoCorrection() 3689 if (EditDistance > MaxEditDistance) in HelperSelectorsForTypoCorrection()
|