<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/72751>72751</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Regression in clang-format version 18
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
prj-
</td>
</tr>
</table>
<pre>
This was clean with `Debian clang-format version 18.0.0 (++20231026100904+d808d922b42b-1~exp1~20231026221021.1657)`.
```
$ cat regression.c
#define SFBASICHEADER \
PetscMPIInt niranks; /* Number of incoming ranks (ranks accessing my roots) */ \
PetscSFPackOpt rootpackopt_d[2]; /* Copy of rootpackopt[] on device if needed */ \
PetscSFLink avail; /* One or more entries per MPI Datatype, lazily constructed */ \
PetscSFLink inuse /* Buffers being used for transactions that have not yet completed */
$ clang-format-18 --style=file:clang-format.txt regression.c
#define SFBASICHEADER \
PetscMPIInt niranks; /* Number of incoming ranks (ranks accessing my roots) */ \
PetscSFPackOpt rootpackopt_d[2]; /* Copy of rootpackopt[] on device if needed */ \
PetscSFLink avail; /* One or more entries per MPI Datatype, lazily constructed */ \
PetscSFLink inuse /* Buffers being used for transactions that have not yet completed */
$ clang-format-18 --version
Debian clang-format version 18.0.0 (++20231118111312+bda785a3e2c0-1~exp1~20231118111421.1702)
```
[clang-format.txt](https://github.com/llvm/llvm-project/files/13400631/clang-format.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMlV2PmzgUhn-NuTkKsg8fgQsuwqRoR9puR529XxlzSNwhNrJN2uxFf_sKMmlppyttpdnVRpEM4sXP-Xg5lt7rgyGqWFazbB_JKRytq0b3YRO1trtUvx-1h4_SgxpIGviowxFYzvfUamlADdIcNr11JxngTM5ra0AUMY85MCwY1gxr5JgIjrngvOQpw7oreNGViG2K7UZ8pk-j-HwTIQqOIhZ5tmVYspzHjO8Z37GcP_-vt5iCkgEcHRz5GRur25Oko14bgsem3j3e3_3yZrd_8x5YdncVADxQ8Ortw_29CQAARjtpnjxLamDYMNzBb9OpJQe2B22UPWlzgEUy53S9kErNWHOA0wWctcEzLIHhjmGzQi2kx-ZBqqd3Y1iEo1RPdgx_dCyrkWX7FfbOjpcZupJd2wLWQEdnrQh0D4aoo-4l7Eb7VZunOS95lnqYt1_9nknvDIF1cLKOgExwmjyM5ODtwz3sZZDhMhLDOxjkn3q4gLLGBzep8E-w2kye4AfQeup7ch5amus2eeqgtw6Ck8ZLFbQ1HsJRBjjKM4GxAS4UQNnTONBX8qr_K_NtRAGbjQ-XgViy7_W87NaCOHx6dbd8n-Cr2eZ_4pt_2ywvnfJfmuV5XF0lPz3PhCiEEIlAhnXbyW2RyYRQ8W_m2VWUzvNsy3GeZz-cZVn9vVPn_mJxDGH0LFkSweagw3FqY2VPDJthON-WzejsB1KBYTP73jNsRJJynieCYfNi51sQUVclXZmUMqJKbDlPRJlwER2rQrVSdlLlHak0L3nJc8qKLOlbzIjKNNLVl-TSLOMipnLb9bzfCuz7QqiSpZxOUg_xHF5s3SHS3k9UbXGbiWiQLQ1-OXAQ1-ExnH0duWrJqp0OnqV80D74rxsFHYblsPrmxWwP77982qD_to_R5Ibqp6u6BD-XdYn_rwAAAP__1rgwBA">