Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaLookup.cpp5382 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo() local
5384 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 …]
H A DSemaExpr.cpp2631 auto BestTC = State.Consumer->getNextCorrection(); in ActOnIdExpression() local
2632 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()