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

/freebsd-10.1-release/contrib/llvm/tools/clang/lib/AST/
H A DCommentCommandTraits.cpp48 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 DCommentSema.cpp922 StringRef Typo; member in class:clang::comments::__anon3108::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-10.1-release/contrib/llvm/tools/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,
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DExternalSemaSource.h199 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo, argument
H A DMultiplexExternalSemaSource.h336 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
H A DSema.h2506 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
2740 TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc, argument
2744 (void)UnqualifiedTyposCorrected[Typo];
2746 TypoCorrectionFailures[Typo].insert(TypoLoc);
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaLookup.cpp3385 // Typo correction
3398 StringRef Typo; member in class:__anon3418::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 DMultiplexExternalSemaSource.cpp278 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 DSemaDeclObjC.cpp2341 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

Completed in 240 milliseconds