<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56430>56430</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format does not handle extern "C" block well
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lzgrablic02
</td>
</tr>
</table>
<pre>
E.g. for
```
extern “C” {
int a;
}
```
it gives
```
extern “C” {
int a;
}
```
instead of
```
extern “C” {
int a;
} // extern "C"
```
And it accepts
```
extern “C” {
int a;
} // whatever
```
instead of giving the previous.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1Utty4yAM_Rr8oqmH4Pj2wEOapP8BRsbsEsgYOdndr1_iNtPpbvrWzoiL0OicIyQdzW95LG0JY5wZPzC-Yw1_s9XFX4RzAHYUrOOs3-_vtwOw9vktZd1dIFCs-vDG2sNDVEdg3QXT11J-RhYSoTIQx--pEICJl2xwRxJin9dDsl0wkItXw4Bn-uLy_9NznRThBR839v1Xbq1wwQJNCOcZLy4uqSyMrExf9aogRx7l4FWwT3lKTorAREwQIsGkgvH4T-GgfRx-whW9L5bZy4nonFi1e1VlHU2LLod4yo73l_vxdJ7jDxwouy6lJc-GeKmbbcWLSeqm6Zpe81ZtRIdDP3KDY41jp_pu7ExdeKXRJ8nq58wf8AorxK0J9aFwUnAheMvbTV_Xm65say3aTvNNK0Q1NoptOZ6U8-VNRxlnW8xylaQXm3LQu0TpPahScjYgrnQZXy00xZzxx85KezdwUaz0cpX_FyVy670">