<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/72264>72264</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Regression in clang-format-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)`, but is not anymore with `Debian clang-format version 18.0.0 (++20231113111449+a604c4b562e9-1~exp1~20231113111557.1692)`.
```console
$ cat reg.cxx
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
$ clang-format-18 --style=file:clang-format.txt reg.cxx
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
```
[clang-format.txt](https://github.com/llvm/llvm-project/files/13350226/clang-format.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0lNFuqzgQhp9muLFA9mATfMFFs1EeYLXSXkYGBuKK2JFt2nQv-uwrSNJNu0dHOpUOAiysn9H3_8xgYrSjI2pAbUHtMjOnow_NOTznWev7t-avo43s1UTWTWQce7XpyKDiO2qtcaybjBvzwYeTSeyFQrTeMVEXvOAMsAbcAm6RYyk4VoJzzSXgtq953WvEVmKbi3e6nMX7XYQoOIpCVGoDqKHigH-wdk7MRuZ8Ysa9nXyg74MIsVxSasCtqbjsZKsqJP0J5CpSalOISuMVpAC-A_60IK1n5130E912UbLOJBZoLLrLhd13SzuwngbrqAesD4eV83BYKq4KxgDLczDjyVw9sN6a0fmYbMfOczzeZD9R2dH5QD0DxPzvfyj43MTczdOUn711iUK-kCbjEiB-cJHr7fDA_pBfLmqW5zG9TQTlbrDL8vQoKNLlw-n3jT4cP_b8e03fP-PtUW2_OgS1A6yPKZ0jlE-Ae8D9aNNxbovOnwD30_RyX_Jz8M_UJcD9klcE3IuyVByxAtz_r_I9lOs965uy16U2GTWi0lpvpMAyOzaybTeVFLIjLUrSQpIxqHEQpl3Gp8psc-tWKRQXShW6xo4PGyFJUc0HAZLTydipWCALH8bMxjhTs0GsZDaZlqa4jj7iI-SSmdploVm9tfMYQfLJxhT_K5RsmtbfxqcX1Y79SWOguA6gdV8bK5vD1Pxypiv0EurK_W8AAAD__5DfbeU">