• Home
  • Raw
  • Download

Lines Matching refs:Correction

3911 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) {  in addCorrection()  argument
3913 StringRef Name = Correction.getCorrectionAsIdentifierInfo()->getName(); in addCorrection()
3919 (Name != TypoStr || Correction.getEditDistance(true) > TypoStr.size())) in addCorrection()
3923 if (Correction.isResolved()) { in addCorrection()
3924 checkCorrectionVisibility(SemaRef, Correction); in addCorrection()
3925 if (!Correction || !isCandidateViable(*CorrectionValidator, Correction)) in addCorrection()
3930 CorrectionResults[Correction.getEditDistance(false)][Name]; in addCorrection()
3934 if (NamedDecl *NewND = Correction.getCorrectionDecl()) { in addCorrection()
3935 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts()); in addCorrection()
3944 *RI = Correction; in addCorrection()
3949 if (CList.empty() || Correction.isResolved()) in addCorrection()
3950 CList.push_back(Correction); in addCorrection()
4651 if (TypoCorrection Correction = ExternalSource->CorrectTypo( in CorrectTypo() local
4653 return Correction; in CorrectTypo()
4927 void Sema::diagnoseTypo(const TypoCorrection &Correction, in diagnoseTypo() argument
4930 diagnoseTypo(Correction, TypoDiag, PDiag(diag::note_previous_decl), in diagnoseTypo()
5057 void Sema::diagnoseTypo(const TypoCorrection &Correction, in diagnoseTypo() argument
5061 std::string CorrectedStr = Correction.getAsString(getLangOpts()); in diagnoseTypo()
5062 std::string CorrectedQuotedStr = Correction.getQuoted(getLangOpts()); in diagnoseTypo()
5064 Correction.getCorrectionRange(), CorrectedStr); in diagnoseTypo()
5067 if (Correction.requiresImport()) { in diagnoseTypo()
5068 NamedDecl *Decl = Correction.getFoundDecl(); in diagnoseTypo()
5071 diagnoseMissingImport(Correction.getCorrectionRange().getBegin(), Decl, in diagnoseTypo()
5076 Diag(Correction.getCorrectionRange().getBegin(), TypoDiag) in diagnoseTypo()
5080 Correction.isKeyword() ? nullptr : Correction.getFoundDecl(); in diagnoseTypo()