<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/98012>98012</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Wrong indentation when `if` is without brackets
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jajik
</td>
</tr>
</table>
<pre>
Maybe I'm missing some configuration option, but given the following code from [openssl](https://github.com/openssl/openssl/blob/82a13a1f5053462f826bfb90061f0f77e3cc98a5/crypto/context.c#L198)
```c
#ifndef OPENSSL_NO_THREAD_POOL
ctx->threads = ossl_threads_ctx_new(ctx);
if (ctx->threads == NULL)
goto err;
#endif
/* Low priority. */
#ifndef FIPS_MODULE
ctx->child_provider = ossl_child_prov_ctx_new(ctx);
if (ctx->child_provider == NULL)
goto err;
#endif
```
the comment gets indented with the `goto` and not with `ctx->child_provider = ...` as I would expect.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEU01vpDgQ_TXmUgoyRfN14JBsp7WRetLRZkd7RMY24IyxkW3SnX-_gmaTmYl2BiFcFPXKvFd-zHvVGylrkt2RbB-xOQzW1S_sRX2LWive6i_srZXwQLAYYVTeK9ODt6MEbk2n-tmxoKwBOy0LwT-gnQP06lUaCIOEzmptzwuIWyGhc3YEkt3ZSRrvNcn2BMshhMmT9JbggeChV2GY25jbkeDhv7rvo1bbluChRJakLOkymqW7HLsS87ZrK0rzpKNdUciU86pkGcEDd29TsEtgTZCXEHOC6TGpSoIVoXtCb7dnTq83394xVZ0RsoPT0_3j8_OxeTw1f__51_3tvnk6nY7XKgAAHi43JL0Pg5NMeCDpHqz3utkSDQ-XxsgzwZKHy7JrereBVQfX7E_4pcXj1-Px_Rdhu3obLEjn3lsQTKURqnsv24JVzls42jNMTlmnwlsMBFeZf6J3eHh6br6c9l-P95848UFp0UzOvioh3Qe1j_wv2AH8SPBzs888f0PwfUjfT245atyOozQBehk8KCOkCVLAWYVhPYkkp0tnklNgRoCx4fptGff_Mo3jeAV4eICznbUAeZkkD3Ek6lRUacUiWScF0l1a5EkWDXVW5bsioV2S5yVvy7JgRZWhoCyjmOZtGakaKe5oQcskQZpkscC8FaIoU07bIhGU7KgcmdKx1q9jbF0fKe9nWVclTTDSrJXar35F5JqZ_qazbmSBIC4OdvUCu2nn3pMd1coH_9EoqKBXr_8AzPbwj7Om30S7Gvo8SLNoo7pFAOVXsewcoHWMf5PBR7PT9S-su2y6LTeTsy-SB4KHlYoneLiyea3x3wAAAP__5OJgUg">