<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55076>55076</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] apply both Align and BlockIndent in AlignAfterOpenBracket
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
isudfv
</td>
</tr>
</table>
<pre>
There're **Align** and **BlockIndent** in AlignAfterOpenBracket.
with **BlockIndent** I can do this
```
// what I want(only with BlockIndent)
socket.async_write_some(
asio::buffer(_data, length),
[this, self](std::error_code ec, std::size_t length) {
if (!ec) {
sent_byte += length;
do_read();
}
}
); //Closing brackets will be placed on a new line
// what I get with Align
socket.async_write_some(
asio::buffer(_data, length),
[this, self](std::error_code ec, std::size_t length) {
if (!ec) {
sent_byte += length;
do_read();
}
});
```
but parameters inside constructor parameters will have to be in the same line with **BlockIndent**
```
//what I want(only with Align)
file_trans(tcp::socket socket, std::string filename, std::size_t size)
: socket(std::move(socket)),
size(size),
recv(_socket.get_executor(),
filename,
asio::stream_file::write_only | asio::stream_file::create | asio::stream_file::truncate)
{}
//what I get with BlockIndent
file_trans(tcp::socket socket, std::string filename, std::size_t size)
: socket(std::move(socket)),
size(size),
recv(_socket.get_executor(), filename, asio::stream_file::write_only | asio::stream_file::create | asio::stream_file::truncate)
{}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztVU2PmzAQ_TVwsTYiQEJy4JAPrdRTL70jYw_grmMj2yRNf33HhmySbjZSb1VVyxKYmXmM572xa83P5bcODERpYYBE6QbnRopWja-EKj593UrN3r4oDspNNqFIcN00DszXHtTWUPYGbhYl-yjZkJNw3afBXwijinBNXCfsGBAtk2mOy_QVJzl11KH3ifrQlVbyPALfQa7HEKvD_6k9K1adjHBQWX3Aza2mlHBQK3SUbXDWQ9OAQWPFqaNRuiMSVOs6D5furhHRYhuSRAcLsokWe4yxjo8oYIw2FdMcCLDgc7FY8RMqdwUlUbG9ovohGuJzS-c-8oHdD4sbrOqz8-xso2x_wcse-HJdGaA8YK4_eETF_mZTl8XoScZq76S2QrWkHpm0WGopSQ2kl5QBJ1oRShSciBQKpvgHZLXgRpJGKf3n5s-5mVh51Bj14EhPDT0A9p3FNrQCN8i0ss4MzGlzaw0EdvQIxGlPJDat64BYtAcSn3bpk778rC2nw2NqyEZILLOhChlaOdZPxQ9SIOPjnhZnvPx8mKJeHB8p8493_FCtbPMOdaX-oI9eWxfD-nfhkAlodcG7NxpgR6--SbUo6Ap-ABuwuhOD9_5h3KT9wXaVNu4R6KHyzuOHsRlCCaNi98yT4dqL7bkXqkAx9Huvktfutd1v2Hvv01vm_33i7tL8a4i577KYlxlfZ2saO-EklHjQMUlV-9Joc6AODzpC-x4zq_Wl68JlfcPkpxd0PBhZds711ucVBNGiCoZ6xvQBF1IeL4-X3ujvwJCIV2HtACiH18UiKZZxVyY5rylfJQXl89WyyOdryvIMmlWTpfm65rGkNUjrU4_S1N8aAQLfMftYlGmSpkmeLuaLNJ0nszpfQJ0WbEkbOk_qPMoTOFAhZz6PmTZtbMqQUj20Fo1SWGevRmotbhVCpTw-HVynTSnswJtjHP5chsx_AR0ypBs">