From 8422f0a522b6fbcb4412a8ec73d80b4acbc7e00f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 9 Jan 2022 12:25:07 -0800 Subject: [PATCH] Adapt llvmorg-14-init-13600-g92417eaf3329: braced constructor call --- src/messages/textDocument_signatureHelp.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/messages/textDocument_signatureHelp.cc b/src/messages/textDocument_signatureHelp.cc index 8e8a7277..4192272a 100644 --- a/src/messages/textDocument_signatureHelp.cc +++ b/src/messages/textDocument_signatureHelp.cc @@ -80,6 +80,10 @@ public: #if LLVM_VERSION_MAJOR >= 8 , SourceLocation openParLoc +#endif +#if LLVM_VERSION_MAJOR >= 14 + , + bool braced #endif ) override { ls_sighelp.activeParameter = (int)currentArg; @@ -93,7 +97,11 @@ public: cand = OverloadCandidate(pattern); const auto *ccs = +#if LLVM_VERSION_MAJOR >= 14 + cand.CreateSignatureString(currentArg, s, *alloc, cCTUInfo, true, braced); +#else cand.CreateSignatureString(currentArg, s, *alloc, cCTUInfo, true); +#endif const char *ret_type = nullptr; SignatureInformation &ls_sig = ls_sighelp.signatures.emplace_back();