| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | TypoCorrection.h | 42 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 D | SemaInternal.h | 86 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 D | ExternalSemaSource.h | 210 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, in CorrectTypo() 216 return TypoCorrection(); in CorrectTypo()
|
| H A D | MultiplexExternalSemaSource.h | 344 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
|
| H A D | Sema.h | 4269 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 D | IncludeFixer.cpp | 120 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 D | IncludeFixer.h | 106 clang::TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
|
| /llvm-project-15.0.7/clang/unittests/Sema/ |
| H A D | ExternalSemaSourceTest.cpp | 107 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 D | IncludeFixer.cpp | 493 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 D | SemaLookup.cpp | 4481 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 D | MultiplexExternalSemaSource.cpp | 314 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 D | SemaExprMember.cpp | 606 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 D | SemaCXXScopeSpec.cpp | 452 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 637 if (TypoCorrection Corrected = CorrectTypo( in BuildCXXNestedNameSpecifier()
|
| H A D | SemaTemplateVariadic.cpp | 976 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 1021 if (TypoCorrection Corrected = in ActOnSizeofParameterPackExpr()
|
| H A D | SemaDeclObjC.cpp | 510 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 D | SemaExprCXX.cpp | 8326 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 D | SemaExprObjC.cpp | 2105 if (TypoCorrection Corrected = CorrectTypo( in HandleExprPropertyRefExpr() 2272 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() 2356 if (TypoCorrection Corrected = CorrectTypo( in getObjCMessageKind()
|
| H A D | SemaDecl.cpp | 80 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 D | SemaTemplate.cpp | 519 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 D | SemaExpr.cpp | 2170 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 D | FrontendActionTest.cpp | 203 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 D | ASTUtils.h | 544 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 D | lambda-expressions.cpp | 639 namespace TypoCorrection { namespace
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseTentative.cpp | 1119 bool ValidateCandidate(const TypoCorrection &Candidate) override { in ValidateCandidate()
|
| H A D | ParseStmt.cpp | 145 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate()
|