<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58708>58708</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Unwanted Linebreak with ColumnLimit: 0
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
daschuer
</td>
</tr>
</table>
<pre>
The following code
```
query.prepare(mixxx::DbConnection::collateLexicographically(QString(
"SELECT id, name "
"FROM Playlists "
"WHERE hidden = %1 "
"ORDER BY name").arg(hidden)));
```
is formatted to
```
query.prepare(mixxx::DbConnection::collateLexicographically(QString(
"SELECT id, name "
"FROM Playlists "
"WHERE hidden = %1 "
"ORDER BY name")
.arg(hidden)));
```
even though:
ColumnLimit: is 0
AlignAfterOpenBracket: DontAlign
both should prevent to add a line break
Testes with clang-format 14.0.0
workaround:
```
query.prepare(mixxx::DbConnection::collateLexicographically(QString(
"SELECT id, name "
"FROM Playlists "
"WHERE hidden = %1 "
"ORDER BY name")
.arg(hidden)));
```
This has been discovered here:
https://github.com/mixxxdj/mixxx/pull/11023#discussion_r1009540643
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztVMlu2zAQ_RrpQkSgqMX2QQdvQQ8u0jopip4KShxJTCjSJanY_vuOZAcOmgUIeg1NcBkOZ57nPao04ljctUBqo5TZS92QygggAV0FdB7k9NzHLcH2pwd7jHYWdtxCwKadPBwOQTLHviqXRmuovDT6ZKkwKPewgYOsTGP5rpUVV-qI977feovZcHWJ_dQCxm7Xm_XyjkgRsCXRvIPB-Krn9fbmK_mm-FFJ592bbj-_rLdr0kohQJMgWaEti9_0vtmu1luy-DWmHpzYLOJ2QHuKgPtzTxavlko6rKjtuPcgiDef9XxRz5d-_9M-xg48Imjfmr5psapncpZG9Z3eyE76wYgM0vPJXMlGz2sP9mYHemF59QCjz8poPx6es4xjaXxLHAZXgiCvmMoPCuBCEE6U1EBKC_yBPL9zB86DI3uJVyvFdXN1Ug-J04hG9Lnr3tgHbk2vxQX6p67e09XHtHEmpEX-W-5ICYhDSFeZR7D4llscL4Vvvd-5oYbsGnuD9PVlVJkON2PBxf3TCuddrxROcUxZErBkCNo7hyT8tjGlsyyleZqMf-wZkNMYQhHn-YQlkzRLQ1EkYpbMeOilV1D80Huuh-_MBsV10tYopH8ETcPequIdxEo9Pk1XO2vuUSG4lc714HCRTSd0GraFSCrO05RlU8Zy4BPK8zqvWZwD_rKKhoqXoFwRZAtkRMOejCEGdrJVKAtGGYtpEseThGYob0jrGoNN8zrlaQZBSqHjUkUDjsjYJrTFCKnsG4eHo3wuhxwr2GiAMR3G5z2-a1sI7qoWn0A45i5G7H8ByJbpkQ">