• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching refs:Correction

4182 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) {
4184 StringRef Name = Correction.getCorrectionAsIdentifierInfo()->getName();
4190 (Name != TypoStr || Correction.getEditDistance(true) > TypoStr.size()))
4194 if (Correction.isResolved()) {
4195 checkCorrectionVisibility(SemaRef, Correction);
4196 if (!Correction || !isCandidateViable(*CorrectionValidator, Correction))
4201 CorrectionResults[Correction.getEditDistance(false)][Name];
4205 if (NamedDecl *NewND = Correction.getCorrectionDecl()) {
4206 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts());
4209 // If the Correction refers to a decl already in the result list,
4210 // replace the existing result if the string representation of Correction
4212 // nothing more to be done to add Correction to the candidate set.
4215 *RI = Correction;
4220 if (CList.empty() || Correction.isResolved())
4221 CList.push_back(Correction);
4924 if (TypoCorrection Correction =
4927 return Correction;
5209 void Sema::diagnoseTypo(const TypoCorrection &Correction,
5212 diagnoseTypo(Correction, TypoDiag, PDiag(diag::note_previous_decl),
5346 /// \param Correction The result of performing typo correction.
5355 void Sema::diagnoseTypo(const TypoCorrection &Correction,
5359 std::string CorrectedStr = Correction.getAsString(getLangOpts());
5360 std::string CorrectedQuotedStr = Correction.getQuoted(getLangOpts());
5362 Correction.getCorrectionRange(), CorrectedStr);
5365 if (Correction.requiresImport()) {
5366 NamedDecl *Decl = Correction.getFoundDecl();
5369 diagnoseMissingImport(Correction.getCorrectionRange().getBegin(), Decl,
5374 Diag(Correction.getCorrectionRange().getBegin(), TypoDiag)
5378 Correction.isKeyword() ? nullptr : Correction.getFoundDecl();
5384 for (const PartialDiagnostic &PD : Correction.getExtraDiagnostics())
5385 Diag(Correction.getCorrectionRange().getBegin(), PD);