<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61998>61998</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: missing BraceWrapping configuration for multiline initialization list
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alejandroclaro
</td>
</tr>
</table>
<pre>
It's not possible to adjust the position of braces when there is a multiple lines initialization list.
For example, in a code bases with Allman-like braces placement style. This
std::vector<Bar> foo =
{
makeBar(x, y, z),
makeBar(u, v, w)
};
std::vector<int> baz = { 1, 2 };
is always transformed into this:
std::vector<Bar> foo = {
makeBar(x, y, z),
makeBar(u, v, w)
};
std::vector<int> baz = { 1, 2 };
It looks like there is a blocked PR related to this here: https://reviews.llvm.org/D91949
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMU8GO4jgQ_RrnUgIldjrgQw7QLFLfVquV9lxJKsSNY0d2BZr--pWh6QFpRnOdSyWOX57fq_LDGM3BEdXiZStedhnOPPhQo6V3dF3wrcXgs8Z3l_qNhVxFcJ5h8jGaxhKwB-ze58jAA6XPho134HtoArYU4TyQS3uBwERAGGfLZrIE1jiKYJxhg9Z84vU_ayIvRb4T-eZW9z4AfeA4WRLyFYwDhNZ3BA3GxG54gI21I7qFNUe6nzpZbGkkxxD5YmkJ_w4mPvICRO6E2gi1OVHLPgj1usUg1F_Qew9C7eAOFKvt1-uIR0oguf5IYi6pfAqphXy9g-EBNKf9UyrnBPqm2wm1_V79Uo1xnNQ0-HlTs9pCkbjkE8Otps7aM14icEAXex9G6sA49sDJuNo8ef-t9QfPT47-MNtvDNb7Y4Tr6B8uWWN9e6QO_v4HAllk6uCrFZBAQm1gYJ6ujZF7IfeBTobOcWntaVz6cBByv9OFLnXW1arTSmNGdVGt83VVFqXKhlpVZaN1JVtdrfJVpapi_dJLpVFXrUKFmallLlVe5qsiL6VUy6YsqkI366rrle7LSpQ5jWjs96GZiXGmuiq0XmcWG7LxnspQJ9CimQ9RlHlKyQ-tGRu2VLcW3WGRRo-cDI4mRuMOsE2J-C_gNKVV611vDnO4xa334RbIFMafZTGbg62fW3UwPMzNsvWjkPuk4euxmIJ_p5aF3F99RCH3Vyv_BwAA___Fk1Pl">