<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/120112>120112</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [LLDB] Python API does not expose a way to query the VLA-ness of an array
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          droptopx
      </td>
    </tr>
</table>

<pre>
    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.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkkk9r4zAQxT-NfBlqJDn-d_AhaclSyKHQ0rtsTWJtFcuVxk29n36RkrYLCwbDaKTfezNPhWBOE2LHyh0rHzK10Oh8p72byc2fWe_02r2MCPNKo5tg-_QIR-fhcHjYgXYYYHIEAfEM5GD27sNoBAUXtcbC-4J-hcuINKIH51O3mkB5r1Z43r2sM4IJoOD1sM3hZTQBzuY0EigbHPQYm00ICyYqjQj3TO6Y3EUlTN7DI2ijJyZrgmHE4S1nfHv7Kn4F5L-Qdivhs_mDTDZMtqzioAZalLUrDMoOi1WEAVQAc4wUf1VFYFEFAgFo8YwTgZmSiKQ_4oO7Ys10Sgp5GspVz8X5txy20QirOK0zXoec6JP-p8i_qh5Bm0BmGgjiWQAmGzNF021kmfjqYm-G3xdDmDBRF5o05EEFzDPdFbotWpVhJ-piU1RNuamysZNtWTRlXwvVID_KQjSom7oV2HAse1VnppNcboQUlai5lFXeimONR70RvNZSi4JtOJ6Vsbm1H-fc-VOW9tMJyYWQmVU92vAVJ9_Frrt-OQW24dYECj_3yJBNwYthYuUDPP1k7Dta-Dm78F-i4g5eD9u7CUMAd_yOVLZ4241Ec2DFlsk9k_uToXHp88GdmdxH9u13N3v3Gwdicp8MBCb3Nw8fnfwbAAD__9oS_5w">