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

    <tr>
        <th>Summary</th>
        <td>
            clang-format: template closing brace and greater of operator interpreted as streaming operator
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    When formatting the following

```c++
#include <iostream>

template <typename T> struct Foo {
  static T const value = T{0};
};

template <typename T> static T constexpr foo_v = Foo<T>::value;

int main() {
  if constexpr (foo_v <int> > 0) {
    std::cout << "true" << std::endl;
  }
  return 0;
}
```
I get
```c++
#include <iostream>

template <typename T> struct Foo {
  static T const value = T{0};
};

template <typename T> static T constexpr foo_v = Foo<T>::value;

int main() {
  if constexpr (foo_v < int >> 0) {
 std::cout << "true" << std::endl;
  }
  return 0;
}
```
The closing brace of the template and the greater of sign in line 10 are spaced incorrectly as if it was a stream operator.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVEFv8ygQ_TX4MmpEoI7jgw9p0kh7j7TH1RiPbVYYLBi323-_wknatHtYaS97-SQSY5j3hnnPDKZkB0_UiPJFlKcCFx5DbAzOltFhcpjGog3dR_P7SB76ECdktn4AHgn64Fx4t34Q8iTk4fa_k9dhhHrJ47qqtPXGLR2B0EcbEkfCSejXRyjTNDvkNYQ_ZvI4EVyEfoXEcTEM5xBAVDdKgMTI1sAFTPCJ4Q3dkrEnuIjqRYrqJPQ9_eP8X3M9stJfc4Q-hD_eVuZzCEIfc5zQB6EPa84f1NYzTGi9UHuh6scD2_6BVKj9nfdoPefU-Sd_YHKZ3TWZCQvnaKGPIJTiuJBQ6r7yGUa-c59HAsi136aReIke5Dddvrt2ff0NBuJffv5nPyFjVtJ_GPo_uHkZCYwLKd_bNqIhCP16gT9FQ9-tC0MkZIp5PzcGsB6c9QRbCRgJ0oyGOrDehBjJsPsATFkFy_COCRCu3wGEmSJyiJuia3RX6xoLara7fSnrSpfbYmyqstwbqXRZ6R22zz2123ZfaaQKy1pqWdhGSaVlqXZbqctyu6l3Xd3veqOrrSz7vRLPkia0buPc27QJcShsSgs1O1WXunDYkktrX1PK0zusm0Kp3OZikzFP7TIk8SydTZy-WNiyo8Y49MPTteEJffiS6ruQWbgH0e51Z_8pzpGYuizRVZYMu0cUS3TNyDynbLM6C3UeLI9LuzFhEuqcj3N7PM0x_EmGhTqvRSShzmuRfwcAAP__C7Kyxw">