<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/111340>111340</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
I want clang-format to remove these empty lines, how to set the .clang-format?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
traversebitree
</td>
</tr>
</table>
<pre>
I want clang-format to remove these empty lines, how to set the `.clang-format`?
Keep `MaxEmptyLinesToKeep :1` and based on any style.
![image](https://github.com/user-attachments/assets/09c898fa-2b96-48a3-8e8b-0660383afe5e)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyskc-O2yAQxp9mfEG28GA7-MAh29RS1fbWFxjs8Z8Kmwhwtnn7yslK3b30tBdAMPMx3_ejGJdpYzZQv0B9yWhPsw8mBbpxiGyXFJgz64e7-SZeaUuid7RN-ejDSkkkLwKv_sYizRxZ8HpNd-GWjSPgFzH716MkcjreBTSyeN8OjQTVgbyAPD_X78zXo-wn_fl6SP04lH7557U6l9BIQdsgLEUehN8EbXcR091x8V4GsIT6ZVlpYqgvgHpO6RpBnQE7wG5a0rzbovcrYLdHDjmlRP288pYiYEcx8uMg2163eqQcbdvklSaVa9Y2l00jlVY0cs2A7fPTbDBqaFVLGZvyhBp1WSmZzcZWw4CKKq1bXZ8qq7SqRoWWJbdDf9LZYlBiVUp5kk0plSzUKNuh1GPb60GiHaGSvNLiCudua-HDlC0x7mzKslSVzBxZdvGBEPFDwIgH1GCOvtzuU4RKuiWm-E8pLcnxJ8D9SFZ12R6c-U_uxwBvW34N_jf3CbB7-Dqif7N2M_g3AAD__1gp1Yc">