<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/133965>133965</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Incorrect spacing in macro stringizing
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kyuupichan
</td>
</tr>
</table>
<pre>
#define str(x) #x
#define xstr(x) str(x)
#define f(x) x :
xstr(+f())
With the empty argument to f, the space before the colon somehow gets eaten.
I believe this should expand to "+ :" with a space before the colon which is what GCC does.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0Uc2ymyAUfhrcnLmOATFxwcKkY-c-QdcIR6FFcAAT06fv6ORO2kVXh-H7OR98MiU7eURB-JXwb4VcswlR_Hqu62KVkb4Ygn4KQpnG0XqElCOhl43QFghlG6m6N7b9Bb6P_1DGL3wDwjpSdS8NodfxGO1LUXU_bDaQDQLOS36CjNM6o8-Qw-5yO6C0SIUw4BgiHhcquOAhhRlNeMCEOQHKjL4kVfcJAzqL951pEyQTVqcBt0V6vbsSSgm9Hrkohce-Xv5vw8NYZcAmeBiZ4fvtBjpgKgstmG5ZKwsUp3PNOGOc14URjWyoYid1Hls1Ih9aVJczb5RuLg1neiysoBXlVV2dThdOWV1eaq21HOV5aAbajIzUFc7SutK5-1yGOBU2pRXFibG24YWTA7r0VWMUO-tjWKdE6srZlNNbl212KD69CjGiyscTrZ_AepilimHvzvrJ_rZ-KtbohMl5Sce39IT2k81mHUoVZkL73fQ1PpYYfqLKhPZHskRo_wp3F_RPAAAA__8Xq8Ug">