<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61841>61841</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Inconsistent function pointer declaration spacing on recent trunk
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
carlosgalvezp
</td>
</tr>
</table>
<pre>
Hi,
We are bumping clang-format from:
`15_15~%2b%2b20220316052642%2b11a12544b5fd-1~exp1~20220316172739.191`
to:
`17_17~%2b%2b20230328053227%2b498e1506981f-1~exp1~20230328173331.583`
And are now getting inconsistent function pointer alignment. Example:
```cpp
using Foo = int (*)(int);
template <typename Op = int (*)(int)>
void foo();
```
Gets transformed with default settings into:
```cpp
using Foo = int (*)(int);
template <typename Op = int(*)(int)> void foo();
^
```
Note how the space between `int (*)` has been removed in the case of the template. I haven't found anything related to this in the Release Notes, do you know what could it be due to?
Thanks!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VE1v5DYM_TWaC5GBRVn-OPiQTTLtXlqgKNDjQrZpW40sGRY9s-khv72QJ9kkwDbHAgONQD8-vUdRNDHa0RM1Qn8R-v5gNp7C2nRmdSGOxp3pn-XQhv6p-dUKvBPZvchur-tfBGYlaLd5sX6Ezhk_3gxhnQ3DsIZZqBegKDKpv0n9LFBjuy-YIWZKFpnGIsc9JKWRqPO81UN_I5_p-yKfX2GyxFLVR1lLUWRXUg4f-MtvsvzIrzKFVaYVYrmH8roiqbOiruTwjn-HyVIpJY-6Uj_4r-ut73eTPlxgJOZk1Pou-Ggjk2cYNt-xDR6WYD3TCsbZ0c_k-QgP3828OHrT-ar2-uuW5RrZYqI9hQBC3YP1DAIrgbcCa4GV9Zw26suLb5oXZ5hAqDt-WsibmeD35dPUh2vqOdgehhB2yBvjD0HvVf5CHIFX42O6UerhYnmCngazOYZ4LUVMJ4b_1d9P7cF_OAOhH37q8bfABFO4AE8EcTEdQUt8IfIgiuyjwiKDyURo08eV5nCmHqzfMzsTCcKw7191H-ErTOZMXmDJMIQtdZB_4inVYKUE6YED8GTjK88f5ChRJVlR4B30AZ7CBo-p7S6TYejC5nqwDC1BvxGkqp_eV_3PyfjHKFAe-kb1tarNgRpZVJmsdFlVh6nJS2N0NbS6oDI3WNddmZMiXSvSFbbtwTbX56AymcsCq2OVV0RDQYUsFeZmEHlGs7Hu6Nx5PoZ1PNgYN2oKWeXy4ExLLu5zBPH9MBCIabKsTUq7abcxijxzNnJ8I2LLjpqvn76snjpnVrPH0p2lgoZ0J12C87r5x8O2umZiXmJqSjwJPI2Wp609dmEWeErnvfzdLGv4mzoWeNpdRIGn3ci_AQAA__-sbIJT">