Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
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()
/external/llvm/include/llvm/ADT/
Dedit_distance.h45 unsigned MaxEditDistance = 0) {
93 if (MaxEditDistance && BestThisRow > MaxEditDistance)
94 return MaxEditDistance + 1;
DStringRef.h201 unsigned MaxEditDistance = 0) const;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
Dedit_distance.h44 unsigned MaxEditDistance = 0) {
92 if (MaxEditDistance && BestThisRow > MaxEditDistance)
93 return MaxEditDistance + 1;
DStringRef.h235 unsigned MaxEditDistance = 0) const;
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
Dedit_distance.h45 unsigned MaxEditDistance = 0) {
93 if (MaxEditDistance && BestThisRow > MaxEditDistance)
94 return MaxEditDistance + 1;
DStringRef.h221 unsigned MaxEditDistance = 0) const;
/external/llvm-project/llvm/include/llvm/ADT/
Dedit_distance.h44 unsigned MaxEditDistance = 0) {
92 if (MaxEditDistance && BestThisRow > MaxEditDistance)
93 return MaxEditDistance + 1;
DStringRef.h244 unsigned MaxEditDistance = 0) const;
/external/clang/lib/AST/
DCommentCommandTraits.cpp54 const unsigned MaxEditDistance = 1; in getTypoCorrectCommandInfo() local
56 unsigned BestEditDistance = MaxEditDistance; in getTypoCorrectCommandInfo()
DCommentSema.cpp954 const unsigned MaxEditDistance; member in clang::comments::__anon5185a10c0211::SimpleTypoCorrector
963 Typo(Typo), MaxEditDistance((Typo.size() + 2) / 3), in SimpleTypoCorrector()
964 BestDecl(nullptr), BestEditDistance(MaxEditDistance + 1), in SimpleTypoCorrector()
971 if (BestEditDistance > MaxEditDistance) in getBestDecl()
996 unsigned EditDistance = Typo.edit_distance(Name, true, MaxEditDistance); in addDecl()
/external/llvm-project/clang/lib/AST/
DCommentCommandTraits.cpp54 const unsigned MaxEditDistance = 1; in getTypoCorrectCommandInfo() local
56 unsigned BestEditDistance = MaxEditDistance; in getTypoCorrectCommandInfo()
DCommentSema.cpp1050 const unsigned MaxEditDistance; member in clang::comments::__anon216bdd1a0211::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()
/external/llvm/lib/Support/
DStringRef.cpp106 unsigned MaxEditDistance) const { in edit_distance()
110 AllowReplacements, MaxEditDistance); in edit_distance()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DStringRef.cpp97 unsigned MaxEditDistance) const { in edit_distance()
101 AllowReplacements, MaxEditDistance); in edit_distance()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DStringRef.cpp111 unsigned MaxEditDistance) const { in edit_distance()
115 AllowReplacements, MaxEditDistance); in edit_distance()
/external/llvm-project/llvm/lib/Support/
DStringRef.cpp97 unsigned MaxEditDistance) const { in edit_distance()
101 AllowReplacements, MaxEditDistance); in edit_distance()
/external/llvm-project/clang/test/Analysis/
Dllvm-conventions.cpp66 unsigned MaxEditDistance = 0) const;
/external/clang/lib/Sema/
DSemaDeclObjC.cpp3552 const unsigned MaxEditDistance = 1; in HelperSelectorsForTypoCorrection() local
3553 unsigned BestEditDistance = MaxEditDistance + 1; in HelperSelectorsForTypoCorrection()
3560 unsigned EditDistance = Typo.edit_distance(MethodName, true, MaxEditDistance); in HelperSelectorsForTypoCorrection()
3561 if (EditDistance > MaxEditDistance) in HelperSelectorsForTypoCorrection()
/external/llvm-project/clang/lib/Sema/
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()