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

    <tr>
        <th>Summary</th>
        <td>
            clang-format formats lines exceeding `ColumnLimit`.
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          LinZhihao-723
      </td>
    </tr>
</table>

<pre>
    When running clang-format on the following code section:
```
 RegexASTCapture(
            std::unique_ptr<RegexAST<NFAStateType>> group_regex_ast,
            std::unique_ptr<Tag> tag
    )
 : m_group_regex_ast{
                      nullptr == group_regex_ast
                              ? throw std::invalid_argument("Group regex AST cannot be null")
 : std::move(group_regex_ast)},
              m_tag{nullptr == tag ? throw std::invalid_argument("Tag cannot be null")
 : std::move(tag)} {
 RegexAST<NFAStateType>::set_subtree_positive_tags(
 m_group_regex_ast->get_subtree_positive_tags()
        );
 RegexAST<NFAStateType>::add_subtree_positive_tags({m_tag.get()});
 }
```
The formatted result is:
```
    RegexASTCapture(
 std::unique_ptr<RegexAST<NFAStateType>> group_regex_ast,
 std::unique_ptr<Tag> tag
    )
            : m_group_regex_ast{nullptr == group_regex_ast ? throw std::invalid_argument("Group regex AST cannot be null") : std::move(group_regex_ast)},
              m_tag{nullptr == tag ? throw std::invalid_argument("Tag cannot be null")
 : std::move(tag)} {
 RegexAST<NFAStateType>::set_subtree_positive_tags(
 m_group_regex_ast->get_subtree_positive_tags()
        );
 RegexAST<NFAStateType>::add_subtree_positive_tags({m_tag.get()});
 }
```
Configure files we used: https://github.com/y-scope/yscope-dev-utils/commit/0ae873bcda1b71bd8aaadc77142fb664974b22ab
The bug can be reproduced on both clang-format 18.1 and 19.1
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVk1v4zYU_DXUhbAhkrJpHXRw7LiXRQ-NgQK9GKT4JLGgSJUfzubfF1SddbJJjLTYU7GEAYmQ33A48wakCEH3FqBBqzu02hcixcH55ou2fwx6EG7BKSukU0_N7wNY7JO12va4NcL2i875UUTsLI4D4M4Z4x7nr04BDtBG7SxiW1TuUblF6_Lym6f4N-jh6_bhuBNTTB4Q3Vw-vBghqlzPtsnqvxKcpugR2z1XIrb79bB9iCLC8WkCxO4Ru8e9d2k6-fyfkwgR0d1ncY-izwBR9NcKROvLBLEtHk_fo_O7t-jXYZMxU_QYsT1i-zfUblQ-D8QOOA7ePV45a3sWRquT8H0awcasHKW_ZGw8Y-PtwxG3wloXsYSZBKL09U6-oY3unLV_o1qN-P5d7TAeT1kifvfd7qLoP0_3KPp_SzEvOtPCV9VvtUIuDRBPIcnoAU6TCzrqM2T24dpubzxdIHbf36r7xvLZI1oj9llGQqmPkfndrO2yh3hZKJvwAj3P30vTcc5fTmMEhT2EZCLW4cPwYfxx_n5o6P5L0l61__uhux2sH5uan3n5_-Vl52yn--QBd9pAwI-AU4CsHx5inObg0AOih17HIcll60ZED0-L0LoJ8tv8slBwXqSoTUD00Lpx1BHRQylgw5lslSCSE6k2QgjVck4q2sn1uqp5JSkV8ppcmWZzs7MeJu9UakHlY1W6OLw-a8lmSbCwCpN6SQrVMFWzWhTQEM7IipNNvSqGRlRtV3di05WEq5UoWavWbb1minGQitFCN7SkFSGkKjeEsNUSaL0SvCq7SkpeAUNVCaPQZmnMeVw63xc6hAQNIWvC68IICSbMlwZKXxLMXbnaF77JdQuZ-oCq0ugQwxUp6migebWtfx4BG20hYPjaAqh8k0DrcudMGu0XncVdl8siedPc8CivcnksJu_-hDZ7MpPPLl34nxv6dwAAAP__WvC5rA">