Searched refs:BestTC (Results 1 – 2 of 2) sorted by relevance
5373 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo() local5375 if (!BestTC) in CorrectTypo()5378 ED = BestTC.getEditDistance(); in CorrectTypo()5390 const TypoCorrection &Result = BestTC; in CorrectTypo()5405 if (BestTC.getCorrection().getAsString() != "super") { in CorrectTypo()5407 BestTC = SecondBestTC; in CorrectTypo()5409 BestTC = (*Consumer)["super"].front(); in CorrectTypo()5413 if (BestTC.getEditDistance() == 0 || in CorrectTypo()5414 BestTC.getCorrection().getAsString() != "super") in CorrectTypo()5417 BestTC.setCorrectionRange(SS, TypoName); in CorrectTypo()[all …]
2632 auto BestTC = State.Consumer->getNextCorrection(); in ActOnIdExpression() local2633 if (BestTC.isKeyword()) { in ActOnIdExpression()2634 auto *II = BestTC.getCorrectionAsIdentifierInfo(); in ActOnIdExpression()2636 State.DiagHandler(BestTC); in ActOnIdExpression()2640 KeywordReplacement->setLocation(BestTC.getCorrectionRange().getBegin()); in ActOnIdExpression()