<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55113>55113</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format 13: Additional space in indentation depending on context
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
svenihoney
</td>
</tr>
</table>
<pre>
.clang-format: https://termbin.com/9zqm2 (lengthy, I know, but no time to strip down, sorry)...
I have an issue which is introduced with clang-13. I have a code snippet like this:
```
void VersionLogic::versionsRequested()
{
QString versionNSDB = localVersions()->property("nsdb_version").toString();
QString releaseTag = localVersions()->property("git_tag").toString();
QString versionCfg = QStringLiteral("%1%2").arg(
localVersions()->property("conf_deuta_sw_no").toString(),
localVersions()->property("conf_deuta_sw_idx").toString());
}
```
If I use clang-format version 13, the localVersions()-> lines are indented 5 spaces instead of 4. With version 12 it is the expected 4 spaces.
* If I remove any of the first two QString lines or comment it out, the indentation is at 4 spaces as expected.
* If I add an empty line after the first two QString lines, the indentation is correct as well.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVMtu2zAQ_Br5soiglx3roIMTN0CAoECboj0alLiS2FCkQlJ23K_vUpKdukiKABX04EM7MyRnt9T8WISVZKq5qrXpmAvSDbTO9ZYaQXJHt0PTlUKFle6ol_967hIIkrVE1bj2GCS3cA9PSh98qxwcKA1OdAhOg3VG9MD1QflJq42h__MwDINoG0Sb6X0PLdsjMAXC2gHh0IqqpTYI5YzmQ4UcDsK1MMmM0xBOIVBpjmCV6Ht0IMUTsbZilD4RrKL5Hrt7LTh8R2OFVg-6EZX_Md3spxH7FZ8HtA45rY5kzhDXN1MD6PrySAtSDcwRnx-3NxCkW5C6YnIGtlP0VZB-6o3u0bjjOJIoy8vdHEldvxFOT4AzYfoGlUGJzOI31sDHqRrhdo41H2eZZd3WM8s8_iDo8JmcQINkGdOTzKjMjIBnKH99SFylVb3jODi2s4ed0m-rTG7_G1rwl3ewXzchuN6-aZX7mkw2WIQ_c-O0TRCn3s-uxfdkkRcVWmAGycUcFZkKlmB7VqH3NZmMcdA1ZCH88NY-AycgnPe-x8aXHisfmc2RF2kTJBsYVRrs9Jg_R4_oA2thrAN30OfzneRoQwnTdSTHs-jBnVYxaWTOSyByWumJEpg96wj_Imac-6zFrnfHkQFYTX75l4R3CCuqDEThyQ4oZbjgRcrzNGcLJ5zE4uIQaPOpRm04Fz6cyUkpQV6gcuxRcU9MHfKFwxe3GIwsLosbZUo7lHNtk3J_-lyRsX6SJOqOVYmU3y2XcZwu2qLmOYljmEXrVR4tY8yTbMnKOIuwvq54tpCsRGmLYHnj0x4PU2HzXlxuF6JIoiSJsmQVr6I8XYUVzzFfl9fZep3G67oOCKdjQoZeR6hNszDFKKkcGkuTUlhnXyeZtaJRiCMd4bPBtdoUdo9KtFrhcTGyF6P63-hu45Q">