Home
last modified time | relevance | path

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

/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dedit_distance.h44 unsigned MaxEditDistance = 0) {
92 if (MaxEditDistance && BestThisRow > MaxEditDistance)
93 return MaxEditDistance + 1;
H A DStringRef.h241 unsigned MaxEditDistance = 0) const;
/freebsd-13.1/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.cpp1050 const unsigned MaxEditDistance; member in clang::comments::__anon759a9bde0211::SimpleTypoCorrector
1058 : BestDecl(nullptr), Typo(Typo), MaxEditDistance((Typo.size() + 2) / 3), in SimpleTypoCorrector()
1059 BestEditDistance(MaxEditDistance + 1), BestIndex(0), NextIndex(0) {} in SimpleTypoCorrector()
1064 if (BestEditDistance > MaxEditDistance) in getBestDecl()
1089 unsigned EditDistance = Typo.edit_distance(Name, true, MaxEditDistance); in addDecl()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DStringRef.cpp94 unsigned MaxEditDistance) const { in edit_distance()
98 AllowReplacements, MaxEditDistance); in edit_distance()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp3660 const unsigned MaxEditDistance = 1; in HelperSelectorsForTypoCorrection() local
3661 unsigned BestEditDistance = MaxEditDistance + 1; in HelperSelectorsForTypoCorrection()
3668 unsigned EditDistance = Typo.edit_distance(MethodName, true, MaxEditDistance); in HelperSelectorsForTypoCorrection()
3669 if (EditDistance > MaxEditDistance) in HelperSelectorsForTypoCorrection()