Home
last modified time | relevance | path

Searched refs:BestEditDistance (Results 1 – 5 of 5) sorted by relevance

/openbsd/gnu/llvm/clang/lib/AST/
H A DCommentCommandTraits.cpp56 unsigned BestEditDistance = MaxEditDistance; in getTypoCorrectCommandInfo() local
63 if (MinPossibleEditDistance <= BestEditDistance) { in getTypoCorrectCommandInfo()
64 unsigned EditDistance = Typo.edit_distance(Name, true, BestEditDistance); in getTypoCorrectCommandInfo()
65 if (EditDistance < BestEditDistance) { in getTypoCorrectCommandInfo()
66 BestEditDistance = EditDistance; in getTypoCorrectCommandInfo()
69 if (EditDistance == BestEditDistance) in getTypoCorrectCommandInfo()
H A DCommentSema.cpp987 unsigned BestEditDistance; member in clang::comments::__anond0a2fb370211::SimpleTypoCorrector
994 BestEditDistance(MaxEditDistance + 1), BestIndex(0), NextIndex(0) {} in SimpleTypoCorrector()
999 if (BestEditDistance > MaxEditDistance) in getBestDecl()
1025 if (EditDistance < BestEditDistance) { in addDecl()
1026 BestEditDistance = EditDistance; in addDecl()
/openbsd/gnu/llvm/clang/lib/Frontend/
H A DCompilerInstance.cpp2047 unsigned BestEditDistance = (std::numeric_limits<unsigned>::max)(); in loadModule() local
2052 /*AllowReplacements=*/true, BestEditDistance); in loadModule()
2053 if (ED <= BestEditDistance) { in loadModule()
2054 if (ED < BestEditDistance) { in loadModule()
2056 BestEditDistance = ED; in loadModule()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaDeclObjC.cpp3677 unsigned BestEditDistance = MaxEditDistance + 1; in HelperSelectorsForTypoCorrection() local
3687 if (EditDistance == BestEditDistance) in HelperSelectorsForTypoCorrection()
3689 else if (EditDistance < BestEditDistance) { in HelperSelectorsForTypoCorrection()
H A DSemaDeclAttr.cpp1765 unsigned BestEditDistance = 3; in checkAssumptionAttr() local
1770 if (EditDistance < BestEditDistance) { in checkAssumptionAttr()
1772 BestEditDistance = EditDistance; in checkAssumptionAttr()