[clang-tools-extra] [clangd] Add inlay hints for default function arguments and implicit lambda captures (PR #95712)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 2 22:06:39 PDT 2024
================
@@ -755,12 +812,33 @@ class InlayHintVisitor : public RecursiveASTVisitor<InlayHintVisitor> {
bool NameHint = shouldHintName(Args[I], Name);
bool ReferenceHint = shouldHintReference(Params[I], ForwardedParams[I]);
+ bool IsDefault = isa<CXXDefaultArgExpr>(Args[I]);
----------------
HighCommander4 wrote:
Something I'm a bit confused about at the moment: if this loop iterates over default arguments as well, how does it avoid producing parameter hints for them?
https://github.com/llvm/llvm-project/pull/95712
More information about the cfe-commits
mailing list