Home
last modified time | relevance | path

Searched refs:TypoCorrection (Results 1 – 23 of 23) sorted by relevance

/external/clang/include/clang/Sema/
DTypoCorrection.h26 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 …]
DSemaInternal.h103 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 …]
DExternalSemaSource.h198 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, in CorrectTypo()
204 return TypoCorrection(); in CorrectTypo()
DMultiplexExternalSemaSource.h326 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
DSema.h2712 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/
DExternalSemaSourceTest.cpp104 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo()
123 TypoCorrection Correction(ToIdent); in CorrectTypo()
127 return TypoCorrection(); in CorrectTypo()
/external/clang/lib/Sema/
DSemaLookup.cpp3669 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 …]
DMultiplexExternalSemaSource.cpp288 TypoCorrection MultiplexExternalSemaSource::CorrectTypo( in CorrectTypo()
296 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, in CorrectTypo()
301 return TypoCorrection(); in CorrectTypo()
DSemaExprMember.cpp569 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()
DSemaTemplateVariadic.cpp804 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
844 if (TypoCorrection Corrected = in ActOnSizeofParameterPackExpr()
DSemaCXXScopeSpec.cpp414 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
593 if (TypoCorrection Corrected = CorrectTypo( in BuildCXXNestedNameSpecifier()
DSemaDeclObjC.cpp441 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()
DSemaDecl.cpp75 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()
DSemaExprCXX.cpp6400 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()
DSemaExprObjC.cpp1883 if (TypoCorrection Corrected = in HandleExprPropertyRefExpr()
2031 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
2110 if (TypoCorrection Corrected = CorrectTypo( in getObjCMessageKind()
DSemaExpr.cpp1760 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()
DSemaDeclCXX.cpp2828 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()
DSemaInit.cpp1913 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
2124 if (TypoCorrection Corrected = SemaRef.CorrectTypo( in CheckDesignatedInitializer()
DSemaOpenMP.cpp974 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
997 if (TypoCorrection Corrected = CorrectTypo( in ActOnOpenMPIdExpression()
DSemaTemplate.cpp328 if (TypoCorrection Corrected = CorrectTypo( in LookupTemplateName()
/external/clang/lib/Parse/
DParseTentative.cpp1015 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
DParseStmt.cpp131 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
DParseExpr.cpp482 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()