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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Ability to configure penalty for breaking scope resolution
        </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>
    Clang-format has many penalty options to be able to configure where line breaks are chosen to be placed.
There are also several hard-coded penalties in the code that are for specific situations that aren't worth making configurable.
I noticed that one such hard-coded penalty is for breaking at the scope resolution operator, though it appears that this would be straightforward and suitable as one of the configurable options.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkksFu4zgMhp9GvhAJZDmJk4MP3RYB9r4vQEu0pa0sGSLdIG8_sMedTmdONgT-5MefPzKHMRF16vyPOr9VuIjPpSsTlncqVZ_ds3uNmMbDkMuEAh4ZJkxPmClhlCfkWUJODJKhJ8A-0vprcxrCuBSCh6dCEEMi6AvhOwMWAuszU9pFc0RL7qj0m9Iv_231aw1GzsD0QQUjeCzuYLMjt08OxBASiCdYn0E8yiYbcgGeyYYhWOAgC-6Ae0FSphV45CIeJnwPafxFu9LvGP9CyhIsuZ-6nAh4sf5vjicE3mZu263dUDYqtnkmKMQ5LisB5JkKSi7KvIL4vIweggDOM2HZ8cQHhkdeolt9YSkYRi9DLg8sDjA54CXIZjLyBpWH3YKvDT5Pcqxc17hbc8OKurrV57pu6nNb-e46XFpyWPe3q0UivNHN2hYvl4vGoe6vVeiMNidd1402jWna46BvOGjSrbmcnXEXddI0YYjHGD-mYy5jFZgX6tqrrk9VxJ4ib5kyxv4WH2XMmrLSrbJDv4ysTjoGFv5qJEHilsdvwvMbvPQhBnl-j9fnEb5d4E_rq6XEzovMrJoXZe7K3McgfumPNk_K3NfZ--cwl_w_WVHmvm3Eyty3pX4EAAD__06FGog">