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

    <tr>
        <th>Summary</th>
        <td>
            Option to print an array on one line
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    I recently [posted a question](https://stackoverflow.com/questions/79266720/printing-c-arrays-passed-into-functions-in-lldb) on StackOverflow about options in LLDB for printing C arrays on a single line. As it seems that it's not possible to do so without creating a custom command, Jim Ingham encouraged me to request that as an option here.

To summarize my issue, I'm looking for the ability to print an array's contents on a single line, instead of printing each value on its own line, as the parray command does. Basically, print it so that it looks like an array initializer. I have consulted extensively the [LLDB Tutorial](https://lldb.llvm.org/use/tutorial.html) and attempted to use the type summary and synthetic child printing options, but as Jim noted, these do not work for arrays. For my personal workflow, I find vertical screen real estate to be very valuable, especially if I'm already using the majority of it to display some variables and 20 or so lines of code at each stop, so for small arrays I feel that an initializer-style print option makes a lot of sense.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsVMuO4zgM_BrlQsRwlPfBh-4ZBOjFAHPY-QHapmNNy5JXpJP1fP2CitO9i9mTLmQVi1UUMrtrIKrM_tXsv65wkj6mqkuOQuvnAYPdrurYztUbJGooiJ_B7F_HyEItIPw1EYuLwey_GnvqRUY22xdjL8ZeWLB5jzdKnY_3oomDsZdnPRt7OZ7t4XC0pbGXMbkgLlzXzRpTwpnXIzJTu3ZB4rqbQpOb1i6svW9rY88QA_ypBN8XAsA6TgJxzJXgAnz79vUVupjgiQ5f4IGuzQjswtUTeBeogBcGJ8BEA4P0KODE2CNDiAJjZHa1J5AIbQSOcHfSK1uTCDMyQjOxxAGaOAwYWmO_wB9ugLdw7XEACk2cEl6phSHDJMqbeFAhA4ZlcugpUW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