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

    <tr>
        <th>Summary</th>
        <td>
            clang preprocessor with `--comments` converts CRLF to CRCRLF within multiline comments
        </td>
    </tr>

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

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

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

<pre>
    ```console
> clang --version
clang version 16.0.3
Target: x86_64-pc-windows-msvc
```

Save the following as `test.c` with CRLF line endings:
```c
/*

*/
test
```

Run
```
clang -E -P -xc --comments test.c > test.pre.c
```
(note: the -P is not necessary to reproduce the problem)

The result in `test.pre.c` will be:
```
/*<CR><CR><LF>
<CR><CR><LF>
*/<CR><LF>
test<CR><LF>
```

The expected result is:

```
/*<CR><LF>
<CR><LF>
*/<CR><LF>
test<CR><LF>
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU09zmz4Q_TTisgMjS0aBAwf_nHDKIeNf7h0Qa1ArJCoJO_n2HYGTuK2b6aEzHuvPot333r5tvFe9QaxI_h_J75NmDoN1lf8-I37LKUta271WRND1J63xViOh94TuCH8AqRvTQ5qe0HllzRpYLy9XsBEZzfgaeW5cj4HwHbwU4ovYppNMz8p09uzT0Z_kJfFbuctx-f-_OSGEAeFotbZnZXpoPBBBA_qQSSIonFUYYH94rEErg4CmU6b3hO9-SftWhtWE7a5rxCOr131M-wmcw2xuRi-CPED6BOmLhDSVdhzRBA8rUIiyLdvJYfYHxqwwNmDUKTJOn0B5MDaAQYneN-4VggWHk7PdLFdZJmdbjSNh5TXM5wHBoZ91AGXe1VorL4ppDS3-LtFPCvH9_kD4w9X6WMf14oJPo6uiN2OLwrdf3VI8UsGXCWXA7p3TVXf_isBt4P8OcNJVvCt52SRYbUTB80IIJpKhamVRsk3XbIqNkEzebYruyHm3ZQ0Vx6I7JqpilHGa04Kx_I6KrOSc3slS5B3PS14WZEtxbJTOtD6NmXV9oryfsRJMbLaJblrUfhljxgyeYQkSxuJUuyq-Sdu592RLtfLBf2QJKmisVt9Oi6eix6xbx4kI-mHhaBlpzQld8OugBQv7w7KLXysD46yDWsbv7VEyO10NIUxLr2JD6l6FYW4zaUfC6gjksqSTs19RBsLqBb4nrF7o_QgAAP__mjNMQA">