Issue |
144057
|
Summary |
[clang-format] Unnecessary spacing with brace initialization and address of member function
|
Labels |
clang-format
|
Assignees |
|
Reporter |
carlosgalvezp
|
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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs