<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/80054>80054</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] No control over whitespace around token pasting operator `##`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
davidstone
</td>
</tr>
</table>
<pre>
I would like to format the preprocessor operator `##` the same as any other binary operator: with spaces around it. However, I do not see a way to get clang-format to do this, so it turns `#define FOO(x) x ## _y` into `#define FOO(x) x##_y`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kc1upDoQhZ_GbErdchtMYMEi90Zospk8wsiYavDE7UKuojv99iNIMj_SjGTJm3NK39HnmMOUEDtl_1P2qXCrzJS70V3DyEIJi4HGe_cMN1rjCDG8IgjBmfLFCciMsGRcMnlkpgy0YHZCGVStlSm3V-s9xu6C4BhcugPJjBmGkFy-_6yo8hFuQWbgxXlkcJnWNEKQI3yhG14xK_M_PMNIkEiAEcHBzd03nAkFfHRpOnyC0ZaTOfBWYoIgIGtO_AE24jkkhP7lRZnmTZkW3uCdF77dN-SQhP6dfY_uyWLsyrEtW1dgd3rQdV3Z1lTF3GnXNB6ttQZ901Sn1lXe6wesR6vPvvZF6Iw2lT6V2uhTU52OrXdVg62ty3IobVuqSuPFhXiM8Xo5Up6KwLxi12htqyK6ASPv3oz5fbwyZjOZu612GNaJVaVjYOFfhyRI3J3_UbRP8JXAU5JMEeiKGW5zENyNfAoResUEi2MJafq78GLNsZtFFlblozK9Mv0UZF6Ho6eLMv2G8fEdlkzf0Ysy_T6Olen3fT8CAAD__yHB1Xg">