[clang] [clang-tools-extra] [clangd] Optionally Suppress Types in Completions (PR #200103)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sat May 30 23:52:27 PDT 2026
================
@@ -1110,7 +1110,7 @@ const Symbol *SymbolCollector::addDeclaration(const NamedDecl &ND, SymbolID ID,
const auto *CCS = SymbolCompletion.CreateCodeCompletionString(
*ASTCtx, *PP, CodeCompletionContext::CCC_Symbol, *CompletionAllocator,
*CompletionTUInfo,
- /*IncludeBriefComments*/ false);
+ /*IncludeBriefComments*/ false, /*SuppressFuncParamType=*/false);
----------------
HighCommander4 wrote:
This is the codepath that computes the "signature" and "snippet suffix" that are stored in the index, and will be used for completion items coming from the index.
We should respect `NamePlaceholders` here too (but here too we should build a separate CCS for the signature so it retains parameter types).
https://github.com/llvm/llvm-project/pull/200103
More information about the cfe-commits
mailing list