Issue 149520
Summary [clang-format] `BreakAfterAttributes` has strange interaction with `= delete`
Labels clang-format
Assignees
Reporter Eisenwave
    https://godbolt.org/z/cYYaPPGor

Consider the original code (this is how I want it to look)
```cpp
[[deprecated]]
void f() = delete;
```

With
```yml
BreakAfterAttributes: Always
BasedOnStyle: WebKit
```
I get
```cpp
[[deprecated]]
void f()
    = delete;
```
I don't why it breaks the `= delete` onto the next line. This doesn't happen with `BreakAfterAttributes: Never`, so it seems more like a bug than intentional formatting.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to