Issue 120112
Summary [LLDB] Python API does not expose a way to query the VLA-ness of an array
Labels
Assignees
Reporter droptopx
    The python API for LLDB does not seem to provide a way to query whether or not an array SBType is a VLA. This might also be an issue for the C++ API, I didn't check.


`SBType.GetByteSize()` actually calculates as if there is at least 1 element in the array, so checking for 0 doesn't work. Also `type[]` and `type[0]` are distinct types (in C) so it wouldn't quite work in either case.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to