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

    <tr>
        <th>Summary</th>
        <td>
            [format] Unstable formatting in a macro with a string over 79 columns
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Godbolt: https://godbolt.org/z/Khvbc3MWW
```cpp
#define a_macro() \
 static_assert(FillingSpaceUpTo80ColsZZ,                             \
 "This makes us go over 79 columns")
```

Hit format once, it splits the string and puts it on the right.
```cpp
#define a_macro()                                                       \
 static_assert(FillingSpaceUpTo80ColsZZ, "This makes us go over 79 " \
 "columns")
```

Hit format again, it now moves the string to the next line, keeping it split.
```cpp
#define a_macro()                             \
 static_assert(FillingSpaceUpTo80ColsZZ,   \
                  "This makes us go over 79 " \
 "columns")
```

Join the string back together on the 2nd line, and it repeats through these 3 phases.

I believe it should be a property of clang-format that you don't get different results by running the tool twice?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0lFtr6zgQxz-N_DI0yPIl8YMfug3eG_u0LYW-FNmaWGpkyUjjZLOffrGTbi8HCiecI4yNPNKM9Js_fxmj6R1izYpfWLFN5ETah1pJJ_cvSevVqf7Vq9ZbYtktaKIxsuyWiYaJpj8HVj70TDT_MtH8qQ9tl_31-Mj4lvFbVvLz043j5Y_IFO6MQ5DPg-yCZ2LDRAWsuDsvgEiSTPcsY8RATGwaY61x_d-j7PBhvPcbfudtfHpi4g6-Gm8ZmRD32kQY5B4jTBF6D_6AAdYVdN5Og4tMCCaqT4e-TJf3b4Zg58MgCbzrcC5uCOJoDUUgjRApGNeDdArGieIc9W6JBNNrWn0vkOvGdRi_AsSE-IjyCmKyl8ZdkDl_hMEf8AM18svM4T8E1rgF7x5xnGOvmH8owWvl9rbv25Q_A-If3rj3oFrZ7YF8j6QxvApMOPU_tVl_hiDgiHJRZvBTr-dlESGDUcuIcfW-xO_QojV4wIW09pNV0CJIGIMfMdAJ_A46K11_c2knaUlw8hMo75hYE_RIoMxuhwHdXDtOliK0JwiTc0t_NQJ5b4GOpkOWNYmqM1VllUywTst1tuHrNE8TXa8lr7K2rDgKWalusytUme1SVZUqz7niiakFFxlP0yLdiCJPV22xqbKcY5eVIscyZznHQRq7svYwzNaUmBgnrEvOizyxskUbF7MTwuERluDch2KbhHrec9NOfWQ5tyZSfMtChuzikmcKrNjCg4skW4sXndMiVwcSFhnC0ZAG-dq6T46TTMHWn-zUkJ7aVecHJpq57uVzMwb_gh0x0SynjUw0y23-CwAA__86EbZJ">