Home | History | Annotate | Download | only in Sema

Lines Matching defs:Correction

177       TypoCorrection Correction = CorrectTypo(Result.getLookupNameInfo(),
179 IdentifierInfo *NewII = Correction.getCorrectionAsIdentifierInfo();
184 NestedNameSpecifier *NNS = Correction.getCorrectionSpecifier();
190 if (Correction && (NNS || NewII != &II) &&
191 // Ignore a correction to a template type as the to-be-corrected
192 // identifier is not a template (typo correction for template names
202 std::string CorrectedStr(Correction.getAsString(getLangOpts()));
204 Correction.getQuoted(getLangOpts()));
209 if (NamedDecl *FirstDecl = Correction.getCorrectionDecl())
220 // If typo correction failed or was not performed, fall through
573 // Perform typo correction to determine if there is another name that is
614 // Typo correction corrected to a keyword.
1279 /// typo-correction fixes this name, the Id will be updated
1284 /// \param TypoCorrection If true, this routine will attempt typo correction
1297 // Perform typo correction at the given location, but only if we
1554 // This wording came in via DR424, which was a correction to the
4548 /// or performing typo correction if there are no previous declarations with
4551 /// Returns a NamedDecl iff typo correction was performed and substituting in
4563 TypoCorrection Correction;
4588 // If the qualified name lookup yielded nothing, try typo correction
4589 } else if ((Correction = SemaRef.CorrectTypo(Prev.getLookupNameInfo(),
4596 ExtraArgs.D.SetIdentifier(Correction.getCorrectionAsIdentifierInfo(),
4599 Previous.setLookupName(Correction.getCorrection());
4600 for (TypoCorrection::decl_iterator CDecl = Correction.begin(),
4601 CDeclEnd = Correction.end();
4615 Correction.getCorrectionDecl()->getDeclContext(),
4619 // Pretend the typo correction never occurred
4635 // Ignore the correction if it didn't yield any close FunctionDecl matches
4636 Correction = TypoCorrection();
4643 if (Correction)
4645 << Name << NewDC << Correction.getQuoted(SemaRef.getLangOpts())
4648 Correction.getAsString(SemaRef.getLangOpts()));
4671 } else if (Correction) {
4673 << Correction.getQuoted(SemaRef.getLangOpts());
7603 // Because typo correction is expensive, only do it if the implicit