Issue |
144062
|
Summary |
[clang-format] Unnecessary space with brace initialization and equality operator
|
Labels |
clang-format
|
Assignees |
|
Reporter |
carlosgalvezp
|
Example input:
```cpp
struct Foo
{};
namespace bar
{
bool operator==(Foo const&, Foo const&);
}
void f()
{
Foo a;
Foo b;
bool const v{bar::operator==(a, b)};
}
```
Output:
```cpp
namespace bar {
bool operator==(Foo const &, Foo const &);
}
void f() {
Foo a;
Foo b;
bool const v { bar::operator==(a, b) };
}
```
[Godbolt](https://godbolt.org/z/sGhaE6xee)
Happening on trunk.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs