<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/149520>149520</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] `BreakAfterAttributes` has strange interaction with `= delete`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Eisenwave
</td>
</tr>
</table>
<pre>
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.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyck0-L2zAQxT-NfBk2yIr_5eCDs2nKUmgXWlj2KFkTW11ZMtI4afrpi5Kl-we2h4LA2NJ7fvPTjIzRDA6xZeWWlbtMLjT60H4yEd1JHjFTXp_bkWiObN0xsWdiP3itvKWVDwMT-99M7PvHR3l__9kHxjvGu1vvotEYgEYEH8xgnLTQe43AREOjiWAijP4Ed3CSjsAQkAfr_RMTm-RR8evq5zm9pmxbjXPAXhJqVu7S4t3RGw0HJhomNsDWO9BokZCtt69NrqEeDI2vv54ny3i3DSifugNh6IiCUQthKhQ6e5LnmA7IiPqb-05ni2njAdUXQ-_s72BA-s_cjHcA8M_0d6C9Y6ImOI3nBEul1PGCN514kVYcvCN_2XH4i8Aahyv4kZBrj_HqMsp5RgcnQ2PSf8TgKx4xJH9xC9Gn_0bEKcLkA4I1TwgS1DIAjdKBcYSOjE83ffBhkkTGDatMt2u9WW9khm1el6IpmqbIs7FVqix7hbrc9L1aq7yoeKXruq76Oq-avM9MK7goeZ03eSFqwVdVwfEg61JvCqEbqVjBcZLGrqw9TqkZMxPjgm1ebErBMysV2njpayF6K91wc83FhEidHtqku1HLEFnBrYkUX5zIkL3MxBthufsQV8VhlBEiBekGvNAIsk88_mJ-c03ZEuz7sTI0LmrV-4mJfUry_LiZg_-JPTGxvxQYmdg_13hsxZ8AAAD__xL9KsE">