mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-08 01:04:54 +00:00
Enable documentation for signatureHelp on clang 7
This commit is contained in:
parent
e07a82952c
commit
ce0d44e26f
@ -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; });
|
||||
|
Loading…
Reference in New Issue
Block a user