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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Ternary operator with unparenthesized comparison 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
bool outofbounds = checklower ? a < b : a > b;
```
but version 19.1.0-rc3 formats instead:
```cpp
bool outofbounds = checklower ? a<b : a> b;
```
there is an easy workaround of putting parentheses around the comparisons, 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/eJykks2u2yAQhZ8Gb0axMPgnXniRm9RP0BfAeGxzQxiLn0Tp01fOtdq0i24qIYEG5nDO6FMhmNkhdqz6YNUlUyku5LtPQruQvmYDjc9OW-Xmw0T-piLc0QdDDoojPCjZEfZ6XEyAh3oyeWL8wviJ1fxr6XX9qgxEFihFmgZKbgzA5AX0gvpq6YEemOxBAZNnGIDJ0-v8DQYmP_5S3OXSm5s2L3J-8FrufgIYFyKq8X_9MHne3fzTTFzQI5gAygGq8IQH-avymy7QBGuK0bgZVuXRxQUDBthv44Kg6bYqbwK5wMQZtmQmMtGMMCA4oxEiwYzx9Xj1eDeUAmjyHnXcE2_6eTZ2cmxlqzLsikaUZVlIXmVLx9uxbNtpKqu6KZSuBy6lUkWtpKwLXpeZ6QQXJT8KWbTiKKpcalnzEmWpm6kZkLOS400Zm1t7v-Xk58yEkLAreHVsmsyqAW14cSTEOzFMiI0s3219hyHNgZXcmhDDb6Voon0x-EdjdYHv6J3yT6AVvYrk4WHiAsn9mqP5gePb-MDj7DFsTGTJ226JcQ0bAqJnop9NXNKQa7ox0W-f79th9fSJOjLRvzIFJvo91r0TPwMAAP__60YAaw">