From e320ce42ab40bea65de350b8114ef25c5f7d4f64 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 e4bc36dc..474d1df8 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -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; });