diff --git a/src/messages/textDocument_completion.cc b/src/messages/textDocument_completion.cc index 49132467..7a95be03 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -380,8 +380,15 @@ public: R.Availability == CXAvailability_NotAvailable) continue; if (R.Declaration) { - if (R.Declaration->getKind() == Decl::CXXDestructor) + Decl::Kind K = R.Declaration->getKind(); + if (K == Decl::CXXDestructor) continue; + if (K == Decl::FunctionTemplate) { + // Ignore CXXDeductionGuide which has empty TypedText. + auto *FD = cast(R.Declaration); + if (FD->getTemplatedDecl()->getKind() == Decl::CXXDeductionGuide) + continue; + } if (auto *RD = dyn_cast(R.Declaration)) if (RD->isInjectedClassName()) continue;