diff --git a/src/messages/textDocument_completion.cc b/src/messages/textDocument_completion.cc index 31840193..a29d895a 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -392,8 +392,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;