From 34c59544205ec7c572ece2f5db5fc359ab858432 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 18 Apr 2019 19:16:24 -0700 Subject: [PATCH] Adapt clang rC358696: removal of OutputIsBinary --- src/messages/textDocument_completion.cc | 7 ++++++- src/messages/textDocument_signatureHelp.cc | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/messages/textDocument_completion.cc b/src/messages/textDocument_completion.cc index 862bdafd..dac6673c 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -394,7 +394,12 @@ public: std::vector ls_items; CompletionConsumer(const CodeCompleteOptions &Opts, bool from_cache) - : CodeCompleteConsumer(Opts, false), + : +#if LLVM_VERSION_MAJOR >= 9 // rC358696 + CodeCompleteConsumer(Opts), +#else + CodeCompleteConsumer(Opts, false), +#endif Alloc(std::make_shared()), CCTUInfo(Alloc), from_cache(from_cache) {} diff --git a/src/messages/textDocument_signatureHelp.cc b/src/messages/textDocument_signatureHelp.cc index 3993b4ef..1c4700ae 100644 --- a/src/messages/textDocument_signatureHelp.cc +++ b/src/messages/textDocument_signatureHelp.cc @@ -63,9 +63,14 @@ class SignatureHelpConsumer : public CodeCompleteConsumer { public: bool from_cache; SignatureHelp ls_sighelp; - SignatureHelpConsumer(const clang::CodeCompleteOptions &CCOpts, + SignatureHelpConsumer(const clang::CodeCompleteOptions &Opts, bool from_cache) - : CodeCompleteConsumer(CCOpts, false), + : +#if LLVM_VERSION_MAJOR >= 9 // rC358696 + CodeCompleteConsumer(Opts), +#else + CodeCompleteConsumer(Opts, false), +#endif Alloc(std::make_shared()), CCTUInfo(Alloc), from_cache(from_cache) {} void ProcessOverloadCandidates(Sema &S, unsigned CurrentArg,