<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/72785>72785</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Regression in clang-format version 17
        </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>
    ```console
$ cat regression.c 
#if defined(PETSC_HAVE_CUDA) || defined(PETSC_HAVE_KOKKOS) || defined(PETSC_HAVE_HIP)
  /* Free memory and set ptr to NULL when succeeded */
  #define PetscSFFree(sf, mtype, ptr) ((PetscErrorCode)((ptr) && ((*(sf)->ops->Free)(mtype, ptr) || ((ptr) = NULL, PETSC_SUCCESS))))
#else
  /* If pure host code, do with less indirection */
  #define PetscSFMalloc(sf, mtype, sz, ptr) PetscMalloc(sz, ptr)
#endif
$ clang-format --style=file:clang-format.txt regression.c
#if defined(PETSC_HAVE_CUDA) || defined(PETSC_HAVE_KOKKOS) || defined(PETSC_HAVE_HIP)
  /* Free memory and set ptr to NULL when succeeded */
  #define PetscSFFree(sf, mtype, ptr) ((PetscErrorCode)((ptr) && ((*(sf)->ops->Free)(mtype, ptr) || ((ptr) = NULL, PETSC_SUCCESS))))
#else
/* If pure host code, do with less indirection */
  #define PetscSFMalloc(sf, mtype, sz, ptr) PetscMalloc(sz, ptr)
#endif
$ clang-format --version
clang-format version 17.0.5
```
[clang-format.txt](https://github.com/llvm/llvm-project/files/13402445/clang-format.txt)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVdFu2jAU_Rrn5YrIsRMCD3mggahVu7Ua616rEF-DKxNHtmnHvn5yAi20m6q9bdKkSAbu8bnnHh_i2jm1bhELkl2QbB7VO78xtujs4yhaGbEvyJgOT2NaZzQSOid0RlgKTe3B4tqic8q0cQPHElcSBErVoiBscrf4uiwfLmffFg_l_XxG2BRIXpK8_DXm-vb6-nb5Eery6o6w6dAQgLCKsBlUFhG2uDV2D3UrwKGHzlvwBj7f39zA8wZbcLumQRQogLBZ2PjCwYdOcIfeNcsqsBE2cZKwErZ-32H40Hnba2OTICggF9YaWxqBQVD_8wtmTNj4AO2b9WTTEeEL07mwDD3CtncNhuHPCfm8HyTABi-W92W5WC57iuNzPATUDt8YdCWh21mEjXEeml5yCcLAs_Ib0OgcqFYoi41Xpv3In0-11qZ575D7cTJGj31FnpRedbZCyZNU6bpdj6Sx29rDaOT8XiPhc6nCMjutxv77eQD_5-_vzN-_m74ntCFaQ_2sdqhAksc0zg4Ex1fl4Wt28TauJJsTNtl43znCB1-qtfKb3SpuzJawSuun4zLqrHnExhNWhfA7wqqEp5SlaUZY9Y75OFMkCi6mfFpHWCQ5pTxPGc2jTZFJJgUVPJdNLaWc0mbFm4zlIl1NMjkeR6pglPEkSaZ0nFCaxw2dCC7rfMyZZKuEk5TitlY6DvJiY9eRcm6HRc7ySRbpeoXa9fcIY6fyCGPhZrFFP9Vqt3YkpVo5716JvPK6v4PONmZz-PLy_wbVwm-OINpZXfyxq734YGuv_2cAAAD___6vFTs">