[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
================
@@ -3132,7 +3132,8 @@ static std::string formatBlockPlaceholder(
static std::string FormatFunctionParameter(
const PrintingPolicy &Policy, const DeclaratorDecl *Param,
bool SuppressName = false, bool SuppressBlock = false,
- std::optional<ArrayRef<QualType>> ObjCSubsts = std::nullopt) {
+ std::optional<ArrayRef<QualType>> ObjCSubsts = std::nullopt,
+ bool SuppressType = false) {
// Params are unavailable in FunctionTypeLoc if the FunctionType is invalid.
----------------
HighCommander4 wrote:
Maybe assert that `SuppressName` and `SuppressType` are not both true (as that would lead to an empty string)?
https://github.com/llvm/llvm-project/pull/200103
More information about the cfe-commits
mailing list