Searched refs:BestTC (Results 1 – 2 of 2) sorted by relevance
5400 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo() local5402 if (!BestTC) in CorrectTypo()5405 ED = BestTC.getEditDistance(); in CorrectTypo()5417 const TypoCorrection &Result = BestTC; in CorrectTypo()5432 if (BestTC.getCorrection().getAsString() != "super") { in CorrectTypo()5434 BestTC = SecondBestTC; in CorrectTypo()5436 BestTC = (*Consumer)["super"].front(); in CorrectTypo()5440 if (BestTC.getEditDistance() == 0 || in CorrectTypo()5441 BestTC.getCorrection().getAsString() != "super") in CorrectTypo()5444 BestTC.setCorrectionRange(SS, TypoName); in CorrectTypo()[all …]
2831 auto BestTC = State.Consumer->getNextCorrection(); in ActOnIdExpression() local2832 if (BestTC.isKeyword()) { in ActOnIdExpression()2833 auto *II = BestTC.getCorrectionAsIdentifierInfo(); in ActOnIdExpression()2835 State.DiagHandler(BestTC); in ActOnIdExpression()2839 KeywordReplacement->setLocation(BestTC.getCorrectionRange().getBegin()); in ActOnIdExpression()