summaryrefslogtreecommitdiff
path: root/include/clang/Sema/MultiplexExternalSemaSource.h
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2013-08-12 19:54:38 +0000
committerKaelyn Uhrain <rikka@google.com>2013-08-12 19:54:38 +0000
commit70571f43ab9ae399cd005eaee02f4ca1ecbc3a81 (patch)
tree10e8007f3791207dd1f87d46387787dd1044aa9c /include/clang/Sema/MultiplexExternalSemaSource.h
parentf86c13921f6e2f586f4613ab3cb4a84c8693541f (diff)
downloadclang-70571f43ab9ae399cd005eaee02f4ca1ecbc3a81.tar.gz
Add hooks for typo correction to ExternalSemaSource, courtesy of Luke Zarko.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/MultiplexExternalSemaSource.h')
-rw-r--r--include/clang/Sema/MultiplexExternalSemaSource.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/clang/Sema/MultiplexExternalSemaSource.h b/include/clang/Sema/MultiplexExternalSemaSource.h
index 033400743b..bb7ba239ca 100644
--- a/include/clang/Sema/MultiplexExternalSemaSource.h
+++ b/include/clang/Sema/MultiplexExternalSemaSource.h
@@ -331,6 +331,15 @@ public:
virtual void ReadLateParsedTemplates(
llvm::DenseMap<const FunctionDecl *, LateParsedTemplate *> &LPTMap);
+ /// \copydoc ExternalSemaSource::CorrectTypo
+ /// \note Returns the first nonempty correction.
+ virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
+ int LookupKind, Scope *S, CXXScopeSpec *SS,
+ CorrectionCandidateCallback &CCC,
+ DeclContext *MemberContext,
+ bool EnteringContext,
+ const ObjCObjectPointerType *OPT);
+
// isa/cast/dyn_cast support
static bool classof(const MultiplexExternalSemaSource*) { return true; }
//static bool classof(const ExternalSemaSource*) { return true; }