Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaLookup.cpp4599 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo() local
4601 if (!BestTC) in CorrectTypo()
4604 ED = BestTC.getEditDistance(); in CorrectTypo()
4615 SecondBestTC.getEditDistance(false) > BestTC.getEditDistance(false)) { in CorrectTypo()
4616 const TypoCorrection &Result = BestTC; in CorrectTypo()
4631 if (BestTC.getCorrection().getAsString() != "super") { in CorrectTypo()
4633 BestTC = SecondBestTC; in CorrectTypo()
4635 BestTC = (*Consumer)["super"].front(); in CorrectTypo()
4639 if (BestTC.getEditDistance() == 0 || in CorrectTypo()
4640 BestTC.getCorrection().getAsString() != "super") in CorrectTypo()
[all …]
DSemaExpr.cpp2177 auto BestTC = State.Consumer->getNextCorrection(); in ActOnIdExpression() local
2178 if (BestTC.isKeyword()) { in ActOnIdExpression()
2179 auto *II = BestTC.getCorrectionAsIdentifierInfo(); in ActOnIdExpression()
2181 State.DiagHandler(BestTC); in ActOnIdExpression()
2185 KeywordReplacement->setLocation(BestTC.getCorrectionRange().getBegin()); in ActOnIdExpression()