Issue 124223
Summary [clang-format] Misformatting co_await operator declaration on main versus 19
Labels clang-format
Assignees
Reporter rmarker
    While testing with the main branch, I discovered this formatting change from 19.1.0.

Using 19.1.0:
```cpp
SomeLoooooooooooooooooType::Awaitable
 SomeLoooooooooooooooooType::operator co_await();
```

Using main (20.0.0git https://github.com/llvm/llvm-project/commit/19834b4623fd1e7ae5185ed76031b407c3fa7a47):
```cpp
SomeLoooooooooooooooooType::Awaitable SomeLoooooooooooooooooType::
operator co_await();
```

The new formatting breaks at the scope resolution, which has a very high penalty in the default format style.
This suggests that something has changed and is preventing the previous formatting, which looks like it should have the lower penalty.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to