From b2f32788d3d9b15343d398ce08ecdb7be56a9abc 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 cf60847a..1c6b662a 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -406,7 +406,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 68af2dcc..b6889190 100644 --- a/src/messages/textDocument_signatureHelp.cc +++ b/src/messages/textDocument_signatureHelp.cc @@ -75,9 +75,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,