/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 | 103 typedef SmallVector<TypoCorrection, 1> TypoResultList; 124 ValidatedCorrections.push_back(TypoCorrection()); in TypoCorrectionConsumer() 134 void addCorrection(TypoCorrection Correction); 153 return Normalized ? TypoCorrection::NormalizeEditDistance(BestED) : BestED; in getBestEditDistance() 168 const TypoCorrection &getNextCorrection(); 171 const TypoCorrection &getCurrentCorrection() { in getCurrentCorrection() 181 const TypoCorrection &peekNextCorrection() { in peekNextCorrection() 183 const TypoCorrection &TC = getNextCorrection(); in peekNextCorrection() 296 bool resolveCorrection(TypoCorrection &Candidate); 314 SmallVector<TypoCorrection, 4> ValidatedCorrections; [all …]
|
D | ExternalSemaSource.h | 198 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, in CorrectTypo() 204 return TypoCorrection(); in CorrectTypo()
|
D | MultiplexExternalSemaSource.h | 326 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
|
D | Sema.h | 2712 typedef std::function<void(const TypoCorrection &)> TypoDiagnosticGenerator; 2713 typedef std::function<ExprResult(Sema &, TypoExpr *, TypoCorrection)> 2833 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, 2891 void diagnoseTypo(const TypoCorrection &Correction, 2895 void diagnoseTypo(const TypoCorrection &Correction, 2913 bool TypoCorrection = false); 3166 TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc, 3170 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 | 3669 TypoCorrection &Candidate) { in isCandidateViable() 3671 return Candidate.getEditDistance(false) != TypoCorrection::InvalidDistance; in isCandidateViable() 3686 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { in checkCorrectionVisibility() 3690 TypoCorrection::decl_iterator DI = TC.begin(), DE = TC.end(); in checkCorrectionVisibility() 3719 TC = TypoCorrection(); in checkCorrectionVisibility() 3817 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); in addName() 3825 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) { in addCorrection() 3900 const TypoCorrection &TypoCorrectionConsumer::getNextCorrection() { in getNextCorrection() 3919 TypoCorrection TC = RI->second.pop_back_val(); in getNextCorrection() 3928 bool TypoCorrectionConsumer::resolveCorrection(TypoCorrection &Candidate) { in resolveCorrection() [all …]
|
D | MultiplexExternalSemaSource.cpp | 288 TypoCorrection MultiplexExternalSemaSource::CorrectTypo( in CorrectTypo() 296 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, in CorrectTypo() 301 return TypoCorrection(); in CorrectTypo()
|
D | SemaExprMember.cpp | 569 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 665 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord() 679 [=](Sema &SemaRef, TypoExpr *TE, TypoCorrection TC) mutable { in LookupMemberExprInRecord() 1328 if (TypoCorrection Corrected = S.CorrectTypo( in LookupMemberExpr()
|
D | SemaTemplateVariadic.cpp | 804 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 844 if (TypoCorrection Corrected = in ActOnSizeofParameterPackExpr()
|
D | SemaCXXScopeSpec.cpp | 414 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 593 if (TypoCorrection Corrected = CorrectTypo( in BuildCXXNestedNameSpecifier()
|
D | SemaDeclObjC.cpp | 441 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 482 if (TypoCorrection Corrected = CorrectTypo( in ActOnSuperClassOfClassInterface() 1214 TypoCorrection Corrected = CorrectTypo( in FindProtocolDeclaration() 1264 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 1585 TypoCorrection corrected = CorrectTypo( in actOnObjCTypeArgsOrProtocolQualifiers() 1877 TypoCorrection Corrected = CorrectTypo( in ActOnStartClassImplementation()
|
D | SemaDecl.cpp | 75 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 329 TypoCorrection Correction = CorrectTypo( in getTypeName() 566 if (TypoCorrection Corrected = in DiagnoseUnknownTypeName() 809 if (TypoCorrection Corrected = CorrectTypo(Result.getLookupNameInfo(), in ClassifyName() 1645 if (TypoCorrection C = CorrectTypo( in getObjCInterfaceDecl() 6839 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 6844 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate() 6888 TypoCorrection Correction; in DiagnoseInvalidRedeclaration() 6930 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration() 11346 TypoCorrection Corrected; in ImplicitlyDefineFunction()
|
D | SemaExprCXX.cpp | 6400 TypoCorrection TC) { in attemptRecovery() 6488 TypoCorrection TC = State.Consumer->getCurrentCorrection(); in EmitAllDiagnostics() 6639 while (TypoCorrection TC = State.Consumer->getNextCorrection()) { in TransformTypoExpr() 6649 TypoCorrection Next; in TransformTypoExpr()
|
D | SemaExprObjC.cpp | 1883 if (TypoCorrection Corrected = in HandleExprPropertyRefExpr() 2031 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 2110 if (TypoCorrection Corrected = CorrectTypo( in getObjCMessageKind()
|
D | SemaExpr.cpp | 1760 const TypoCorrection &TC, Sema &SemaRef, const CXXScopeSpec &SS, in emitEmptyLookupTypoDiagnostic() 1882 TypoCorrection Corrected; in DiagnoseEmptyLookup() 1889 [=](const TypoCorrection &TC) { in DiagnoseEmptyLookup() 4378 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 4392 static TypoCorrection TryTypoCorrectionForCall(Sema &S, Expr *Fn, in TryTypoCorrectionForCall() 4399 if (TypoCorrection Corrected = S.CorrectTypo( in TryTypoCorrectionForCall() 4428 return TypoCorrection(); in TryTypoCorrectionForCall() 4464 TypoCorrection TC; in ConvertArgumentsForCall() 4500 TypoCorrection TC; in ConvertArgumentsForCall()
|
D | SemaDeclCXX.cpp | 2828 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 2942 TypoCorrection Corr; in BuildMemInitializer() 7501 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 7515 if (TypoCorrection Corrected = in TryNamespaceTypoCorrection() 7962 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate() 8149 if (TypoCorrection Corrected = CorrectTypo( in BuildUsingDeclaration()
|
D | SemaInit.cpp | 1913 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 2124 if (TypoCorrection Corrected = SemaRef.CorrectTypo( in CheckDesignatedInitializer()
|
D | SemaOpenMP.cpp | 974 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate() 997 if (TypoCorrection Corrected = CorrectTypo( in ActOnOpenMPIdExpression()
|
D | SemaTemplate.cpp | 328 if (TypoCorrection Corrected = CorrectTypo( in LookupTemplateName()
|
/external/clang/lib/Parse/ |
D | ParseTentative.cpp | 1015 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
|
D | ParseStmt.cpp | 131 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
|
D | ParseExpr.cpp | 482 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
|