Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaLookup.cpp3892 StringRef TypoStr = Typo->getName(); in addName() local
3893 unsigned MinED = abs((int)Name.size() - (int)TypoStr.size()); in addName()
3894 if (MinED && TypoStr.size() / MinED < 3) in addName()
3899 unsigned UpperBound = (TypoStr.size() + 2) / 3 + 1; in addName()
3900 unsigned ED = TypoStr.edit_distance(Name, true, UpperBound); in addName()
3912 StringRef TypoStr = Typo->getName(); in addCorrection() local
3918 if (TypoStr.size() < 3 && in addCorrection()
3919 (Name != TypoStr || Correction.getEditDistance(true) > TypoStr.size())) in addCorrection()