| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | TypoCorrection.h | 285 explicit CorrectionCandidateCallback(IdentifierInfo *Typo = nullptr, 287 : Typo(Typo), TypoNNS(TypoNNS) {} in Typo() function 322 void setTypoName(IdentifierInfo *II) { Typo = II; } in setTypoName() 341 return Typo && candidate.isResolved() && !candidate.requiresImport() && in MatchesTypo() 342 candidate.getCorrectionAsIdentifierInfo() == Typo && in MatchesTypo() 348 IdentifierInfo *Typo; variable 354 explicit DefaultFilterCCC(IdentifierInfo *Typo = nullptr, 356 : CorrectionCandidateCallback(Typo, TypoNNS) {} in CorrectionCandidateCallback() argument
|
| H A D | SemaInternal.h | 98 : Typo(TypoName.getName().getAsIdentifierInfo()), CurrentTCIndex(0), in TypoCorrectionConsumer() 296 IdentifierInfo *Typo; variable
|
| H A D | ExternalSemaSource.h | 210 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, in CorrectTypo() argument
|
| H A D | MultiplexExternalSemaSource.h | 344 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/ |
| H A D | IncludeFixer.cpp | 185 const DeclarationNameInfo &Typo, int LookupKind, Scope *S, CXXScopeSpec *SS, in CorrectTypo() argument 211 if (!CI->getSourceManager().isWrittenInMainFile(Typo.getLoc())) in CorrectTypo() 264 Typo.getLoc()); in CorrectTypo() 268 } else if (Typo.getName().isIdentifier() && !Typo.getLoc().isMacroID()) { in CorrectTypo() 270 CharSourceRange::getTokenRange(Typo.getBeginLoc(), Typo.getEndLoc()); in CorrectTypo() 275 QueryString = Typo.getAsString(); in CorrectTypo() 276 SymbolRange = CreateToolingRange(Typo.getLoc()); in CorrectTypo() 285 TypoCorrection Correction(Typo.getName()); in CorrectTypo() 286 Correction.setCorrectionRange(SS, Typo); in CorrectTypo() 287 FileID FID = SM.getFileID(Typo.getLoc()); in CorrectTypo()
|
| H A D | IncludeFixer.h | 106 clang::TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | CommentCommandTraits.cpp | 47 CommandTraits::getTypoCorrectCommandInfo(StringRef Typo) const { in getTypoCorrectCommandInfo() 50 if (Typo.size() <= 1) in getTypoCorrectCommandInfo() 62 unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size()); in getTypoCorrectCommandInfo() 64 unsigned EditDistance = Typo.edit_distance(Name, true, BestEditDistance); in getTypoCorrectCommandInfo()
|
| H A D | CommentSema.cpp | 984 StringRef Typo; member in clang::comments::__anon5983895a0211::SimpleTypoCorrector 992 explicit SimpleTypoCorrector(StringRef Typo) in SimpleTypoCorrector() argument 993 : BestDecl(nullptr), Typo(Typo), MaxEditDistance((Typo.size() + 2) / 3), in SimpleTypoCorrector() 1019 unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size()); in addDecl() 1021 Typo.size() / MinPossibleEditDistance < 3) in addDecl() 1024 unsigned EditDistance = Typo.edit_distance(Name, true, MaxEditDistance); in addDecl() 1034 StringRef Typo, in correctTypoInParmVarReference() argument 1036 SimpleTypoCorrector Corrector(Typo); in correctTypoInParmVarReference() 1099 StringRef Typo, in correctTypoInTParamReference() argument 1101 SimpleTypoCorrector Corrector(Typo); in correctTypoInTParamReference()
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | preamble-with-implicit-import.m | 3 // CHECK: error: declaration of 'Typo' must be imported 4 // CHECK: error: declaration of 'Typo' must be imported
|
| /llvm-project-15.0.7/clang/unittests/Sema/ |
| H A D | ExternalSemaSourceTest.cpp | 107 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo() argument 113 if (CurrentSema && Typo.getName().getAsString() == CorrectFrom) { in CorrectTypo() 123 NamespaceDecl::Create(Context, DestContext, false, Typo.getBeginLoc(), in CorrectTypo() 124 Typo.getLoc(), ToIdent, nullptr); in CorrectTypo() 149 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo() argument 155 if (CurrentSema && Typo.getName().getAsString() == CorrectFrom) { in CorrectTypo()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | IncludeFixer.cpp | 459 collectAccessibleScopes(Sema &Sem, const DeclarationNameInfo &Typo, Scope *S, in collectAccessibleScopes() argument 493 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo() argument 498 dlog("CorrectTypo: {0}", Typo.getAsString()); in CorrectTypo() 502 if (!isInsideMainFile(Typo.getLoc(), SemaPtr->SourceMgr)) in CorrectTypo() 506 SemaPtr->SourceMgr, Typo, SS, SemaPtr->LangOpts, in CorrectTypo() 514 Unresolved.Loc = Typo.getBeginLoc(); in CorrectTypo() 522 *SemaPtr, Typo, S, static_cast<Sema::LookupNameKind>(LookupKind)); in CorrectTypo()
|
| /llvm-project-15.0.7/clang/test/Index/Inputs/ |
| H A D | preamble-with-implicit-import.h | 4 void useTypeFromB(Typo *);
|
| H A D | preamble-with-implicit-import-B.h | 3 typedef struct { char x; } Typo; typedef
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | CommentSema.h | 236 unsigned correctTypoInParmVarReference(StringRef Typo, 244 StringRef Typo,
|
| H A D | CommentCommandTraits.h | 151 const CommandInfo *getTypoCorrectCommandInfo(StringRef Typo) const;
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | functional-cast.cpp | 317 typedef itn Typo; // expected-error {{unknown type name 'itn'}} in crash_on_invalid_1() typedef 318 (void)Typo(1); // used to crash in crash_on_invalid_1()
|
| /llvm-project-15.0.7/llvm/test/Object/ |
| H A D | nm-tapi-invalids.test | 10 # Typo Check
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaLookup.cpp | 4545 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo) in FoundDecl() 4567 StringRef TypoStr = Typo->getName(); in addName() 4587 StringRef TypoStr = Typo->getName(); in addCorrection() 4757 unsigned TypoLen = Typo->getName().size(); in performQualifiedLookups() 4783 if (QR.getCorrectionAsIdentifierInfo() != Typo && TmpED && in performQualifiedLookups() 4802 OldOStream << Typo->getName(); in performQualifiedLookups() 5173 IdentifierInfo *Typo = TypoName.getName().getAsIdentifierInfo(); in makeTypoCorrectionConsumer() local 5174 if (!Typo) in makeTypoCorrectionConsumer() 5215 getModuleLoader().lookupMissingImports(Typo->getName(), in makeTypoCorrectionConsumer() 5369 unsigned TypoLen = Typo->getName().size(); in CorrectTypo() [all …]
|
| H A D | MultiplexExternalSemaSource.cpp | 315 const DeclarationNameInfo &Typo, in CorrectTypo() argument 322 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, in CorrectTypo()
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | typo-correction.m | 55 // Typo correction for a property when it has as correction candidates
|
| H A D | parameterized_classes.m | 226 // Typo correction: protocol bias. 229 // Typo correction: type bias. 233 // Typo correction: bias set by correction itself to a protocol. 236 // Typo correction: bias set by correction itself to a type.
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | typo-correction.mm | 41 // Typo correction for a property when it has as correction candidates
|
| /llvm-project-15.0.7/clang/test/CXX/except/except.spec/ |
| H A D | p14.cpp | 123 Typo foo(); // expected-error{{unknown type name 'Typo'}}
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTUtils.h | 545 CorrectTypo(const clang::DeclarationNameInfo &Typo, int LookupKind, in CorrectTypo() argument 552 Source->CorrectTypo(Typo, LookupKind, S, SS, CCC, in CorrectTypo()
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/clang-include-fixer/ |
| H A D | IncludeFixerTest.cpp | 118 TEST(IncludeFixer, Typo) { in TEST() argument
|