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

    <tr>
        <th>Summary</th>
        <td>
            clang-format breaks hlsl syntax for infinity (+1.#INF)
        </td>
    </tr>

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

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

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

<pre>
    When using clang format on 
```cpp
float x = y * +1.#INF;
```

clang-format will separate it to

```cpp
float x = y * +1. #INF;
```

This is invalid HLSL code and won't allow it to be compiled.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMkU-L2zAQxT_N-DLESCP_SQ46JCymhaWXFnqWLNlWq0jGkpPNty9OAk0vZWFAOsy8x3s_lZIbg7US6hPUb4Va8xQX2fs0xSUPa7KFjuYmf0424JpcGLH3Kow4xOWsMsaAwI7QsMf08wzsOPioMn4giDe8IdARgU68BBJfv3UgTq8X258d75q7p-bVeY_JzmpR2aLLmONj63M2-B-fH5NLuE24KO8Mfnn__o59NBZVMHiNAajNqLyP14cxaot9PM_OW1MWRgpzEAdVWMnbirdsX1VNMUlmDryva6WHZtBDQ6ytBjNQxRplja7bwkliVDPBOa_rijVl3XClBe0bvm-ZFhoqZs_K-dL7y7mMy1i4lFYruWDtvi280tanOySi17KAaMO2yO1up9cxQcW8Szn9Vcoueyv_qVgvVv1OOPnkMd1CVh8bUHRhcMHlrcz9KzI6FOvi5ZTznEAcgTqgbnR5WnXZxzNQt5k9n928xF-2z0DdPUMC6p4xLpL-BAAA___Vyb4T">