[clang-tools-extra] [clangd] Show member names in structured binding inlay hints (PR #245943)

Max Winkler via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 4 03:28:03 PST 2026


max-winkler wrote:

I tested a build with the latest commit and it works as expected, so LGTM from my side (I don't have commit access, so please wait for a maintainer's approval).

For reading existing code with structured bindings, the feature is nice. You immediately see which member of the structure is bound to which variable, and mis-assigned members are easier to spot.

It helps less while writing code, since the right-hand side of the declaration and the correct number of names in the binding are needed first. That's a general limitation of this kind of hint and not an issue with this PR.

https://github.com/llvm/llvm-project/pull/245943


More information about the cfe-commits mailing list