<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/65878>65878</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/eJy0kt1unDAQhZ9muBll5bX5veAiga7UxzD2AJMajGxvtn37CjZpmtxEqlQJifk5Z8SHjo6Rp5WoheIJij7T1zT70G56o2Bm7dhQNnj7q-38GtlSwNE752-8Tmi8JYwrbxslUI8gehCPUIr7Y-79i2eLiWICWfOakEF2uBcgH59BNgjV012JOHjvcEBQ_bFFUN1rIUuQ5dvw292rPvrM4ePDxG8OPuT8l_YLAVT9J44_rXF6nR5GHxadoBR4Y-dw4hf6H-yguk_k-PxKjv-MDqp7X3_FndlW2UY1OqP2XDa5kk1diGxutSFVjee6MqUtdCNsY0c7iJIqsnktdcatFFKJ5ixEdRaFOOWNsmosc0FUjrouIRe0aHYn516Wkw9TxjFeqS2Luqozpwdy8QiklB9-upQgO5BypRsejn1S9Flo90MPw3WKkAvHMcX304mTO-L94VTR4_fV-BDIJLzP0p7p20wr0s8tUIzsV5x1xETL5nQidPyD0Phl04GjX9FvFHTyIWbX4No5pS3uWZAXkJeJ03wdTsYvIC_7x7y-Hrbgn8kkkJcDIYK8HNy_AwAA__-HAQD6">