<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59203>59203</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format-16 `AlignTrailingComments: Kind: Leave` moves comments
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MartinsSmirnovs
</td>
</tr>
</table>
<pre>
Given following `.clang-format` file:
```
AlignTrailingComments:
Kind: Leave
ColumnLimit: 0
```
And following `.cpp` source file:
```
// comment 1
// comment 2
//comment 3
```
I expect that `clang-format-16 foo.cpp` will not perform formatting, however, it does:
```
$ clang-format-16 foo.cpp
// comment 1
// comment 2
// comment 3
```
`clang-format-16` version:
```
$ clang-format-16 --version
Ubuntu clang-format version 16.0.0 (++20221123042319+910204cfbdf3-1~exp1~20221123042440.568)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUsGSnCAQ_Rq9UFqAyowHD5PZbCqVzSnJB4CikkKwAJ3k79O6azLrzqSSKgro7tfNe00L2_ysPqhZGtRare1FmQ5FDKe15qZLWusGHsBGrdIyyk4RfojwCRwvazVPWnXmq-NKQ_bZDoM0wf8GI_RJmQZM9CT5LF8qrPvZ6mkwT2pQYYnj29VNs-c2jgslbydXy78yi-gjLFQ_c0Lk-nGE0C5Mr5M2Z3az8Eckf4yyDij0PCykrvuVEAaM7cbzorRGxgY0SrcA0DMqgJyInlFvL3KWbrmqgBor_X01Obr3zr_IvSd4774t-dX-RvAiFFR4Zc3_0E-SLWmFfBOTCdMr1FYVEZbiFAPXY0TfwaKYUkJohnOakRIcJcEU53UrmjZLSHR4D1-0HFfAPMdpwaBAuWMYy4owVmYlOxbHuKmyBu48DipoWe1JA_7eyO9mHZoy2Fn6rbU-npyu-hDG9ZPXtncq9JNIAQGG1vN2JKOz32HEwFTeTzAW9LEoKc7ivspqQik7ENKUgpWSNgcuOSsawnJRM8lizYXUvooK6BQ18oLWEnCPiodYVS8tKciB4uKYFoKKRpBjfShxWdZtlGM5gLZ04ZFa18WuWimJqfMQ1MoH_yfIvYduSLk-B_X5FHrrqs_cwYz7L4Nyxs4-XilUq4RfzzxKTA">