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

    <tr>
        <th>Summary</th>
        <td>
            clang-format crashes when AllowShortFunctionsOnASingleLine is set to Inline
        </td>
    </tr>

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

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

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

<pre>
    clang-format still crashes after 19884d6:
```
$ cat .clang-format
AllowShortFunctionsOnASingleLine: Inline
$ clang-format
struct S {
// comment
#ifdef FOO
  int foo() { bar(); }
#endif
Assertion failed: (LastNonComment), function operator(), file UnwrappedLineFormatter.cpp, line 327.
...
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFUcGO2yAQ_Rp8Ga2FASfOwYdko0iVVs1h1Q_AeGxTEbAAN-rfF2Kn220PlZBgZpg3773pXP-zVUba8WVw_iYjhKiNAeVlmDCAHCJ6qA5NI_od4UdCz4QeyY5uZw2ZAJVayz-B1tLRGHd_n5yPl8WqqJ0NV3t813Y0-KYtJkj4Yk1-fUD9gxKiX1SEdyD70_PfJR1Q7nZDG585roceB7hcr2sGQNsIg3OENYQdcjt00q8R4aeUOP_uRdvrYWMdAvpMFgapDfaZZWp6kyF-dfZ1G5og2CsMmy5wM3oZ3RM9l1IvfLN3L-cZ-yz38hCVLC3VPOcvWTlwti_XwWVZ_uVw0be8P_CDLKKOBj_v6rml-4QW_mc16AABI0S3OV4s3rRTjHPIi30YOuo4LV2ZbE2BMT-e18vs3XdUSfNFh7BgSI-6prQpplZVdS32VaOkoAOXktVcIFYd5z3rRCULIzs0oSX1iTD2abmMZQ9yNgvJYX0udMsoY1Swiu5ELWhZ1d2-3ylOWdNUtWBEULylvZSZWen8WPj2QbJbxpCKRocYPooyBD1axI2Au6NVcpsll5gMa9dc8ZDWPnT9Atgv9cE">