/external/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
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()
|
/external/llvm/include/llvm/ADT/ |
D | edit_distance.h | 45 unsigned MaxEditDistance = 0) { 93 if (MaxEditDistance && BestThisRow > MaxEditDistance) 94 return MaxEditDistance + 1;
|
D | StringRef.h | 201 unsigned MaxEditDistance = 0) const;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | edit_distance.h | 44 unsigned MaxEditDistance = 0) { 92 if (MaxEditDistance && BestThisRow > MaxEditDistance) 93 return MaxEditDistance + 1;
|
D | StringRef.h | 235 unsigned MaxEditDistance = 0) const;
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | edit_distance.h | 45 unsigned MaxEditDistance = 0) { 93 if (MaxEditDistance && BestThisRow > MaxEditDistance) 94 return MaxEditDistance + 1;
|
D | StringRef.h | 221 unsigned MaxEditDistance = 0) const;
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | edit_distance.h | 44 unsigned MaxEditDistance = 0) { 92 if (MaxEditDistance && BestThisRow > MaxEditDistance) 93 return MaxEditDistance + 1;
|
D | StringRef.h | 244 unsigned MaxEditDistance = 0) const;
|
/external/clang/lib/AST/ |
D | CommentCommandTraits.cpp | 54 const unsigned MaxEditDistance = 1; in getTypoCorrectCommandInfo() local 56 unsigned BestEditDistance = MaxEditDistance; in getTypoCorrectCommandInfo()
|
D | CommentSema.cpp | 954 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/ |
D | CommentCommandTraits.cpp | 54 const unsigned MaxEditDistance = 1; in getTypoCorrectCommandInfo() local 56 unsigned BestEditDistance = MaxEditDistance; in getTypoCorrectCommandInfo()
|
D | CommentSema.cpp | 1050 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/ |
D | StringRef.cpp | 106 unsigned MaxEditDistance) const { in edit_distance() 110 AllowReplacements, MaxEditDistance); in edit_distance()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | StringRef.cpp | 97 unsigned MaxEditDistance) const { in edit_distance() 101 AllowReplacements, MaxEditDistance); in edit_distance()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | StringRef.cpp | 111 unsigned MaxEditDistance) const { in edit_distance() 115 AllowReplacements, MaxEditDistance); in edit_distance()
|
/external/llvm-project/llvm/lib/Support/ |
D | StringRef.cpp | 97 unsigned MaxEditDistance) const { in edit_distance() 101 AllowReplacements, MaxEditDistance); in edit_distance()
|
/external/llvm-project/clang/test/Analysis/ |
D | llvm-conventions.cpp | 66 unsigned MaxEditDistance = 0) const;
|
/external/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 3552 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/ |
D | SemaDeclObjC.cpp | 3660 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()
|