<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJzVlE2P2yAQhn8NvqCNHBzH64MP-ei2h1SV2qp3DGObLIYIcLb59x3sdDcrJSutVj0UWZhhBvzOM-DaylP1HTQPIGmwlLAsZ0XBZiTdknQ19Z_VEQzJzhZZpudnNNfcg_xmfoSTBoyhu92vr5NnpVVrNtZ4EEPALVbe40QPJvgYeOGZ4jdWD73ZqV6F6M_TqIbuBx9oYx0NHVDAj1HbUAcHZ-Ug4Kqkqf-J8cJKuCWcD5hvTUm2pQ1h9_xWI2wzLaAvTQiBCx_oGECj2jq2a6HyZiOsJNn6qjblY8o9D7EswjoHIujTq6J8sU9wBIefRDIYbw3E8ZMKHeX6DBpnR278Gf2bNC7TfgZzKfPM7KL9a3wfJdlxT1XwVHM8RloZoDUo006IEO7IKyKyBzDRceAOMXXglX_F-9PvAxYBV5wLg7H_G8t3AkxklckyK3mCUjvrqv5xcBL2yeB01YVwiNeYsAd8WqQ41DNhezS0Pv593eE13SM2NJX3A3gc5NmiLJKuapZ8MU_zvEjzhhfAl3NeZI1keZkzEBISzWvQviL5mjBWDy328YTjS2hu2rupEHE23yYfV6QqljKWzrN5WmZZNp-lAPe8SSUXshZi0ZBFCj1Xehb3mVnXJq4at0RtHp1a-eBfnNOdAxgTQIVBBT0ar9TnW_rGf5LWDvijvzhz8e8nrMHhEM_iYERQuDQZk6nGTP4ACjC9sA>53497</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] AlignConsecutiveAssignments breaks formatting of continued functions
</td>
</tr>
<tr>
<th>Labels</th>
<td>
bug,
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mkurdej
</td>
</tr>
</table>
<pre>
Related to #52772.
Given:
```
BasedOnStyle: LLVM
AlignConsecutiveAssignments: Consecutive
ColumnLimit: 50 # just for the ease of reproduce
```
The code:
```
auto b = f(aaaaaaaaaaaaaaaaaaaaaaaaa,
ccc ? aaaaa : bbbbb,
dddddddddddddddddddddddddd);
```
is formatted correctly.
However, this one, with alignment on the assignment:
```
auto aaaaaaaaaaaa = f();
auto b = f(aaaaaaaaaaaaaaaaaaaaaaaaa,
ccc ? aaaaa : bbbbb,
dddddddddddddddddddddddddd);
```
has its last line being aligned with the opening parenthesis.
Expected formatting:
```
auto aaaaaaaaaaaa = f();
auto b = f(aaaaaaaaaaaaaaaaaaaaaaaaa,
ccc ? aaaaa : bbbbb,
dddddddddddddddddddddddddd);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVlEtv2zAMgH-NfBEaOHKc1Acf8li3Q4YB27C7HnSsVJYCSU6Xfz_KztoESAoMww4jBL1ISeRH08KpU_0VDI-gaHSUsKJkiwWbkHxD8uXYf9RHsKQ4r8g8P7dhueIB1Bf7LZ4MoA3dbn98HjVLo3d27WwA2Ue8YhkCbnRgY0iGF5rRfu1M39mt7nRM-jJP3tB9HyJtnKexBQr4GHUN9XDwTvUSbro09t_RXjoF9xznPcYrKCk2tCHskd8TwtbjAfomUko8-EQHA5q8FUlumaq7QlhFitVN33RIIXc8prRI5z3IaE5XSfnkXuAIHp9EMmjvLKT5i44t5eYMGncHbvwV_bs0LsN-BXPp5pnZhfxrfH9LsuWB6hio4fgZGW2BCtB2NyJCuAOvhMgdwCbFgXvE1ELQ4Yr3h58HTAKeOCcGbf83ln8IMFN1oaqi4lnU0UBNypU03O4eRgKk3NB3SpwKD_w5XOBKhSudxWmfMPZWRo1Hs96buo3xkP4KhD1h22FSejGRrsOFMcffwwNW_R6zgEsdQg8BJ2UxqxZZW89Ek0MlIC_mDTRizmcl4wBlKUolptMqM1yACSkKwpjod9ingsHhKircLTeZrlnOWD4tpnlVFMV0kgM88iZXXCoh5awhsxw6rs0k-TVxfpf5enARbw6oNDrE8KYcCxAGiOl-TH7rfN09917BPhuiqYdQfgE_FajB">