/external/clang/include/clang/Sema/ |
D | TypoCorrection.h | 26 class TypoCorrection { 42 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl, 53 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr, 62 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr, 68 TypoCorrection() in TypoCorrection() function 248 static const unsigned InvalidDistance = TypoCorrection::InvalidDistance; 270 virtual bool ValidateCandidate(const TypoCorrection &candidate); 278 virtual unsigned RankCandidate(const TypoCorrection &candidate) { in RankCandidate() 302 bool MatchesTypo(const TypoCorrection &candidate) { in MatchesTypo() 319 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() [all …]
|
D | SemaInternal.h | 91 typedef SmallVector<TypoCorrection, 1> TypoResultList; 112 ValidatedCorrections.push_back(TypoCorrection()); in TypoCorrectionConsumer() 122 void addCorrection(TypoCorrection Correction); 141 return Normalized ? TypoCorrection::NormalizeEditDistance(BestED) : BestED; in getBestEditDistance() 156 const TypoCorrection &getNextCorrection(); 159 const TypoCorrection &getCurrentCorrection() { in getCurrentCorrection() 169 const TypoCorrection &peekNextCorrection() { in peekNextCorrection() 171 const TypoCorrection &TC = getNextCorrection(); in peekNextCorrection() 284 bool resolveCorrection(TypoCorrection &Candidate); 302 SmallVector<TypoCorrection, 4> ValidatedCorrections; [all …]
|
D | ExternalSemaSource.h | 194 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, in CorrectTypo() 200 return TypoCorrection(); in CorrectTypo()
|
D | MultiplexExternalSemaSource.h | 339 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
|
D | Sema.h | 2533 typedef std::function<void(const TypoCorrection &)> TypoDiagnosticGenerator; 2534 typedef std::function<ExprResult(Sema &, TypoExpr *, TypoCorrection)> 2654 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, 2686 void diagnoseTypo(const TypoCorrection &Correction, 2690 void diagnoseTypo(const TypoCorrection &Correction, 2708 bool TypoCorrection = false); 2937 TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc, 2941 return TypoCorrection();
|
/external/clang/unittests/Sema/ |
D | ExternalSemaSourceTest.cpp | 104 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo() 123 TypoCorrection Correction(ToIdent); in CorrectTypo() 127 return TypoCorrection(); in CorrectTypo()
|
/external/clang/lib/Sema/ |
D | SemaLookup.cpp | 3348 TypoCorrection &Candidate) { in isCandidateViable() 3350 return Candidate.getEditDistance(false) != TypoCorrection::InvalidDistance; in isCandidateViable() 3365 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { in checkCorrectionVisibility() 3369 TypoCorrection::decl_iterator DI = TC.begin(), DE = TC.end(); in checkCorrectionVisibility() 3398 TC = TypoCorrection(); in checkCorrectionVisibility() 3496 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); in addName() 3504 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) { in addCorrection() 3574 const TypoCorrection &TypoCorrectionConsumer::getNextCorrection() { in getNextCorrection() 3593 TypoCorrection TC = RI->second.pop_back_val(); in getNextCorrection() 3602 bool TypoCorrectionConsumer::resolveCorrection(TypoCorrection &Candidate) { in resolveCorrection() [all …]
|
D | MultiplexExternalSemaSource.cpp | 284 TypoCorrection MultiplexExternalSemaSource::CorrectTypo( in CorrectTypo() 292 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, in CorrectTypo() 297 return TypoCorrection(); in CorrectTypo()
|
D | SemaExprMember.cpp | 570 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 656 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord() 670 [=](Sema &SemaRef, TypoExpr *TE, TypoCorrection TC) mutable { in LookupMemberExprInRecord() 1301 if (TypoCorrection Corrected = S.CorrectTypo( in LookupMemberExpr()
|
D | SemaCXXScopeSpec.cpp | 414 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 590 if (TypoCorrection Corrected = CorrectTypo( in BuildCXXNestedNameSpecifier()
|
D | SemaTemplateVariadic.cpp | 803 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 843 if (TypoCorrection Corrected = in ActOnSizeofParameterPackExpr()
|
D | SemaDeclObjC.cpp | 440 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 519 if (TypoCorrection Corrected = in ActOnStartClassInterface() 789 TypoCorrection Corrected = CorrectTypo( in FindProtocolDeclaration() 1030 TypoCorrection Corrected = CorrectTypo( in ActOnStartClassImplementation()
|
D | SemaDecl.cpp | 77 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 330 TypoCorrection Correction = CorrectTypo( in getTypeName() 567 if (TypoCorrection Corrected = in DiagnoseUnknownTypeName() 810 if (TypoCorrection Corrected = CorrectTypo(Result.getLookupNameInfo(), in ClassifyName() 1628 if (TypoCorrection C = CorrectTypo( in getObjCInterfaceDecl() 6503 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 6508 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate() 6552 TypoCorrection Correction; in DiagnoseInvalidRedeclaration() 6594 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration() 10840 TypoCorrection Corrected; in ImplicitlyDefineFunction()
|
D | SemaExpr.cpp | 1726 const TypoCorrection &TC, Sema &SemaRef, const CXXScopeSpec &SS, in emitEmptyLookupTypoDiagnostic() 1882 TypoCorrection Corrected; in DiagnoseEmptyLookup() 1889 [=](const TypoCorrection &TC) { in DiagnoseEmptyLookup() 1912 for (TypoCorrection::decl_iterator CD = Corrected.begin(), in DiagnoseEmptyLookup() 4212 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 4226 static TypoCorrection TryTypoCorrectionForCall(Sema &S, Expr *Fn, in TryTypoCorrectionForCall() 4233 if (TypoCorrection Corrected = S.CorrectTypo( in TryTypoCorrectionForCall() 4243 for (TypoCorrection::decl_iterator CD = Corrected.begin(), in TryTypoCorrectionForCall() 4264 return TypoCorrection(); in TryTypoCorrectionForCall() 4301 TypoCorrection TC; in ConvertArgumentsForCall() [all …]
|
D | SemaExprObjC.cpp | 1636 if (TypoCorrection Corrected = in HandleExprPropertyRefExpr() 1787 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 1866 if (TypoCorrection Corrected = CorrectTypo( in getObjCMessageKind()
|
D | SemaExprCXX.cpp | 6059 TypoCorrection TC) { in attemptRecovery() 6145 TypoCorrection TC = State.Consumer->getCurrentCorrection(); in EmitAllDiagnostics() 6288 while (TypoCorrection TC = State.Consumer->getNextCorrection()) { in TransformTypoExpr() 6296 TypoCorrection Next; in TransformTypoExpr()
|
D | SemaDeclCXX.cpp | 2850 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 2964 TypoCorrection Corr; in BuildMemInitializer() 7477 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 7491 if (TypoCorrection Corrected = in TryNamespaceTypoCorrection() 7937 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate() 8120 if (TypoCorrection Corrected = CorrectTypo( in BuildUsingDeclaration()
|
D | SemaOpenMP.cpp | 644 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate() 667 if (TypoCorrection Corrected = CorrectTypo( in ActOnOpenMPIdExpression()
|
D | SemaInit.cpp | 1827 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 1983 if (TypoCorrection Corrected = SemaRef.CorrectTypo( in CheckDesignatedInitializer()
|
D | SemaTemplate.cpp | 327 if (TypoCorrection Corrected = CorrectTypo( in LookupTemplateName()
|
/external/clang/lib/Parse/ |
D | ParseTentative.cpp | 1023 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
|
D | ParseStmt.cpp | 134 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
|
D | ParseExpr.cpp | 454 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
|