Home
last modified time | relevance | path

Searched refs:MaxEditDistance (Results 1 – 9 of 9) 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.h224 unsigned MaxEditDistance = 0) const;
228 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/include/clang/Basic/
H A DSimpleTypoCorrection.h28 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 DSimpleTypoCorrection.cpp32 Candidate, /*AllowReplacements*/ true, MaxEditDistance); in add()
62 return BestEditDistance <= MaxEditDistance; in hasCorrection()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DCommentCommandTraits.cpp53 const unsigned MaxEditDistance = 1; in getTypoCorrectCommandInfo() local
55 unsigned BestEditDistance = MaxEditDistance; in getTypoCorrectCommandInfo()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DStringRef.cpp95 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 DMultilib.cpp100 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 DSemaDeclObjC.cpp3680 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()