Issue |
120148
|
Summary |
[clang-format] Wrong formatting when template variable in last thing before closing parenthesis
|
Labels |
clang-format
|
Assignees |
|
Reporter |
vient
|
```cpp
auto t1 = a<int> + b;
auto t2 = (b) + b;
auto t3 = (a<int>) + b;
auto t4 = (a<int> + 1) + b;
```
is formatted as
```cpp
auto t1 = a<int> + b;
auto t2 = (b) + b;
auto t3 = (a<int>)+b; // wrong, no spaces around +
auto t4 = (a<int> + 1) + b;
```
https://godbolt.org/z/9K11MrPz9 `clang-format version 20.0.0git (https://github.com/llvm/llvm-project.git 8daf4f16fa08b5d876e98108721dd1743a360326)`
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs