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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Incorrect formatting when expression has template like comparison operators
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format,
            new issue
      </td>
    </tr>

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

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

<pre>
    Consider following code snippet:
```c
void test(int i, int *j) {
  bool b = *j < *j && *j > *j;
  bool c = i < i && i > i;
  i < i && i > i;
}
```
`clang-format` will give:
```c
void test(int i, int *j) {
  bool b = *j<*j && * j> * j;
  bool c = i < i && i > i;
  i<i && i> i;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0kt2OmzAQhZ9muBltZMb8XnCxC43UxzBmAk4NRraTtG9fQbLdZm9WqlQJifk5Z8SHjgrBjAtzA_kb5F2iLnFyvlnVyl5PyhrNSe-GX03rlmAG9nhy1rqbWUbUbmAMi1lXjiBfQXQgXqEQ90ff-6szA0YOEagyS0QD1OJWAL2egWqE8u2uROyds9gjyG7fIsj2UVABVLwPv9298tmnd5_ZTebdYXa5-Uv7hQDK7hPHn1ZbtYwvJ-dnFaEQeDPW4miu_D_YQbafyPH8IMd_RgfZfqy_4k6GRg61rFXCTVrUmaS6ymQyNaksdc1ZkclKFUNFTIMslOCyL08ppVViGhIkRZ0KUaYik4ecpSpqwVqTzrVKIRM8K2MP1l7ng_NjYkK4cFPkVVkmVvVswx5IoqefTgTUAtHCN9wd2yTvEt9sh176yxggE9aEGD5ORxPtHu-nU3mH3xftvGcd8T6LW6ZvEy_IP1fPIRi34KQCRp5XqyKjNT8YtZtX5U1wC7qVvYrOh-TibTPFuIYtC3QEOo4mTpf-oN0MdNw-5vF6Wb07s45Axx0hAB137t8BAAD__2UDACE">