From ce0d44e26fa2ff7e0f866aeb8bec4045362c20d5 Mon Sep 17 00:00:00 2001 From: Riatre Foo Date: Sun, 14 Oct 2018 07:58:08 +0800 Subject: [PATCH] Enable documentation for signatureHelp on clang 7 --- src/messages/textDocument_signatureHelp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messages/textDocument_signatureHelp.cc b/src/messages/textDocument_signatureHelp.cc index 420ec164..8b579713 100644 --- a/src/messages/textDocument_signatureHelp.cc +++ b/src/messages/textDocument_signatureHelp.cc @@ -103,7 +103,7 @@ public: const char *ret_type = nullptr; SignatureInformation &ls_sig = ls_sighelp.signatures.emplace_back(); -#if LLVM_VERSION_MAJOR >= 8 +#if LLVM_VERSION_MAJOR >= 7 const RawComment *RC = getCompletionComment(S.getASTContext(), Cand.getFunction()); ls_sig.documentation = RC ? RC->getBriefText(S.getASTContext()) : ""; #endif @@ -183,7 +183,7 @@ void MessageHandler::textDocument_signatureHelp( CodeCompleteOptions CCOpts; CCOpts.IncludeGlobals = false; CCOpts.IncludeMacros = false; - CCOpts.IncludeBriefComments = false; + CCOpts.IncludeBriefComments = true; if (cache.IsCacheValid(path, begin_pos)) { SignatureHelpConsumer Consumer(CCOpts, true); cache.WithLock([&]() { Consumer.ls_sighelp = cache.result; });