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.h91 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 …]
DExternalSemaSource.h194 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, in CorrectTypo()
200 return TypoCorrection(); in CorrectTypo()
DMultiplexExternalSemaSource.h339 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
DSema.h2533 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/
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.cpp3348 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 …]
DMultiplexExternalSemaSource.cpp284 TypoCorrection MultiplexExternalSemaSource::CorrectTypo( in CorrectTypo()
292 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, in CorrectTypo()
297 return TypoCorrection(); in CorrectTypo()
DSemaExprMember.cpp570 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()
DSemaCXXScopeSpec.cpp414 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
590 if (TypoCorrection Corrected = CorrectTypo( in BuildCXXNestedNameSpecifier()
DSemaTemplateVariadic.cpp803 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
843 if (TypoCorrection Corrected = in ActOnSizeofParameterPackExpr()
DSemaDeclObjC.cpp440 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()
DSemaDecl.cpp77 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()
DSemaExpr.cpp1726 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 …]
DSemaExprObjC.cpp1636 if (TypoCorrection Corrected = in HandleExprPropertyRefExpr()
1787 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
1866 if (TypoCorrection Corrected = CorrectTypo( in getObjCMessageKind()
DSemaExprCXX.cpp6059 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()
DSemaDeclCXX.cpp2850 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()
DSemaOpenMP.cpp644 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
667 if (TypoCorrection Corrected = CorrectTypo( in ActOnOpenMPIdExpression()
DSemaInit.cpp1827 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
1983 if (TypoCorrection Corrected = SemaRef.CorrectTypo( in CheckDesignatedInitializer()
DSemaTemplate.cpp327 if (TypoCorrection Corrected = CorrectTypo( in LookupTemplateName()
/external/clang/lib/Parse/
DParseTentative.cpp1023 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
DParseStmt.cpp134 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
DParseExpr.cpp454 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()