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

    <tr>
        <th>Summary</th>
        <td>
            [preprocessor] "error: invalid token in macro parameter list" with `-CC`
        </td>
    </tr>

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

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

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

<pre>
    ```c
#1 "bad.c"
#define MACRO_W_COMMENT(/**/x) (x)

int main() { return MACRO_W_COMMENT(0); }
```

The above source generates the preprocessor output with `-E` just fine, but when I ask the preprocessor to preserve comments in macros with `-CC`, it fails with:
```shell
$ clang-15 -E -CC bad.c
bad.c:1:25: error: invalid token in macro parameter list
#define MACRO_W_COMMENT(/**/x) (x)
                        ^
1 error generated.
```

I would expect the comment not to affect the generation of the preprocessed output and generate something like:
```c
# 1 "/app/example.cpp"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 417 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "/app/example.cpp" 2
# 1 "bad.c"

int main() { return (0); }
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVMFu4zgM_Rr6QiSw6dhxDj6kTgLMoTvAYIA9DmSZiTWVJUOS2-7fL-Qk7SCZbXexgRBJJvVEPvJJeK9OhrmG4gGKXSKm0FtXS-G8Nd9EF544aW33Vw1leh4S0h2kW6A8QyBqRbeUQPT2teOjMoyP2-bb1x9__mi-Pj7u__gOVAEdgLbzOLwCbRCoivPl5PyvTMBBKDO7bxDWD-g4TM78Bi-NZ_MHhPXuAnEN8VfE7z2jaO0zo7eTk4wnNuxEYI-hZxwdj85K9t46tFMYp4AvKvQIZbrYQ5niz8kHjCkBNdhGc88Gv6DwT_cIwca9Z_fMKO0wsAkelcFBSGf9O3LTxDCpQRXwKJQ-myDf3mTie9b6Su0KpRbmtMgKXOxx0TR4Jn82n5f5NoN8SwXkW2TnrIsLZZ6FVh0G-8TmLRochRMDB3aolQ__t374Dz8o9meH7BzQG__d8oOqfcEXO-kO-XVkGWaeL3SisSHSLI7Hq-WCqKxBe7ypCXfXqgrTvd2N3g4cemVOqNUT3_P-3uQ4dznQQYwj0IFfxTBqXsq4o1uvvGknpcNCGcj3QITZpx75u8cqW3_qc0WJbMSMdGzMf3vXXby_z-rO70bjnyj1Q2kmXZ13m3wjEq6zcl1usk1elUlfF7LKN7zqylZy1pYkOj6SEJwW61xKWieqppTylCjNqqKkcplxllbHbpVWneQjt7BKeRBKL7V-HpbWnRLl_cR1mVbVOtGiZe3nZ47I8AvOxphUsUtcHc8s2unkYZVGOfh3lKCCnt_HX5UOxS4y8x81RnTzBCST03UfwuhjD0aBHU4q9FO7lHYAOsQgLtNidPYnywB0mEP3QIc5tb8DAAD__9bwqZo">