Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/include/clang/Sema/
H A DTypoCorrection.h42 class TypoCorrection {
59 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl,
68 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
76 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr,
81 TypoCorrection() = default;
301 virtual bool ValidateCandidate(const TypoCorrection &candidate);
309 virtual unsigned RankCandidate(const TypoCorrection &candidate) { in RankCandidate()
340 bool MatchesTypo(const TypoCorrection &candidate) { in MatchesTypo()
368 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
385 bool ValidateCandidate(const TypoCorrection &candidate) override;
[all …]
H A DSemaInternal.h86 typedef SmallVector<TypoCorrection, 1> TypoResultList;
107 ValidatedCorrections.push_back(TypoCorrection()); in TypoCorrectionConsumer()
117 void addCorrection(TypoCorrection Correction);
136 return Normalized ? TypoCorrection::NormalizeEditDistance(BestED) : BestED; in getBestEditDistance()
151 const TypoCorrection &getNextCorrection();
154 const TypoCorrection &getCurrentCorrection() { in getCurrentCorrection()
164 const TypoCorrection &peekNextCorrection() { in peekNextCorrection()
166 const TypoCorrection &TC = getNextCorrection(); in peekNextCorrection()
287 bool resolveCorrection(TypoCorrection &Candidate);
305 SmallVector<TypoCorrection, 4> ValidatedCorrections;
[all …]
H A DExternalSemaSource.h210 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, in CorrectTypo()
216 return TypoCorrection(); in CorrectTypo()
H A DMultiplexExternalSemaSource.h344 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
H A DSema.h4269 typedef std::function<void(const TypoCorrection &)> TypoDiagnosticGenerator;
4270 typedef std::function<ExprResult(Sema &, TypoExpr *, TypoCorrection)>
4406 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
4460 void diagnoseTypo(const TypoCorrection &Correction,
4464 void diagnoseTypo(const TypoCorrection &Correction,
4495 bool TypoCorrection = false);
4798 TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc,
4802 return TypoCorrection();
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/
H A DIncludeFixer.cpp120 static bool addDiagnosticsForContext(TypoCorrection &Correction, in addDiagnosticsForContext()
165 TypoCorrection Correction; in MaybeDiagnoseMissingCompleteType()
184 clang::TypoCorrection IncludeFixerSemaSource::CorrectTypo( in CorrectTypo()
190 return clang::TypoCorrection(); in CorrectTypo()
212 return clang::TypoCorrection(); in CorrectTypo()
285 TypoCorrection Correction(Typo.getName()); in CorrectTypo()
297 return TypoCorrection(); in CorrectTypo()
H A DIncludeFixer.h106 clang::TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
/llvm-project-15.0.7/clang/unittests/Sema/
H A DExternalSemaSourceTest.cpp107 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo()
126 TypoCorrection Correction(ToIdent); in CorrectTypo()
130 return TypoCorrection(); in CorrectTypo()
149 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo()
169 TypoCorrection Correction(ToIdent); in CorrectTypo()
173 return TypoCorrection(); in CorrectTypo()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeFixer.cpp493 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo()
501 return TypoCorrection(); in CorrectTypo()
503 return clang::TypoCorrection(); in CorrectTypo()
510 return TypoCorrection(); in CorrectTypo()
516 return TypoCorrection(); in CorrectTypo()
533 return TypoCorrection(); in CorrectTypo()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaLookup.cpp4481 TC = TypoCorrection(); in checkCorrectionVisibility()
4697 TypoCorrection TC = RI->second.pop_back_val(); in getNextCorrection()
4758 for (const TypoCorrection &QR : QualifiedResults) { in performQualifiedLookups()
4773 TypoCorrection TC(QR); in performQualifiedLookups()
5342 if (TypoCorrection Correction = in CorrectTypo()
5360 return TypoCorrection(); in CorrectTypo()
5373 TypoCorrection BestTC = Consumer->getNextCorrection(); in CorrectTypo()
5390 const TypoCorrection &Result = BestTC; in CorrectTypo()
5397 TypoCorrection TC = Result; in CorrectTypo()
5476 TypoCorrection ExternalTypo; in CorrectTypoDelayed()
[all …]
H A DMultiplexExternalSemaSource.cpp314 TypoCorrection MultiplexExternalSemaSource::CorrectTypo( in CorrectTypo()
322 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, in CorrectTypo()
327 return TypoCorrection(); in CorrectTypo()
H A DSemaExprMember.cpp606 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
705 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord()
719 [=](Sema &SemaRef, TypoExpr *TE, TypoCorrection TC) mutable { in LookupMemberExprInRecord()
1368 if (TypoCorrection Corrected = S.CorrectTypo( in LookupMemberExpr()
H A DSemaCXXScopeSpec.cpp452 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
637 if (TypoCorrection Corrected = CorrectTypo( in BuildCXXNestedNameSpecifier()
H A DSemaTemplateVariadic.cpp976 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
1021 if (TypoCorrection Corrected = in ActOnSizeofParameterPackExpr()
H A DSemaDeclObjC.cpp510 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
559 if (TypoCorrection Corrected = CorrectTypo( in ActOnSuperClassOfClassInterface()
1307 TypoCorrection Corrected = CorrectTypo( in FindProtocolDeclaration()
1356 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
1689 TypoCorrection corrected = in actOnObjCTypeArgsOrProtocolQualifiers()
1989 TypoCorrection Corrected = in ActOnStartClassImplementation()
H A DSemaExprCXX.cpp8326 const TypoCorrection &TC) { in attemptRecovery()
8419 TypoCorrection TC = IsAmbiguous in EmitAllDiagnostics()
8420 ? TypoCorrection() : State.Consumer->getCurrentCorrection(); in EmitAllDiagnostics()
8586 TypoCorrection TC = SemaRef.getTypoExprState(TE).Consumer->peekNextCorrection(); in RecursiveTransformLoop()
8587 TypoCorrection Next; in RecursiveTransformLoop()
8687 while (TypoCorrection TC = State.Consumer->getNextCorrection()) { in TransformTypoExpr()
8699 TypoCorrection Next; in TransformTypoExpr()
H A DSemaExprObjC.cpp2105 if (TypoCorrection Corrected = CorrectTypo( in HandleExprPropertyRefExpr()
2272 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
2356 if (TypoCorrection Corrected = CorrectTypo( in getObjCMessageKind()
H A DSemaDecl.cpp80 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
383 TypoCorrection Correction = CorrectTypo(Result.getLookupNameInfo(), Kind, in getTypeName()
700 if (TypoCorrection Corrected = in DiagnoseUnknownTypeName()
967 if (TypoCorrection Corrected = in ClassifyName()
2237 if (TypoCorrection C = in getObjCInterfaceDecl()
8675 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
8680 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate()
8732 TypoCorrection Correction; in DiagnoseInvalidRedeclaration()
8776 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration()
15478 TypoCorrection Corrected; in ImplicitlyDefineFunction()
H A DSemaTemplate.cpp519 if (TypoCorrection Corrected = in LookupTemplateName()
678 bool ValidateCandidate(const TypoCorrection &Candidate) override { in diagnoseExprIntendedAsTemplateName()
691 if (TypoCorrection Corrected = CorrectTypo(NameInfo, LookupKind, S, &SS, CCC, in diagnoseExprIntendedAsTemplateName()
3938 bool ValidateCandidate(const TypoCorrection &TC) override { in resolveAssumedTemplateNameAsType()
3947 TypoCorrection Corrected = in resolveAssumedTemplateNameAsType()
H A DSemaExpr.cpp2170 const TypoCorrection &TC, Sema &SemaRef, const CXXScopeSpec &SS, in emitEmptyLookupTypoDiagnostic()
2323 TypoCorrection Corrected; in DiagnoseEmptyLookup()
2330 [=](const TypoCorrection &TC) { in DiagnoseEmptyLookup()
5947 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
5965 static TypoCorrection TryTypoCorrectionForCall(Sema &S, Expr *Fn, in TryTypoCorrectionForCall()
5973 if (TypoCorrection Corrected = S.CorrectTypo( in TryTypoCorrectionForCall()
6000 return TypoCorrection(); in TryTypoCorrectionForCall()
6036 TypoCorrection TC; in ConvertArgumentsForCall()
6074 TypoCorrection TC; in ConvertArgumentsForCall()
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DFrontendActionTest.cpp203 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo()
210 TypoCorrection TC(DeclarationName(&Ctx.Idents.get("moo"))); in CorrectTypo()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTUtils.h544 clang::TypoCorrection
551 if (clang::TypoCorrection C = in CorrectTypo()
556 return clang::TypoCorrection(); in CorrectTypo()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dlambda-expressions.cpp639 namespace TypoCorrection { namespace
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseTentative.cpp1119 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
H A DParseStmt.cpp145 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()

12