Home | History | Annotate | Download | only in Sema

Lines Matching refs:Candidate

2867   // candidate set.
3348 TypoCorrection &Candidate) {
3349 Candidate.setCallbackDistance(CCC.RankCandidate(Candidate));
3350 return Candidate.getEditDistance(false) != TypoCorrection::InvalidDistance;
3534 // nothing more to be done to add Correction to the candidate set.
3602 bool TypoCorrectionConsumer::resolveCorrection(TypoCorrection &Candidate) {
3603 IdentifierInfo *Name = Candidate.getCorrectionAsIdentifierInfo();
3610 Name == Typo && !Candidate.WillReplaceSpecifier());
3618 Candidate.WillReplaceSpecifier(true);
3628 QualifiedResults.push_back(Candidate);
3639 Candidate.addCorrectionDecl(TRD);
3640 checkCorrectionVisibility(SemaRef, Candidate);
3641 if (!isCandidateViable(*CorrectionValidator, Candidate)) {
3643 QualifiedResults.push_back(Candidate);
3646 Candidate.setCorrectionRange(SS.get(), Result.getLookupNameInfo());
3660 // current correction candidate is the name of that class, then skip
3674 // If the current correction candidate and namespace combination are
3698 // If correction candidate would be an identical written qualified
4348 /// Expr from a typo correction candidate.
4417 const TypoCorrection &candidate) {
4418 if (!candidate.isResolved())
4421 if (candidate.isKeyword())
4428 for (Decl *D : candidate) {
4442 !candidate.getCorrectionSpecifier())
4458 bool FunctionCallFilterCCC::ValidateCandidate(const TypoCorrection &candidate) {
4459 if (!candidate.getCorrectionDecl())
4460 return candidate.isKeyword();
4462 for (auto *C : candidate) {
4481 // Skip the current candidate if it is not a FunctionDecl or does not accept
4487 // If the current candidate is a non-static C++ method, skip the candidate
4490 // or a descendent class of the candidate's parent class.