[Lldb-commits] [lldb] [LLDB] Fix GetIndexOfChildMemberWithName to handle anonymous structs. (PR #138487)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon May 5 01:38:46 PDT 2025


labath wrote:

I'm not intimately familiar with this code, but I am somewhat suspicious of implementation.

Adding the number of base classes to the result makes sense to me. What surprises me is that this should be done only for fields with anonymous types. Can you explain why should the index of a field depend on whether its type is anonymous or not?

I am also surprised by the hardcoding of `omit_empty_base_classes` to true in the `GetNumBaseClasses` call. All of the other calls in this function pass the value from the argument. Why should this one be special?

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


More information about the lldb-commits mailing list