Home | History | Annotate | Download | only in Sema

Lines Matching full:correction

3013 // Typo correction
3059 void addCorrection(TypoCorrection Correction);
3086 // Don't consider hidden names for typo correction.
3150 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) {
3151 StringRef Name = Correction.getCorrectionAsIdentifierInfo()->getName();
3152 TypoResultsMap *& Map = BestResults[Correction.getEditDistance()];
3160 CurrentCorrection.isKeyword() < Correction.isKeyword() ||
3161 Correction.getAsString(SemaRef.getLangOptions()) <
3163 CurrentCorrection = Correction;
3283 /// \brief Perform name lookup for a possible result for typo correction.
3533 /// \param CTC The context in which typo correction occurs, which impacts the
3542 /// it (C++ only). The \c TypoCorrection is empty if there is no correction.
3642 // If this was an unqualified lookup, note that no correction was found.
3649 // Make sure that the user typed at least 3 characters for each correction
3653 // If this was an unqualified lookup, note that no correction was found.
3798 // If this was an unqualified lookup, note that no correction was found.
3823 const llvm::StringMapEntry<TypoCorrection> &Correction = *(BestResults.begin());
3824 const TypoCorrection &Result = Correction.second;
3830 // Record the correction for unqualified lookup.
3845 // Record the correction for unqualified lookup.