/freebsd-9.3-release/contrib/llvm/tools/clang/lib/AST/ |
H A D | CommentCommandTraits.cpp | 48 StringRef Typo, const CommandInfo *Command) { 53 unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size()); 55 Typo.size() / MinPossibleEditDistance < 1) 57 unsigned EditDistance = Typo.edit_distance(Name, true, MaxEditDistance); 70 CommandTraits::getTypoCorrectCommandInfo(StringRef Typo) const { 73 if (Typo.size() <= 1) 80 HelperTypoCorrectCommandInfo(BestCommand, Typo, &Commands[i]); 84 HelperTypoCorrectCommandInfo(BestCommand, Typo, RegisteredCommands[i]); 47 HelperTypoCorrectCommandInfo(SmallVectorImpl<const CommandInfo *> &BestCommand, StringRef Typo, const CommandInfo *Command) argument
|
H A D | CommentSema.cpp | 922 StringRef Typo; member in class:clang::comments::__anon2989::SimpleTypoCorrector 931 SimpleTypoCorrector(StringRef Typo) : argument 932 Typo(Typo), MaxEditDistance((Typo.size() + 2) / 3), 960 unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size()); 962 Typo.size() / MinPossibleEditDistance < 3) 965 unsigned EditDistance = Typo.edit_distance(Name, true, MaxEditDistance); 975 StringRef Typo, 977 SimpleTypoCorrector Corrector(Typo); 974 correctTypoInParmVarReference( StringRef Typo, ArrayRef<const ParmVarDecl *> ParamVars) argument 1039 correctTypoInTParamReference( StringRef Typo, const TemplateParameterList *TemplateParameters) argument [all...] |
/freebsd-9.3-release/contrib/llvm/tools/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,
|
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Sema/ |
H A D | ExternalSemaSource.h | 199 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, argument
|
H A D | MultiplexExternalSemaSource.h | 336 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
|
H A D | Sema.h | 2506 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, 2740 TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc, argument 2744 (void)UnqualifiedTyposCorrected[Typo]; 2746 TypoCorrectionFailures[Typo].insert(TypoLoc);
|
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Sema/ |
H A D | SemaLookup.cpp | 3385 // Typo correction 3398 StringRef Typo; member in class:__anon3299::TypoCorrectionConsumer 3410 explicit TypoCorrectionConsumer(Sema &SemaRef, IdentifierInfo *Typo) argument 3411 : Typo(Typo->getName()), 3467 if (!LookupResult::isVisible(SemaRef, ND) && Name->getName() != Typo && 3490 unsigned MinED = abs((int)Name.size() - (int)Typo.size()); 3491 if (MinED && Typo.size() / MinED < 3) 3496 unsigned UpperBound = (Typo.size() + 2) / 3 + 1; 3497 unsigned ED = Typo [all...] |
H A D | MultiplexExternalSemaSource.cpp | 278 const DeclarationNameInfo &Typo, 285 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, 277 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 | 2341 StringRef Typo, const ObjCMethodDecl * Method) { 2346 unsigned MinPossibleEditDistance = abs((int)MethodName.size() - (int)Typo.size()); 2348 Typo.size() / MinPossibleEditDistance < 1) 2350 unsigned EditDistance = Typo.edit_distance(MethodName, true, MaxEditDistance); 2339 HelperSelectorsForTypoCorrection( SmallVectorImpl<const ObjCMethodDecl *> &BestMethod, StringRef Typo, const ObjCMethodDecl * Method) argument
|