Issue |
123144
|
Summary |
clang-format produces unnecessary spacing around template angle brackets for class member function calls.
|
Labels |
clang-tidy
|
Assignees |
|
Reporter |
alanzhao1
|
Given
```cpp
int foo() {
return bar()->baz<1 | 2>(1);
}
```
clang-format returns
```cpp
int foo() { return bar()->baz < 1 | 2 > (1); }
```
which has unnecessary spacing around the two angle brackets.
Things that are required to trigger this issue:
* Certain operators in the template parameter list trigger this issue (e.g. `|`, `&&`, and `&` work, but `+` doesn't)
* The `return` statement is required.
* There must be a parameter in the method call.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs