Lines Matching defs:Correction
2979 // Typo correction
3024 void addCorrection(TypoCorrection Correction);
3051 // Don't consider hidden names for typo correction.
3113 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) {
3114 llvm::StringRef Name = Correction.getCorrectionAsIdentifierInfo()->getName();
3115 TypoResultsMap *& Map = BestResults[Correction.getEditDistance()];
3123 CurrentCorrection.isKeyword() < Correction.isKeyword() ||
3124 Correction.getAsString(SemaRef.getLangOptions()) <
3126 CurrentCorrection = Correction;
3246 /// \brief Perform name lookup for a possible result for typo correction.
3496 /// \param CTC The context in which typo correction occurs, which impacts the
3505 /// it (C++ only). The \c TypoCorrection is empty if there is no correction.
3605 // If this was an unqualified lookup, note that no correction was found.
3612 // Make sure that the user typed at least 3 characters for each correction
3616 // If this was an unqualified lookup, note that no correction was found.
3745 // If this was an unqualified lookup, note that no correction was found.
3770 const llvm::StringMapEntry<TypoCorrection> &Correction = *(BestResults.begin());
3771 const TypoCorrection &Result = Correction.second;
3777 // Record the correction for unqualified lookup.
3792 // Record the correction for unqualified lookup.