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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] C-style cast with extra parentheses as first term of binary operator regression
        </td>
    </tr>

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

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

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

<pre>
    clang-format version 18 would format this way:
```cpp
int result = ((int) a) - b;
```
but version 19.1.0-rc3 formats instead:
```cpp
int result = ((int) a) -b;
```
there is an easy workaround of removing the extra parentheses or using a c++-style cast like `static_cast<>`, but it'd be nice to get the previous correct formatting.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykklGPmzAMgH9NeLGKgoFCH3i4Xte_MYXgg9ylBNmmXf_9RK_SbtP2NClKFEfOFzufEwnjTNSZ-mjqU-ZWnRJ374nilPxH1qfh3vno5nH3lvjiFK7EEtIMRQu3tMYBnnGdgsDN3U35YuzJ2Bezt5_DL8tnJMwKTLJGBVOewGBrsA2zGjyA26Yd9KY8_pH-ue3XL-hDXuR2x758wgXCLEpu-C_4P9k6ERMEATcDObnDLfGH47TOA6Q3YLqka5hH0ImAfig7WBzTrBMJCSSGVbZjB97g0eBxJ3qPBN6JQgwfBGZvRZ0G_32LmfLVlN82Or7CVndQg80APcEcPIEmGEkftIXpGtIq4BMzeX32Q8M85tnQlcOhPLiMuqLBqqqK1u6zqdvj4JvKt1gMthgs1a2vXWsR-6a0zaHKQocWK9tiWRzKfbXPm8E6X_jGYtvWHq2pLF1ciHmM10ueeMyCyEpdYeu2tVl0PUV5KIX4VR6DuEnG3Za369dRTGVjEJVfN2nQ-NDxt8T6BK9f23YLOv2l107gLbAoKPFl-5s-zI7vkBZip4mBaWSSzaJs5dhNqots0uDZ4HkMOq197tPF4Hl70HPZLZzeyavB86NOMXh-lnrt8GcAAAD__4DXBxw">