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 22daed7001
commit e320ce42ab

View File

@ -634,6 +634,7 @@ struct Handler_TextDocumentCompletion
#if LLVM_VERSION_MAJOR >= 7
CCOpts.IncludeFixIts = true;
#endif
CCOpts.IncludeMacros = true;
if (cache.IsCacheValid(params)) {
CompletionConsumer Consumer(CCOpts, true);
cache.WithLock([&]() { Consumer.ls_items = cache.result; });