<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/107401>107401</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Different formatting around type annotations with JS
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format,
regression,
regression:19
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kadircet
</td>
</tr>
</table>
<pre>
a.js:
```
ctrl.onCopy(/** @type {!WizEvent}*/ (
{event, targetElement: {el: () => selectedElement}}));
```
formatting after [this change](https://github.com/llvm/llvm-project/pull/93140) with `clang-format -style='{AlignAfterOpenBracket: AlwaysBreak}' a.js`
```
ctrl.onCopy(
/** @type {!WizEvent}*/ (
{event, targetElement : {el : () => selectedElement}}));
```
I can't really say this change looks like intended from the bug fix and code changes. Moreover, these kind of type annotations seems to be [pretty common](https://github.com/search?type=code&auto_enroll=true&q=%22%28%2F**+%40type%22) so unless the change deliberately changing behavior here can we restore the old behavior ?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVEGPrDYM_jXmYu0IEhiGAwdmWaRWqnrooccqEAN5k0mmSZgt_fVVsvPertRtq1aVogC24_jz5w_hvVoMUQvVGao-E1tYrWsvQio3UchGK_dWHL544B3kPeQdHPPHSp9TcPpgzbO97cBOwAZgHbAOoczDfiOE-gys-Fn9_nInE6Duk3_AGJwSIGIMouRmzxiEWyi8aLpGA--SU6eXmL9B4D3wF_SkaQokv0bWfUrexMXPn9b6ts_WXUUIyiwo5kAOoTqHVXmcVmEWgqoHdlpDuCXMEdCwqLBu42GyV2CD1vevj6ebs19oCsCG26Y1sKHhRZnHKl9VWBGO-aSFWZ7e7sQnH3ZNEQCroT53Wi2mizX8eCNzdmK6UILc6Vex-7MjcUmgakwUfMPxtxS8d_U_kPGXTOA3KvB_5OI7nIQBVgd0JLTe0YsdP5CB2tqLR60uhMoEMpIkzs5eMayE47bgrH5DYSROVtLjkD_gD9aRvZOLMGKoJ7woI9HOmBohjLFBBGWNR0909RgsjhRH4eYohB0ne71a84_D4Em4aQU-xLTA-1gGsKPYgv2FjLNaA--D26Lx10R8xVjcTnF78APsDKx64-gR0KC3uBlN3ieoj3ZI0mokJwLp_c0Wx3ikVdyVdbiSo9hRfCV05IN1lE5bLd-DgA-ZbLlseCMyaouaVVXJWd1ka8uFlBURFc3pNFYzG5k4Ek3Eyjo_0nHMVMtyVuZNXhWcl7w5HOuxnmVRFs1pbpo5hzKnq1D6EPVxsG7JlPcbtUVel3mRaTGS9ulvw9hHbUBE_QyMOVocea-s-czEu6KJ9qrPXJskOG6LhzLXygf_fmlQQVPbq3kmF6f3o-id3Yz88xwkxX7_U7Y53f5r-SeQHtjwwHlv2R8BAAD__2i8o5M">