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

    <tr>
        <th>Summary</th>
        <td>
            Why clang-format doesn't work ?
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          lalala-233
      </td>
    </tr>
</table>

<pre>
    Linux-6.1.11.arch1-1

```bash
$ clang --version                        
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

$ clang-format --version  
clang-format version 15.0.7
```

Hi, I'm here again.

When I use the opinion `AllowShortBlocksOnASingleLine: empty`, Clang-Format doesn't work in `for(;;) {}`.

```cpp
for(;;)
{}
```

But if I use the opinion `AllowShortBlocksOnASingleLine: Always` or `AllowShortBlocksOnASingleLine: true`, it will works again:

```cpp
for(;;) {}
```

Why does it do that?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU01vozAU_DXmYoH8QSAcOCSN0FaqtIeu1OPKwAv21tjINk3z71eGZDetWu0HWCD5zRvPjG3hvRoMQI02e7Q5JGIO0rpai_imjPOktf25flBmfk2LjGaUZsJ1kqYUkQMiu8u3IOtohZeXKZbjTgsz4DR9AeeVNfiTZ21YwVco3WQkK9fKN-EGCIjv8Ou2-F7k6dSlelE0mPkCkQ5Ej0fbg47AyXr1upbujQ9Ca-gPysUSYs3sHWJNq8wbD1fB6dG6UYRb3TcKr9WPhP6K4Zb3i0LsDt8jVo5YggMsBqFMdgt5kmDwPZ494CAB20mZSI0KstPanh6ldWGvbffsv5rdozKDhgdlILqBcQrnuCK7w3eLvmbV11vwBrEy4JN1z1gtdEfrENsivo-DVRiVe1QeUEGyD3ezm6Z15l3fBbY2f-58Pwesjv9pbKdP4uxRQbB1f9UQ3AyXIFTAJ6X14tyveSO--yeL-I_unuR5CTmu1lscpAiIN0lf877ilUigpkVZ8Irwkiay3rbA8oLkx_7YbikHwmBLijwvSxBdviGJqhlhnDCa082m4jRjjFPRCWiPVZmXFUU5gVEonWn9MmbWDYnyfoa6IGVeJFq0oP1yjxkzcMJLETEWr7WrY0_azoNHOdHKB_-bJaigoY523hzwdwcoepudrmUIk49psgaxZlBBzm3W2RGxJjJefunk7A_oAmLNosMj1iw6fwYAAP__T9RLSA">