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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Incorrect formatting for annotated constrained functions
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            c++20,
            clang-format
      </td>
    </tr>

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

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

<pre>
    clang-format's output:
```
#define ANNOTATE(A) [[clang::annotate(A)]]
template <typename Message>
    requires(true)
ANNOTATE(
 "Loooooooooooooooooooooooooooooooooooooooooooooooooooong message"
 "Loooooooooooooooooooooooooooooooooooooooooooooooooooong message"
 "message") void foo(){};
```
Expected formatting:
```
#define ANNOTATE(A) [[clang::annotate(A)]]
template <typename Message>
 requires(true)
ANNOTATE(
 "Loooooooooooooooooooooooooooooooooooooooooooooooooooong message"
 "Loooooooooooooooooooooooooooooooooooooooooooooooooooong message"
 "message") 
void foo(){};
```

removing the requires clause fixes the formatting (moved `void foo()` to the next line).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcVE2P2yAQ_TXjC9oID_48-JBsNlKldnvZP4Bh7FDZkAKOsv--wkm72aqXVqoq1UK2PDzeM-_hkSGY0RJ1UO6g3GdyiUfnuyVc2jLrnX7t1CTt-DA4P8sIWAfmlnhaIogt8D3wLVT8Nq6vKDQNxhLbPj9_ftm-PAE2W8CWrQq7lS4tFltprYsy0g0A5T6NlSXSfJpkJAbiMb6eyMqZ2CcKQY4E4ukKYowxT18X4ykANtEvlGjWuTvxGxgQP7o_uOzI5psw4t_huqthy87OaDY4lz4dW6h3UO9B7H7p9tPlRCpSwqd8orl6-6-D-Q9TudZ_J5vr3dPszsaOLB7phy9MTXIJxAZzobDOvOXHAJvZnUkzqPhPehVn0a14S5fIJmOTt5tMd0K3opUZdXnV1mVRNHmdHTvOCy143zQ6p1JVSlWSclHqvm_LWjdtZjrkKHKe1znmQtQbOaicaz4UxHnR6gIKTrM002aazvPG-TEzISzUVa3AMptkT1NYeweiAtwB7pCvjj2myrvWgam_-C4RPfTLGKDgkwkxvFFHE6e1E71bWO7ZB6uc96TivU-D8-z7SdVMORuil8amn2GxKhpnQ7b4qTvGeArpYOMB8DCaeFz6jXIz4CEp3x4PJ---kIqAh3WHAfCwbvJbAAAA___tnaAl">