[clang] [clang][DebugInfo] Don't mark structured bindings as artificial (PR #100355)

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 24 17:15:20 PDT 2024


zygoloid wrote:

It looks like this is working for all other kinds of structured binding because `EmitDeclare(BindingDecl*, ...)` emits a proper `DILocalVariable` for them. But it skips `BindingDecl`s that have a holding variable for some reason. Perhaps a cleaner approach would be to make it handle that case too, and leave the holding variables themselves as artificial?

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


More information about the cfe-commits mailing list