<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/71983>71983</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clangd formatting on typing with InsertBraces only inserts the opening brace on line feed
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
FalcoGer
</td>
</tr>
</table>
<pre>
Originally reported [here](https://github.com/neoclide/coc.nvim/issues/4802), apparently this is a problem with clangd.
When `InsertBraces` is enabled and one inserts a new line after a control statement such as `for`, `if`, `while` or `do` with automatic formatting enabled while typing, only an opening `{` brace is inserted.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Ur1ypDwQfBqRTJkS4mchIPB-rv3qogsvHqRZ0JWQKGmwa9_-SuCzN7oEBJrp6eluTMnOnmgU7VW0bwXuvIQ43tDp8D_FYgrmMf6MdrYenXtApC1EJgOivS4USbRvQvUL85ZE_SrUTajbbHnZp1KHVaibp6CdNSTUTQdd-neb_9qUdkpC3ZpeKqEGof4D3DaM5Nk9gBebwCZA2GKYHK3wYXkB7dDPphTyTcjX8_lrIQ-ikz98osjXiJqS6GRuJo-TIwPoDQRPYI-SDOrpA5z1BHhnioCgg-cYHCRGppU8Q9r1Apgy9D1E0cnMUHTS3r_PH4t1lIeFmD9NyOeDKO4cVmSr4R7iiszWz198jjbgx2b9nJGCdw9AD2Ejn-vygMs1Y015nbzKSZ1MWZixNkM9YEFj1Q1D18pedcUymr7R7UVOjez6Wg_VgL0aGqJWToSmvhR2VFLVVVVJVVV105WqJWXucpqU1FgjikbSitaVzr2vZYhzcZg0XqqhrwuHE7l0pESprN9xKZTKoYlj7nmZ9jmJRjqbOH2jsGVH42ndsxzBf2pwSvZs4CnJX794oS9tTkWCP-27E5lij278R_4yj8_XyxbDb9L8nL9juz8BAAD__zFU_lU">