Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp5400 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo() local
5402 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 …]
H A DSemaExpr.cpp2831 auto BestTC = State.Consumer->getNextCorrection(); in ActOnIdExpression() local
2832 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()