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

    <tr>
        <th>Summary</th>
        <td>
            Clang-format ignores code after preprocessor if
        </td>
    </tr>

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

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

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

<pre>
    clang-format fails to execute `AllowShortFunctionsOnASingleLine: Inline` properly after a preprocessor if. It yields inconsistent formatting like
```
    void case1(int i) { return i + 1; }
#ifndef SWIG
    void case2(int i)
    {
 return i + 2;
    }
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk2L2zAQhn_N-DJs0Ic_1gcf4gaXQKGHHHpW5LEzu4pkJHnT_PuSNLDpUhBIwys9vPDIpMSzJ-qg6qHaFWbNpxC7t8ua8zsVxzBeO-uMn1-mEM8m42TYJcwB6TfZNRNCLbbOhcvhFGIeVm8zB59--u2B_ezoB3sCvcW9d7dTLXCJYaHormimTBENLpGWGCylFCLytMF9xiuTGxOyt8EnTpl8xr8NMvsZHb8TiB2ILdTise4jIuJH4BGtSSRBvbLPyKBahKbHSHmNHhlB9ShB9wjN7sFRmic_0oSHX_vv_4GpJ9hnDE3_GP5hK9D986Xdl7LF2Omx1a0pqJN1o9tK16UuTl0j5PRq7FFXsimpnppRlpXQRjXWmlaXBXdKKC2kbKQUjdKb1rYTiaqslbJjKQlKQWfDbuPcx3kT4lxwSit1tZBCFM4cyaW7baU8XfAeglI3-bG7vXk5rnOCUjhOOX1SMmdH3bfnv8CzD5ES2jDSw-YXl8UaXXfKeUmgt6AGUMPM-bQeNzacQQ03-mN7WWJ4I5tBDfdOCdRw7_wnAAD__xQ20Xg">