<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58403>58403</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format]: no space after trailing comment
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
scruel
</td>
</tr>
</table>
<pre>
For clang-format version 15.0.1
.clang-format:
```config
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
```
Original:
```cpp
int main() {
int a = 0; //dsa
}
```
Excepted:
```cpp
int main() {
int a = 0; // dsa
}
```
Actual:
```cpp
int main() {
int a = 0; //dsa
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9Ul2v1CAQ_TXwQrbhY1vKAw93XW9iotHEX8BS6GIoNECv67-XtnevV2OMD8aEwMyZYc4ZhkscvsnHmJD2KowHG9OkCnoyKbsYEGkb3BCAzwA_7HvzOg-wZxR0eF86BuvGHfw8K23yu_DeBfMmTpMJ5VMy1t1eriH0wQU3LVNFEHnB1O2OHcgv9V9L-Zjc6ILyv1ExzzviQkGTcgHQHlCBAD_dSdaIQoCdEQbshAB9rGvI6rkSP_-B-O1Nm7mY4d8Ro79kftBl-U8NQyNJ17VCiI4zOEg2CCYULK54I0F7-ukftOd1WiGivM4cKVtMQiUp510Ykd6HD5fk5bWUOa8NbPyjK9fl0tSE6nj_dD8Oc4pfjC7VdTkvJlej7Y-YwavsNG0ZG3jfCq51b5iyllNxHJTtuO0p9OpifF41AkqD-Yq2EtWuMqGTFFNKMOFYHAlhTc-YGo7Y9ERYqzkF1a4v6JtVRxPTCJPcJF2WMdegd7nkH0GVsxuD2Z5kra-Wco1JZp0W4-HGLDfl3wGipvJh">