Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaLookup.cpp3485 StringRef TypoStr = Typo->getName(); in addName() local
3486 unsigned MinED = abs((int)Name.size() - (int)TypoStr.size()); in addName()
3487 if (MinED && TypoStr.size() / MinED < 3) in addName()
3492 unsigned UpperBound = (TypoStr.size() + 2) / 3 + 1; in addName()
3493 unsigned ED = TypoStr.edit_distance(Name, true, UpperBound); in addName()
3505 StringRef TypoStr = Typo->getName(); in addCorrection() local
3511 if (TypoStr.size() < 3 && in addCorrection()
3512 (Name != TypoStr || Correction.getEditDistance(true) > TypoStr.size())) in addCorrection()