Home | History | Annotate | Download | only in Sema

Lines Matching refs:Correction

215       TypoCorrection Correction = CorrectTypo(Result.getLookupNameInfo(),
217 IdentifierInfo *NewII = Correction.getCorrectionAsIdentifierInfo();
222 NestedNameSpecifier *NNS = Correction.getCorrectionSpecifier();
228 if (Correction && (NNS || NewII != &II) &&
229 // Ignore a correction to a template type as the to-be-corrected
230 // identifier is not a template (typo correction for template names
240 std::string CorrectedStr(Correction.getAsString(getLangOpts()));
242 Correction.getQuoted(getLangOpts()));
247 if (NamedDecl *FirstDecl = Correction.getCorrectionDecl())
258 // If typo correction failed or was not performed, fall through
656 // Perform typo correction to determine if there is another name that is
697 // Typo correction corrected to a keyword.
1416 /// typo-correction fixes this name, the Id will be updated
1421 /// \param DoTypoCorrection If true, this routine will attempt typo correction
1434 // Perform typo correction at the given location, but only if we
1755 // This wording came in via DR424, which was a correction to the
5410 /// or performing typo correction if there are no previous declarations with
5413 /// Returns a NamedDecl iff typo correction was performed and substituting in
5425 TypoCorrection Correction;
5451 // If the qualified name lookup yielded nothing, try typo correction
5452 } else if ((Correction = SemaRef.CorrectTypo(Prev.getLookupNameInfo(),
5459 ExtraArgs.D.SetIdentifier(Correction.getCorrectionAsIdentifierInfo(),
5462 Previous.setLookupName(Correction.getCorrection());
5463 for (TypoCorrection::decl_iterator CDecl = Correction.begin(),
5464 CDeclEnd = Correction.end();
5478 Correction.getCorrectionDecl()->getDeclContext(),
5482 // Pretend the typo correction never occurred
5498 // Ignore the correction if it didn't yield any close FunctionDecl matches
5499 Correction = TypoCorrection();
5506 if (Correction) {
5507 // FIXME: use Correction.getCorrectionRange() instead of computing the range
5509 // turn causes the correction to fully qualify the name. If we fix
5513 if (Correction.getCorrectionSpecifier() && SS.isValid())
5516 << Name << NewDC << Correction.getQuoted(SemaRef.getLangOpts())
5518 FixItLoc, Correction.getAsString(SemaRef.getLangOpts()));
5542 } else if (Correction) {
5544 << Correction.getQuoted(SemaRef.getLangOpts());
8905 // Because typo correction is expensive, only do it if the implicit