Include macros in completion result

This commit is contained in:
Riatre Foo 2018-09-23 06:10:03 +08:00 committed by Fangrui Song
parent e24079366b
commit 3abbca6474

View File

@ -622,6 +622,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; });