<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70181>70181</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
OverEmptyLines for AlignTrailingComments is applied also for commentless lines
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
isolansky
</td>
</tr>
</table>
<pre>
Option should works for true empty lines, but capture comment-less lines as well.
clang-format 16.0.0
windows 10
**.clang-config**
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
`int my_test_variable = 121564564564654; /* sdf */
int another_var = 124443; /* sdf */
int avar = 1;
int superlong_variable_name = 1; /* test */
int my_test_variable = 121564564564654; /* sdf */
int another_var = 124443; /* sdf */
int superlong_variable_name = 1; /* test */`
**.clang-config**
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
`int my_test_variable = 121564564564654; /* sdf */
int another_var = 124443; /* sdf */
int avar = 1;
int superlong_variable_name = 1; /* test */
int my_test_variable = 121564564564654; /* sdf */
int another_var = 124443; /* sdf */
int superlong_variable_name = 1; /* test */`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVE1v2zAM_TXyhYihD38efEjb5bIBvexeyDbjaJUlQ5Jr5N8PtrMm7dJuwzYMEwQZIKlHPvqJ0nvVGcSKpDckvYvkGA7WVcpbLY1_PEa1bY_V_RCUNeAPdtQtTNY9ethbB8GNCNgP4QhaGfSE30I9BmjkEEaH0Ni-RxM2Gr1fI0B6mFDrmNA7Qrfr2Whpus3eul4GYFlMY7o6JmVaO3lg9DKc8HnH663Gmr3qVtPq3mrVmc9OKq1Md7tW4Ik4eQE-KtMSsYWtnuTRn6z3T-g-zEQ-LTzEFtiLlOuZUWUC9MeHgD48PEmnZK0RTouIO2CcpVmy7ixNiLgBwneEb8G3e1jK3K1gM5I0NhzQzUhwuVakJEnEDHA2v4P0GuISiYibc6QfB3Tamu65_gcje3yO_JZlpvgizRniuwa8wfwnyn7dgDeYv4_0C-Su4l1SzeiV__4XBPdDxf0brf1vEvsD2vp9UV2VUdRWoi1FKSOsWFYWnIu8zKNDxcqskazMiyIVNWKaC1Hksq5zXrOUpUmkKk65YJSntEjKNI-TJM_zBus2pUVRY04Sir1UOtb6qY-t6yLl_YhVTlnBIi1r1H4Z6JwbnGBxEs7n-e6q-c6mHjtPEqqVD_6MElTQWL0U5jLnryoclAc5DFphC1J7u0SeJv554Eej09UhhGF5EXOjdp0Kh7GOG9sTvpuTnz6bwdkv2ATCd0vJnvDdQulrAAAA__9u0uLs">