/external/clang/lib/AST/ |
H A D | CommentCommandTraits.cpp | 47 CommandTraits::getTypoCorrectCommandInfo(StringRef Typo) const { 50 if (Typo.size() <= 1) 62 unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size()); 64 unsigned EditDistance = Typo.edit_distance(Name, true, BestEditDistance);
|
H A D | CommentSema.cpp | 955 StringRef Typo; member in class:clang::comments::__anon17723::SimpleTypoCorrector 964 SimpleTypoCorrector(StringRef Typo) : argument 965 Typo(Typo), MaxEditDistance((Typo.size() + 2) / 3), 993 unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size()); 995 Typo.size() / MinPossibleEditDistance < 3) 998 unsigned EditDistance = Typo.edit_distance(Name, true, MaxEditDistance); 1008 StringRef Typo, 1010 SimpleTypoCorrector Corrector(Typo); 1007 correctTypoInParmVarReference( StringRef Typo, ArrayRef<const ParmVarDecl *> ParamVars) argument 1072 correctTypoInTParamReference( StringRef Typo, const TemplateParameterList *TemplateParameters) argument [all...] |
/external/clang/include/clang/AST/ |
H A D | CommentCommandTraits.h | 148 const CommandInfo *getTypoCorrectCommandInfo(StringRef Typo) const;
|
H A D | CommentSema.h | 239 unsigned correctTypoInParmVarReference(StringRef Typo, 247 StringRef Typo,
|
/external/clang/unittests/Sema/ |
H A D | ExternalSemaSourceTest.cpp | 104 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, argument 111 if (CurrentSema && Typo.getName().getAsString() == CorrectFrom) { 121 NamespaceDecl::Create(Context, DestContext, false, Typo.getBeginLoc(), 122 Typo.getLoc(), ToIdent, nullptr);
|
/external/clang/include/clang/Sema/ |
H A D | ExternalSemaSource.h | 199 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, argument
|
H A D | MultiplexExternalSemaSource.h | 344 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
|
H A D | Sema.h | 2641 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, 2872 TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc, argument 2876 (void)UnqualifiedTyposCorrected[Typo]; 2878 TypoCorrectionFailures[Typo].insert(TypoLoc);
|
/external/clang/test/CXX/except/except.spec/ |
H A D | p14.cpp | 112 Typo foo(); // expected-error{{unknown type name 'Typo'}}
|
/external/clang/test/SemaCXX/ |
H A D | functional-cast.cpp | 316 typedef itn Typo; // expected-error {{unknown type name 'itn'}} typedef 317 (void)Typo(1); // used to crash
|
/external/clang/lib/Sema/ |
H A D | SemaLookup.cpp | 3265 // Typo correction 3341 : Typo(TypoName.getName().getAsIdentifierInfo()), SemaRef(SemaRef), S(S), 3452 IdentifierInfo *Typo; member in class:__anon18068::TypoCorrectionConsumer 3490 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo && 3513 StringRef TypoStr = Typo->getName(); 3530 StringRef TypoStr = Typo->getName(); 3627 Name == Typo && !Candidate.WillReplaceSpecifier()); 3668 unsigned TypoLen = Typo->getName().size(); 3693 if (QR.getCorrectionAsIdentifierInfo() != Typo && TmpED && 3712 OldOStream << Typo [all...] |
H A D | MultiplexExternalSemaSource.cpp | 283 const DeclarationNameInfo &Typo, 290 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, 282 CorrectTypo( const DeclarationNameInfo &Typo, int LookupKind, Scope *S, CXXScopeSpec *SS, CorrectionCandidateCallback &CCC, DeclContext *MemberContext, bool EnteringContext, const ObjCObjectPointerType *OPT) argument
|
H A D | SemaDeclObjC.cpp | 2417 StringRef Typo, const ObjCMethodDecl * Method) { 2422 unsigned MinPossibleEditDistance = abs((int)MethodName.size() - (int)Typo.size()); 2424 Typo.size() / MinPossibleEditDistance < 1) 2426 unsigned EditDistance = Typo.edit_distance(MethodName, true, MaxEditDistance); 2415 HelperSelectorsForTypoCorrection( SmallVectorImpl<const ObjCMethodDecl *> &BestMethod, StringRef Typo, const ObjCMethodDecl * Method) argument
|