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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Misformatting co_await operator declaration on main versus 19
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

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

<pre>
    While testing with the main branch, I discovered this formatting change from 19.1.0.

Using 19.1.0:
```cpp
SomeLoooooooooooooooooType::Awaitable
 SomeLoooooooooooooooooType::operator co_await();
```

Using main (20.0.0git https://github.com/llvm/llvm-project/commit/19834b4623fd1e7ae5185ed76031b407c3fa7a47):
```cpp
SomeLoooooooooooooooooType::Awaitable SomeLoooooooooooooooooType::
operator co_await();
```

The new formatting breaks at the scope resolution, which has a very high penalty in the default format style.
This suggests that something has changed and is preventing the previous formatting, which looks like it should have the lower penalty.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykk8FupDgQhp_GXEpBxoYGDhw6G7W00u5ps9rjqjAF9rTByDbd6rcfmU4mPXOJokFICNv111-urzAEMy1EHaueWfWS4Ra1852f0Z_JZ70bbt1_2liCSCGaZYKriRqiJpjRLNB7XJRm4g_4EwYTlLuQpwGiNgFG52eMe5DSuEwEo3czFG1e5Dxn_Mj48d-Qtu9LTKYVduD3V60r48d_3Ex_uV-f19tK6bg8Hq9oIvaWGD_CZ4fdSh6j86Dc_5gCmWiYaJl8fkz86GwvkolG8JznfDIRdIxrSHLixMRpMlFvfa7czMTJ2sv752n17hupyMRJuXlOmU5F28iyLw9CjkNBNVJVNBUN9YHLoi95reSINZb17uh3ruLTe2D8S1fxqgkWuj42tPeE5wAYdxSCciuBp-DsFo1bEg9XbZQGjQEQLuRvoM2kYaUFbbyBWfbAgUbcbHxThhBvlvI9owkQtmmiEANEnfbcTFGn3EnzDtQAuAxgAqyeLrTszpJs-jVue0Tww5J17hzAmjOBiRC02-wAGi-0h1p3Jf9uM8-GTg6tbDGjrqhlfWjaRtaZ7speNYrwgOOIB16IZpQ156oeipbKCsfMdIKLihei5FLWRZ1jVY0N5xWWbSPkYWAlpxmNzRMuufNTZkLYqCtEKYTMLPZkwz6WQiiLy_R0L4YJkQbVdztm_TYFVnJrQgwfStFEu4_0T4HVC_xtwuNUvrUefsAwkLLoMfUQ3HKn_0I-bAGKNtu87b6M_15VSPjfC7t04nsAAAD__zUSeaU">