[Lldb-commits] [lldb] [lldb][TypeSystemClang] Allow arrays to be dereferenced in C/C++. (PR #135843)
Ilia Kuklin via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 15 12:50:02 PDT 2025
kuilpd wrote:
@labath @jimingham
This is just one way to allow C/C++ to dereference arrays and let other languages decide on which types they allow to dereference.
I tried making a `GetDereferencedType` function in TypeSystem, but it doesn't really need to do anything right now, everything is handled in `GetChildCompilerTypeAtIndex` anyway.
Also, you raised a problem that if a user has defined a synthetic child provider for the array type, then after converting array to a pointer that provider will not be used. Allowing the array to be dereferenced will do the same because of where the check for a synthetic child is in `ValueObject::Dereference`. I'm really not sure how to avoid that.
https://github.com/llvm/llvm-project/pull/135843
More information about the lldb-commits
mailing list