Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaLookup.cpp3806 StringRef TypoStr = Typo->getName(); in addName() local
3807 unsigned MinED = abs((int)Name.size() - (int)TypoStr.size()); in addName()
3808 if (MinED && TypoStr.size() / MinED < 3) in addName()
3813 unsigned UpperBound = (TypoStr.size() + 2) / 3 + 1; in addName()
3814 unsigned ED = TypoStr.edit_distance(Name, true, UpperBound); in addName()
3826 StringRef TypoStr = Typo->getName(); in addCorrection() local
3832 if (TypoStr.size() < 3 && in addCorrection()
3833 (Name != TypoStr || Correction.getEditDistance(true) > TypoStr.size())) in addCorrection()