<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/150327>150327</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format adds extra spaces between type and pointer
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
owenca
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rupprecht
</td>
</tr>
</table>
<pre>
After a8f5e9ed6b44562938ce07e2790be90be8f0a6b5, when using Google style, `MACRO(int*, std::function<void() &&>)` expands `int*` to `int *`.
i.e. if I add this test case to clang/unittests/Format/FormatTest.cpp, this now fails:
```c++
TEST_F(FormatTest, Macro) {
verifyGoogleFormat("MACRO(int*, std::function<void() &&>);");
}
```
with this error:
```
clang/unittests/Format/FormatTestBase.h:90: Failure
Expected equality of these values:
ExpectedCode
Which is: "MACRO(int*, std::function<void() &&>);"
FormattedCode
Which is: "MACRO(int *, std::function<void() &&>);"
```
I'm not sure whether or not this is a diff we're fine just accepting. I'll ask around.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVE2P2zgM_TXMhRhDoeKvgw-e6WTRQ7HA7gB7XMgyHaurSF5JTib_fiEn3RY9FWgBBpEp8vHxiZKK0ZwccwflMxD5KzutgAjKDzu1ptmHLqzLEljPaTf48db1U-KAqplKbnmshsOhrKiVjWZRM9WtGDj_mkmoaiiBXvA6s8M1GnfC37w_WcaYbpbzFlTiU__yx-9AjXEJqM_OmEaQPch-Wp1OxjuQLxdvRqAGqEWgKpt8BWqhEsjvi3JjzFgPjEpg8o9vvDsKED2I3hRcoJnwI6pxxDSbiIljQq0i5xxtlTsBHVdnUt6IQMejD2eV_l-8cUyFXpbMdANw_oqTMjZm0iIXu5sGes4m-rfXP9_-PgI1XxFy9ielg986qnMUXjiY6XaX6EvRBoh-TiGZz_WxED3UH77leFflatJ874VD8OG7PkD0PyjLs4pczCD7VoDs8aiMXQOD6F_fF9aJR-R_V2VNuqGfMM0cGS_KrvyQDvFL4IsfeXMg_jUbPaPJIfiLxMjAd9Y_Wgp_otZ3Yn8Eqs_ofMK4Bs6XI80c0IfNt52CiahwNNOEVwaqA-NkHOPnNSZUWvOSjDsVmJGsRRX_QRX86sZiN3ZybGWrdtzt61JKUe_rejd3e6GbsuV2KkvFZdVMpZSKdDU2lW6Yhp3pSFApapK0P1T7utBVrRRVUkpZyZprOAg-K2MLay_nwofTzsS4crcvhaR6Z9XANj5ekW1cnqbHgGxvSehy3tOwniIchDUxxa9IySTL3bdZ-XpG5PcUFMZFaY44cLoyO0y3hVG5ERdvXOKwW4Pt5pSWbYjoCHQ8mTSvQ6H9GeiYqzz-npbgP7POQ7uRz2P84H_p6L8AAAD__x12hHQ">