<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/144057>144057</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Unnecessary spacing with brace initialization and address of member function
</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>
Example input:
```cpp
template <typename T>
struct ArgCount
{
static constexpr auto f1{&T::operator()};
static constexpr auto f2{&T::bar()};
};
```
Output:
```cpp
template <typename T> struct ArgCount {
static constexpr auto f1 { &T::operator() };
static constexpr auto f2{&T::bar()};
};
```
[Godbolt](https://godbolt.org/z/hvzP13qsK)
Note how the problem only happens with `operator()`, not with `bar()`.
This is happening on trunk.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysk8Fu2zgQhp-GugxiUJQo2QcdnDjawwK7e8g-AEWNJLYUyZIjJ_bTF7KTpjEQFCgKEJAAzv9zvhn8KiUzOsSGyXsmD5laaPKx0Span0Zlj3gOWef7U_P4ouZgEYwLC7Fiz_jlVPx6dAiM7wnnYBUhsOKBTgGdmhGeWPHI-D5RXDTBPo4PfnG0iut7xvcAAIkUGQ3au0T4EiKohTwM-Vohqqf1uWLvA0ZFPjKxZWLH6gMrfqEXH_SdupW-_7xhXKn-Xeh3IOEGEd4AP8NbC-AzQPiJ8I_yyfu_fN95S0wemNhORCGtDqJloh2vVxsfRybaMxPtdDz_lxff0t-r82Ue_3hCmPwz0IQQou8szuCdPcGkQkCX4NnQBKziNyurOBMP4Dz9KHjvueKbq_vTZBKY9Opl3AjeAcXFfd1kfVP0u2KnMmzyutxtc8lllU1NVQ2VzmWpq7IuComi5uWApd7JYSs1l5lpBBeSV3mR52WZVxuFda5FzXsteV4VPSs5zsrYjbXHeaXPTEoLNnlZcllnVnVo0yUlQmir3Hg3-DgrYkKsuYnNqrvrljGxkluTKL07kSF7SdgHoTzA_86hxpRUPEEKSq-wl8l0Uek1aoaMsuasyHgHyvWg-j5iSuAHmHHuMMKwOL1eZ0u0zc0uDU1Lt9F-ZqJdu3n93IXov6AmJtoLZGKifeU8NuJ7AAAA__-EmT-S">