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

    <tr>
        <th>Summary</th>
        <td>
            clang-format 14 and 15 producing incompatible formatted code
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          lucasperin
      </td>
    </tr>
</table>

<pre>
    I have noticed that my CI using clang format 14 cannot validate the code I format with clang format 15. This is an issue since the CI will block PRs that are not well formatted. 

Consider the two examples of code below that will be formatted differently when using Google style formatting.

clang-format 14
```
typedef const struct { int32_t vec32[4]; } data_t;

#define TEST_CASE(test_func)                                                   \
  { #test_func, test_func, NULL, NULL, OPTION_NONE, NULL }
```

clang-format 15
```
typedef const struct {
  int32_t vec32[4];
} data_t;

#define TEST_CASE(test_func)                             \
  {                                                      \
#test_func, test_func, NULL, NULL, OPTION_NONE, NULL \
  }
```

I use this website to confirm and reproduce the issue
https://clang-format-configurator.site/

I have also tried `clang-format --style=Google --dump-config` to diff the style file from both versions, but I cannot find a way to make both versions compatible. 


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1VF1vmzAU_TXwchXER0jIAw9t0k6RqrTasufI4EvwanBkm7D8-10-kiZVN6mbhiwjc33PPT7m3EzxU7qGkh0RamVFjhxsySxUJ1iuoTGi3kMuGc2F0hUFginkrKa9cGRScGaREhByxRHW502tsOW7tNiDbSkM0GA1zaZBIPR8SKdarZASMqnyV3j5agYWTPe0oEWKDUgWuQeOv3L8u2FeqtoIjrrHsa0C_Mmqg0QDqhhoZShVOwAORfANC7goCtRYW3mCtsR6PPMXpfaSGNqTvOym79515f6Ak4suY2jmj6Nf2tMBOXZEamMJTje5BWd-D6K2UbgjFTGPQie-nzrxyonuKbYCUpXtLK2uqzlhRECiRtg-fNvulnffHpwwsWjsrmjq3AkX8PnHiZcDOvSkqMYV4BJuFpvvT0_X7-eX7fp5s9s8bx7Onzv2H8rwkWDxpwQ70_yNbiPWfxLvnUx_9Vww_l3kazZ_0rszcOcv8lyLmRGdV1WnbCF0RTbkoPGgFW9GF_auHFJLaw_GiYjsI43ri5v0-ftGM6u014F2e26q9u2ESaPAakEeI1o3Vz-Z9L5yotVos8mEN9VhRKbdHc3OmD2r0YOim7SqIFPUXI6ojaBfpBMlayy1nrEr0SVzYNCyUwdSsVe8TaDjVwdmRSbxto-4mAazWTKf-3GYuDyN-CJaMNcKKzF9Z_VeuyCGQbyuX1Anu-BedZeu_7iNlumtnnvqj03mUQotpDyeXxMC_IG5pWV_F3S8x3jhz0K3TDGKi3yW5Dif8wXPZ3Hiz9k054lfhFN_HriSUaMzKXmCLOGKNPTDMAiCJAjC0E88Fi44yxLMAx-jYsqdqY8VE9LrCntK712d9hyyZm8oKIWx5i3IjBH7GvGMzxpbKspocmYOqEXt9ozTnu4veHPpaw">