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
254 static const unsigned InvalidDistance = TypoCorrection::InvalidDistance;
276 virtual bool ValidateCandidate(const TypoCorrection &candidate);
284 virtual unsigned RankCandidate(const TypoCorrection &candidate) { in RankCandidate()
308 bool MatchesTypo(const TypoCorrection &candidate) { in MatchesTypo()
325 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
[all …]
DSemaInternal.h104 typedef SmallVector<TypoCorrection, 1> TypoResultList;
125 ValidatedCorrections.push_back(TypoCorrection()); in TypoCorrectionConsumer()
135 void addCorrection(TypoCorrection Correction);
154 return Normalized ? TypoCorrection::NormalizeEditDistance(BestED) : BestED; in getBestEditDistance()
169 const TypoCorrection &getNextCorrection();
172 const TypoCorrection &getCurrentCorrection() { in getCurrentCorrection()
182 const TypoCorrection &peekNextCorrection() { in peekNextCorrection()
184 const TypoCorrection &TC = getNextCorrection(); in peekNextCorrection()
300 bool resolveCorrection(TypoCorrection &Candidate);
318 SmallVector<TypoCorrection, 4> ValidatedCorrections;
[all …]
DExternalSemaSource.h202 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, in CorrectTypo()
208 return TypoCorrection(); in CorrectTypo()
DMultiplexExternalSemaSource.h330 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
DSema.h2786 typedef std::function<void(const TypoCorrection &)> TypoDiagnosticGenerator;
2787 typedef std::function<ExprResult(Sema &, TypoExpr *, TypoCorrection)>
2907 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
2965 void diagnoseTypo(const TypoCorrection &Correction,
2969 void diagnoseTypo(const TypoCorrection &Correction,
2987 bool TypoCorrection = false);
3247 TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc,
3251 return TypoCorrection();
/external/clang/unittests/Sema/
DExternalSemaSourceTest.cpp108 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo()
127 TypoCorrection Correction(ToIdent); in CorrectTypo()
131 return TypoCorrection(); in CorrectTypo()
150 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo()
169 TypoCorrection Correction(ToIdent); in CorrectTypo()
173 return TypoCorrection(); in CorrectTypo()
/external/clang/lib/Sema/
DSemaLookup.cpp3755 TypoCorrection &Candidate) { in isCandidateViable()
3757 return Candidate.getEditDistance(false) != TypoCorrection::InvalidDistance; in isCandidateViable()
3772 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { in checkCorrectionVisibility()
3776 TypoCorrection::decl_iterator DI = TC.begin(), DE = TC.end(); in checkCorrectionVisibility()
3805 TC = TypoCorrection(); in checkCorrectionVisibility()
3903 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); in addName()
3911 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) { in addCorrection()
3986 const TypoCorrection &TypoCorrectionConsumer::getNextCorrection() { in getNextCorrection()
4005 TypoCorrection TC = RI->second.pop_back_val(); in getNextCorrection()
4014 bool TypoCorrectionConsumer::resolveCorrection(TypoCorrection &Candidate) { in resolveCorrection()
[all …]
DMultiplexExternalSemaSource.cpp293 TypoCorrection MultiplexExternalSemaSource::CorrectTypo( in CorrectTypo()
301 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, in CorrectTypo()
306 return TypoCorrection(); in CorrectTypo()
DSemaExprMember.cpp583 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
679 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord()
693 [=](Sema &SemaRef, TypoExpr *TE, TypoCorrection TC) mutable { in LookupMemberExprInRecord()
1391 if (TypoCorrection Corrected = S.CorrectTypo( in LookupMemberExpr()
DSemaTemplateVariadic.cpp808 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
848 if (TypoCorrection Corrected = in ActOnSizeofParameterPackExpr()
DSemaCXXScopeSpec.cpp438 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
617 if (TypoCorrection Corrected = CorrectTypo( in BuildCXXNestedNameSpecifier()
DSemaDeclObjC.cpp440 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
481 if (TypoCorrection Corrected = CorrectTypo( in ActOnSuperClassOfClassInterface()
1213 TypoCorrection Corrected = CorrectTypo( in FindProtocolDeclaration()
1263 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
1593 TypoCorrection corrected = CorrectTypo( in actOnObjCTypeArgsOrProtocolQualifiers()
1892 TypoCorrection Corrected = CorrectTypo( in ActOnStartClassImplementation()
DSemaDecl.cpp76 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
337 TypoCorrection Correction = CorrectTypo( in getTypeName()
610 if (TypoCorrection Corrected = in DiagnoseUnknownTypeName()
853 if (TypoCorrection Corrected = CorrectTypo(Result.getLookupNameInfo(), in ClassifyName()
1697 if (TypoCorrection C = CorrectTypo( in getObjCInterfaceDecl()
7118 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
7123 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate()
7167 TypoCorrection Correction; in DiagnoseInvalidRedeclaration()
7209 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration()
11754 TypoCorrection Corrected; in ImplicitlyDefineFunction()
DSemaExprObjC.cpp1883 if (TypoCorrection Corrected = in HandleExprPropertyRefExpr()
2046 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
2125 if (TypoCorrection Corrected = CorrectTypo( in getObjCMessageKind()
DSemaExprCXX.cpp6679 const TypoCorrection &TC) { in attemptRecovery()
6767 TypoCorrection TC = State.Consumer->getCurrentCorrection(); in EmitAllDiagnostics()
6926 while (TypoCorrection TC = State.Consumer->getNextCorrection()) { in TransformTypoExpr()
6936 TypoCorrection Next; in TransformTypoExpr()
DSemaExpr.cpp1824 const TypoCorrection &TC, Sema &SemaRef, const CXXScopeSpec &SS, in emitEmptyLookupTypoDiagnostic()
1945 TypoCorrection Corrected; in DiagnoseEmptyLookup()
1952 [=](const TypoCorrection &TC) { in DiagnoseEmptyLookup()
4626 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
4640 static TypoCorrection TryTypoCorrectionForCall(Sema &S, Expr *Fn, in TryTypoCorrectionForCall()
4647 if (TypoCorrection Corrected = S.CorrectTypo( in TryTypoCorrectionForCall()
4676 return TypoCorrection(); in TryTypoCorrectionForCall()
4712 TypoCorrection TC; in ConvertArgumentsForCall()
4748 TypoCorrection TC; in ConvertArgumentsForCall()
DSemaDeclCXX.cpp2831 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
2945 TypoCorrection Corr; in BuildMemInitializer()
7666 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
7680 if (TypoCorrection Corrected = in TryNamespaceTypoCorrection()
8157 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
8356 if (TypoCorrection Corrected = CorrectTypo( in BuildUsingDeclaration()
DSemaOpenMP.cpp1122 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
1139 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
1162 if (TypoCorrection Corrected = CorrectTypo( in ActOnOpenMPIdExpression()
11503 if (TypoCorrection Corrected = in ActOnOpenMPDeclareTargetName()
DSemaInit.cpp1994 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
2205 if (TypoCorrection Corrected = SemaRef.CorrectTypo( in CheckDesignatedInitializer()
DSemaTemplate.cpp330 if (TypoCorrection Corrected = CorrectTypo( in LookupTemplateName()
/external/clang/lib/Parse/
DParseTentative.cpp1087 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
DParseStmt.cpp138 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
DParseExpr.cpp495 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()