Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaLookup.cpp5373 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo() local
5375 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 …]
H A DSemaExpr.cpp2632 auto BestTC = State.Consumer->getNextCorrection(); in ActOnIdExpression() local
2633 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()