Lines Matching full:typo

4393 // Typo correction
4411 /// Check whether the declarations found for a typo correction are
4493 // Don't consider hidden names for typo correction. in FoundDecl()
4506 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo) in FoundDecl()
4513 // Compute the edit distance between the typo and the name of this in FoundName()
4519 // Compute the edit distance between the typo and this keyword, in addKeywordResult()
4528 StringRef TypoStr = Typo->getName(); in addName()
4548 StringRef TypoStr = Typo->getName(); in addCorrection()
4552 // base identifier from the typo or which have a normalized edit distance in addCorrection()
4553 // longer than the typo itself. in addCorrection()
4675 Name == Typo && !Candidate.WillReplaceSpecifier()); in resolveCorrection()
4718 unsigned TypoLen = Typo->getName().size(); in performQualifiedLookups()
4741 // too far away from the original typo based on the normalized edit in performQualifiedLookups()
4744 if (QR.getCorrectionAsIdentifierInfo() != Typo && TmpED && in performQualifiedLookups()
4763 OldOStream << Typo->getName(); in performQualifiedLookups()
4910 /// Perform name lookup for a possible result for typo correction.
4965 /// Add keywords to the consumer as possible typo corrections.
5127 // In Microsoft mode, don't perform typo correction in a template member in makeTypoCorrectionConsumer()
5135 IdentifierInfo *Typo = TypoName.getName().getAsIdentifierInfo(); in makeTypoCorrectionConsumer() local
5136 if (!Typo) in makeTypoCorrectionConsumer()
5149 if (S && S->isInObjcMethodScope() && Typo == getSuperIdentifier()) in makeTypoCorrectionConsumer()
5152 // Abort if typo correction already failed for this specific typo. in makeTypoCorrectionConsumer()
5153 IdentifierSourceLocations::iterator locs = TypoCorrectionFailures.find(Typo); in makeTypoCorrectionConsumer()
5159 // TODO: Figure out why typo correction misbehaves in this case, fix it, and in makeTypoCorrectionConsumer()
5161 if ((getLangOpts().AltiVec || getLangOpts().ZVector) && Typo->isStr("vector")) in makeTypoCorrectionConsumer()
5177 getModuleLoader().lookupMissingImports(Typo->getName(), in makeTypoCorrectionConsumer()
5182 // to avoid allocations in the hot path (which is where no typo correction in makeTypoCorrectionConsumer()
5285 IdentifierInfo *Typo = TypoName.getName().getAsIdentifierInfo(); in CorrectTypo() local
5295 return FailedCorrection(Typo, TypoName.getLoc(), RecordFailure); in CorrectTypo()
5298 // is not more that about a third of the length of the typo's identifier. in CorrectTypo()
5300 unsigned TypoLen = Typo->getName().size(); in CorrectTypo()
5302 return FailedCorrection(Typo, TypoName.getLoc(), RecordFailure); in CorrectTypo()
5307 return FailedCorrection(Typo, TypoName.getLoc(), RecordFailure); in CorrectTypo()
5315 return FailedCorrection(Typo, TypoName.getLoc(), RecordFailure); in CorrectTypo()
5323 // Don't correct to a keyword that's the same as the typo; the keyword in CorrectTypo()
5326 return FailedCorrection(Typo, TypoName.getLoc(), RecordFailure); in CorrectTypo()
5342 // Don't correct to a keyword that's the same as the typo; the keyword in CorrectTypo()
5346 return FailedCorrection(Typo, TypoName.getLoc(), RecordFailure); in CorrectTypo()
5354 // filter out possible corrections, also cache the failure for the typo. in CorrectTypo()
5355 return FailedCorrection(Typo, TypoName.getLoc(), RecordFailure && !SecondBestTC); in CorrectTypo()
5368 // Give the external sema source a chance to correct the typo. in CorrectTypoDelayed()
5382 // is not more that about a third of the length of the typo's identifier. in CorrectTypoDelayed()
5384 IdentifierInfo *Typo = TypoName.getName().getAsIdentifierInfo(); in CorrectTypoDelayed() local
5385 if (!ExternalTypo && ED > 0 && Typo->getName().size() / ED < 3) in CorrectTypoDelayed()
5485 // A typo for a function-style cast can look like a function call in C++. in ValidateCandidate()