Home | History | Annotate | Download | only in Sema

Lines Matching defs:Corrected

229           // Ignore a correction to a template type as the to-be-corrected
412 if (TypoCorrection Corrected = CorrectTypo(DeclarationNameInfo(II, IILoc),
415 std::string CorrectedStr(Corrected.getAsString(getLangOpts()));
416 std::string CorrectedQuotedStr(Corrected.getQuoted(getLangOpts()));
418 if (Corrected.isKeyword()) {
419 // We corrected to a keyword.
420 IdentifierInfo *NewII = Corrected.getCorrectionAsIdentifierInfo();
428 NamedDecl *Result = Corrected.getCorrectionDecl();
437 << FixItHint::CreateReplacement(Corrected.getCorrectionRange(),
440 llvm_unreachable("could not have corrected a typo here");
618 Corrected:
660 if (TypoCorrection Corrected = CorrectTypo(Result.getLookupNameInfo(),
665 std::string CorrectedStr(Corrected.getAsString(getLangOpts()));
666 std::string CorrectedQuotedStr(Corrected.getQuoted(getLangOpts()));
668 NamedDecl *FirstDecl = Corrected.getCorrectionDecl();
691 << FixItHint::CreateReplacement(Corrected.getCorrectionRange(),
695 Name = Corrected.getCorrectionAsIdentifierInfo();
697 // Typo correction corrected to a keyword.
698 if (Corrected.isKeyword())
699 return Corrected.getCorrectionAsIdentifierInfo();
704 Result.setLookupName(Corrected.getCorrection());
721 goto Corrected;
5474 // pieces need to verify the typo-corrected C++ declaraction and hopefully
8908 TypoCorrection Corrected;
8910 if (S && (Corrected = CorrectTypo(DeclarationNameInfo(&II, Loc),
8912 std::string CorrectedStr = Corrected.getAsString(getLangOpts());
8913 std::string CorrectedQuotedStr = Corrected.getQuoted(getLangOpts());
8914 FunctionDecl *Func = Corrected.getCorrectionDeclAs<FunctionDecl>();