<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/130894>130894</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] `BreakAfterAttributes` doesn't work for user-defined conversion functions
</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/a5GGK51f9
```cpp
struct awoo {
[[nodiscard]] operator bool();
[[nodiscard]] bool f();
};
```
Given `-style="{BreakAfterAttributes: Always}"`, this code is formatted like:
```cpp
struct awoo {
[[nodiscard]] operator bool();
[[nodiscard]]
bool f();
};
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUks2u2yAQhZ9mvEGJ8GBMvPDCqess-hTYjBMaYiLAidKnr8hN1R9dVfdKSLCYOcw35-gY7XEhakHuQfaFXtPJh_arjbTc9Y2K0ZtHe0rpGkF0gAPgcPRm9C5tfTgCDj8ABy0Ph2-ynBvgHdT87UzXK_AuprBOiem79wzUHnjHGGPP3_aLNzZOOhiQPcie-SsFnXxgo_cOcAfYgPh_S65k85-1oPrX49cgwLuDvdHCoOabmB6OQPSACGq_D6TP3ZwodCkFO66JMifr3F0_YpZCzAr4haWTjWzyhpiNbPbholMiw5w9U97Mh8A_i_1u_VPpI9yFaYVpRKMLaktVlUrWNVbFqR3nqhFacFnWajKmrKtGKRJClGokqlVhW-QouSiRy1LxajtWWtS85ljuGsPLCipOF23d1rnbJQehsDGu1JaC75qqcHokF5-ZQpycXo6bt43ldcq-CG3u24zrMULFnY0p_lZKNrlnHv9qlH22712_as6Mp7gAqsTuPpyzPWyNFDaGZruQYZNfbhSi9Qub12VK1i-xWIP7N9k2ndZxO_kL4JAHel2ba_DfaUqAw5MzAg4v1FuLPwMAAP__RR_6RA">