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

    <tr>
        <th>Summary</th>
        <td>
            [FR] clang-format expand AllowShortEnumsOnASingleLine with options
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

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

<pre>
    I would like to have more options for the `AllowShortEnumsOnASingleLine` format configuration. I want to use empty enum classes as type safe wrappers for integral types, and I want them to be on a single line.

In particular, I would like the same options as `AllowShortFunctionsOnASingleLine`, that is

- None: Never put enum members on a single line
- InlineOnly: Only put enum members on a single line inside a class/struct/function
- Empty: Only empty enums can be put on a single line
- Inline: Inside a class/struct/function or when empty
- All: Always permit enums on a single line
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEk8tupDwQhZ_GbErdos0l6QUL_j9h1NIokSZPUJgCPOML8iVMv_3IdDq3RbLBQvb5Th27Cr2XkyFqWPUfq-4yjGG2rulQCfuDXNbb4dycYLVRDaDkH4JgYcZnAm0dgV2CtMbDaB2EmYDVeauUXZ9m68K9ido_mvZJmknRT2mI1Xk6qjGAsGaUU3SYAHs4wYomJHj0BKSXcAYyUYNQ6D15QA_hvBB4HAlWh8tC7uIrTaDJodr2PeP_A5rhFTiTTtSewBpA8FstoKShPcvvWN5evicDC7ogRVToEuNj5jkZ67e86D9G7aIR287nuAkVZgwg_Xu7HTxYQ6xo4YGeycESwyWuJt2nYJ-LvcpOJv09GnVO4rR-rwVpvBwI8HKZjHc-uCgC4934UvcVf58u_pX89gweBJp0icns69qS-vStIVgH60zm4nEltEoleatWPHtYyGkZXvw_m2ZDUwzH4ogZNYf6eCxuOC_rbG7KuhZldUtlPozHHsWQl3hbHapDL_qCDmMmG57z4nDIbw5VlZf1XvRiGEsS-RGrm1wQK3PSKNVeqWe9t27KpPeRmu18prAn5bd54VwoNNPu0tKM8zRBrkmyXR8nz8pcSR_8GyjIoLZZ636x6g7ey4H-Lqlxv5ofWGWYr02YRaeaOYTFs6JlvGO8m2SYY78XVjPeJdOXZbc4-5u2B9iipCfZ0vwLAAD__xx-Wco">