<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/154016>154016</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] hangs when formatting a file
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
anonymouspc
</td>
</tr>
</table>
<pre>
Run
```sh
clang-format -i tmp.c
```
will get stucked forever without any output.
[tmp.txt](https://github.com/user-attachments/files/21822169/tmp.txt). *Please rename it from `tmp.txt` into `tmp.c` because github rejects `.c`-extension files and only accepts `.txt`.*
**Thank you!**
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8Ustu3DAM_Br5Qqwh0evXwQcHwZ6Loj8gy1xbjSwtJCrJ_n1h7wZNLwUIEBgPxxRndEp28USDqF9E_VrozGuIg_bB37eQ080UU5jvw8_shRxFIx-VViFH47RfTtcQN81wssDbrTTfWUKOH9Y5WIghcTZvNMM1RHqnCB-W15AZtL9DyHzLXO6jchT1yy7EnyzqV4HdynxLohoFXgReFstrnkoTNoGXnCieNLM260aek8DL1TraO6oOUTW9wMuXGvYlCBx_ONKJIJLXG4FluMawgWjkF6-RYD2HL8jswERG50Tw-D1E-k2G0045vp_ok8knGzwcC4D2MwTv7qCNoduT-RAvBY7Pl-Jev1bt3-AeskD1QIp5qOa-6nVBg2rr-lxVsm-LdaBrO82NMdRRVc9TbRqjVdO2176ZKnnuCjugxFp2qlWoOtWWSs2mrzvqeiVN36M4S9q0daVz71sZ4lLYlDINqj5L1RROT-TSkQXE7_YKxD0dcdjnTlNekjhLZxOnv0ps2R05-mewfoVV-yXBx0oeHiBbv4A-TlXk6Ib_WLyrP9vpFsN-doGXY-nd5ufe7wP-CQAA__858uFR">