Searched refs:BestTC (Results 1 – 2 of 2) sorted by relevance
5382 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo() local5384 if (!BestTC) in CorrectTypo()5387 ED = BestTC.getEditDistance(); in CorrectTypo()5399 const TypoCorrection &Result = BestTC; in CorrectTypo()5414 if (BestTC.getCorrection().getAsString() != "super") { in CorrectTypo()5416 BestTC = SecondBestTC; in CorrectTypo()5418 BestTC = (*Consumer)["super"].front(); in CorrectTypo()5422 if (BestTC.getEditDistance() == 0 || in CorrectTypo()5423 BestTC.getCorrection().getAsString() != "super") in CorrectTypo()5426 BestTC.setCorrectionRange(SS, TypoName); in CorrectTypo()[all …]
2631 auto BestTC = State.Consumer->getNextCorrection(); in ActOnIdExpression() local2632 if (BestTC.isKeyword()) { in ActOnIdExpression()2633 auto *II = BestTC.getCorrectionAsIdentifierInfo(); in ActOnIdExpression()2635 State.DiagHandler(BestTC); in ActOnIdExpression()2639 KeywordReplacement->setLocation(BestTC.getCorrectionRange().getBegin()); in ActOnIdExpression()