From 70571f43ab9ae399cd005eaee02f4ca1ecbc3a81 Mon Sep 17 00:00:00 2001 From: Kaelyn Uhrain Date: Mon, 12 Aug 2013 19:54:38 +0000 Subject: 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 --- include/clang/Sema/MultiplexExternalSemaSource.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/clang/Sema/MultiplexExternalSemaSource.h') 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 &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; } -- cgit v1.2.1