Searched refs:Typo (Results 1 - 13 of 13) sorted by relevance

/external/clang/lib/AST/
H A DCommentCommandTraits.cpp47 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 DCommentSema.cpp955 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 DCommentCommandTraits.h148 const CommandInfo *getTypoCorrectCommandInfo(StringRef Typo) const;
H A DCommentSema.h239 unsigned correctTypoInParmVarReference(StringRef Typo,
247 StringRef Typo,
/external/clang/unittests/Sema/
H A DExternalSemaSourceTest.cpp104 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 DExternalSemaSource.h199 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, argument
H A DMultiplexExternalSemaSource.h344 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
H A DSema.h2641 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 Dp14.cpp112 Typo foo(); // expected-error{{unknown type name 'Typo'}}
/external/clang/test/SemaCXX/
H A Dfunctional-cast.cpp316 typedef itn Typo; // expected-error {{unknown type name 'itn'}} typedef
317 (void)Typo(1); // used to crash
/external/clang/lib/Sema/
H A DSemaLookup.cpp3265 // 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 DMultiplexExternalSemaSource.cpp283 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 DSemaDeclObjC.cpp2417 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

Completed in 197 milliseconds