Home | History | Annotate | Download | only in Sema

Lines Matching refs:TypoCorrection

34 #include "clang/Sema/TypoCorrection.h"
3141 typedef SmallVector<TypoCorrection, 1> TypoResultList;
3171 void addCorrection(TypoCorrection Correction);
3190 return Normalized ? TypoCorrection::NormalizeEditDistance(BestED) : BestED;
3244 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, Distance);
3249 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) {
3669 TypoCorrection &Candidate) {
3671 return Candidate.getEditDistance(false) != TypoCorrection::InvalidDistance;
3701 /// \returns a \c TypoCorrection containing the corrected name if the typo
3704 /// it (C++ only). The \c TypoCorrection is empty if there is no correction.
3705 TypoCorrection Sema::CorrectTypo(const DeclarationNameInfo &TypoName,
3713 return TypoCorrection();
3720 return TypoCorrection();
3725 return TypoCorrection();
3730 return TypoCorrection();
3735 return TypoCorrection();
3739 return TypoCorrection();
3754 TypoCorrection EmptyCorrection;
3773 return TypoCorrection();
3779 return TypoCorrection();
3798 return TypoCorrection();
3806 return TypoCorrection();
3851 return TypoCorrection();
3862 return TypoCorrection();
3886 SmallVector<TypoCorrection, 16> QualifiedResults;
3930 TypoCorrection &Candidate = I->second.front();
3952 return TypoCorrection();
3988 for (SmallVector<TypoCorrection,
4009 TypoCorrection TC(*QRI);
4017 TypoCorrection TC(*QRI);
4041 if (Consumer.empty()) return TypoCorrection();
4053 return TypoCorrection();
4059 const TypoCorrection &Result = CorrectionList.front();
4060 if (CorrectionList.size() != 1) return TypoCorrection();
4064 if (ED == 0 && Result.isKeyword()) return TypoCorrection();
4070 TypoCorrection TC = Result;
4086 if (ED == 0) return TypoCorrection();
4092 TypoCorrection TC = BestResults["super"].front();
4102 return TypoCorrection();
4105 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) {
4117 std::string TypoCorrection::getAsString(const LangOptions &LO) const {