Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaLookup.cpp4681 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo() local
4683 if (!BestTC) in CorrectTypo()
4686 ED = BestTC.getEditDistance(); in CorrectTypo()
4697 SecondBestTC.getEditDistance(false) > BestTC.getEditDistance(false)) { in CorrectTypo()
4698 const TypoCorrection &Result = BestTC; in CorrectTypo()
4713 if (BestTC.getCorrection().getAsString() != "super") { in CorrectTypo()
4715 BestTC = SecondBestTC; in CorrectTypo()
4717 BestTC = (*Consumer)["super"].front(); in CorrectTypo()
4721 if (BestTC.getEditDistance() == 0 || in CorrectTypo()
4722 BestTC.getCorrection().getAsString() != "super") in CorrectTypo()
[all …]
DSemaExpr.cpp2240 auto BestTC = State.Consumer->getNextCorrection(); in ActOnIdExpression() local
2241 if (BestTC.isKeyword()) { in ActOnIdExpression()
2242 auto *II = BestTC.getCorrectionAsIdentifierInfo(); in ActOnIdExpression()
2244 State.DiagHandler(BestTC); in ActOnIdExpression()
2248 KeywordReplacement->setLocation(BestTC.getCorrectionRange().getBegin()); in ActOnIdExpression()