mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-23 16:15:07 +00:00
Include macros in completion result
This commit is contained in:
parent
22daed7001
commit
e320ce42ab
@ -634,6 +634,7 @@ struct Handler_TextDocumentCompletion
|
|||||||
#if LLVM_VERSION_MAJOR >= 7
|
#if LLVM_VERSION_MAJOR >= 7
|
||||||
CCOpts.IncludeFixIts = true;
|
CCOpts.IncludeFixIts = true;
|
||||||
#endif
|
#endif
|
||||||
|
CCOpts.IncludeMacros = true;
|
||||||
if (cache.IsCacheValid(params)) {
|
if (cache.IsCacheValid(params)) {
|
||||||
CompletionConsumer Consumer(CCOpts, true);
|
CompletionConsumer Consumer(CCOpts, true);
|
||||||
cache.WithLock([&]() { Consumer.ls_items = cache.result; });
|
cache.WithLock([&]() { Consumer.ls_items = cache.result; });
|
||||||
|
Loading…
Reference in New Issue
Block a user