From 61a61dd4a24716dd11c07c50e48a91d8a66a962a Mon Sep 17 00:00:00 2001 From: Riatre Foo Date: Sun, 23 Sep 2018 06:10:03 +0800 Subject: [PATCH] Include macros in completion result --- src/messages/textDocument_completion.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/messages/textDocument_completion.cc b/src/messages/textDocument_completion.cc index d207ad36..c40c4a58 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -622,6 +622,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; });