werat added a comment.

In D92643#2434050 <https://reviews.llvm.org/D92643#2434050>, @jingham wrote:

> I couldn't tell what you meant by this...  I would expect that a Type would 
> tell you that static members exist, and their type, etc.  But I wouldn't 
> expect a Type to be able to get a value for a static member.  After all, the 
> type comes from some Module, which could be shared amongst a bunch of 
> processes in lldb.  The actual member value could be different in each of 
> these processes, but since the Type has no process, it has no way to get the 
> correct value.

Yeah, of course you can't get a value for a static member just from the type 
(although, if it's an `inline static` then it could be possible?). But 
something like `VariableList EnumerateStaticMembers(Target, Type)` would be 
nice.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92643/new/

https://reviews.llvm.org/D92643

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to