Home
last modified time | relevance | path

Searched refs:MaxEditDistance (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dedit_distance.h47 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 DStringRef.h215 unsigned MaxEditDistance = 0) const;
219 unsigned MaxEditDistance = 0) const;
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.cpp18 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/lib/AST/
H A DCommentCommandTraits.cpp54 const unsigned MaxEditDistance = 1; in getTypoCorrectCommandInfo() local
56 unsigned BestEditDistance = MaxEditDistance; in getTypoCorrectCommandInfo()
H A DCommentSema.cpp984 const unsigned MaxEditDistance; member in clang::comments::__anon91e7d6f20211::SimpleTypoCorrector
992 : BestDecl(nullptr), Typo(Typo), MaxEditDistance((Typo.size() + 2) / 3), in SimpleTypoCorrector()
993 BestEditDistance(MaxEditDistance + 1), BestIndex(0), NextIndex(0) {} in SimpleTypoCorrector()
998 if (BestEditDistance > MaxEditDistance) in getBestDecl()
1023 unsigned EditDistance = Typo.edit_distance(Name, true, MaxEditDistance); in addDecl()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DStringRef.cpp94 unsigned MaxEditDistance) const { in edit_distance()
97 AllowReplacements, MaxEditDistance); in edit_distance()
101 StringRef Other, bool AllowReplacements, unsigned MaxEditDistance) const { in edit_distance_insensitive()
104 llvm::toLower, AllowReplacements, MaxEditDistance); in edit_distance_insensitive()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp3675 const unsigned MaxEditDistance = 1; in HelperSelectorsForTypoCorrection() local
3676 unsigned BestEditDistance = MaxEditDistance + 1; in HelperSelectorsForTypoCorrection()
3683 unsigned EditDistance = Typo.edit_distance(MethodName, true, MaxEditDistance); in HelperSelectorsForTypoCorrection()
3684 if (EditDistance > MaxEditDistance) in HelperSelectorsForTypoCorrection()