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

    <tr>
        <th>Summary</th>
        <td>
            -fno-dollars-in-identifiers doesn't always disable dollars in identifiers
        </td>
    </tr>

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

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

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

<pre>
    Consider the following test case:
```
#define M(arg)

M($)
M(\u0024)
int $arg1 = 12;
int \u0024arg2 = 12;
```
https://godbolt.org/z/esc7vY8Wf

The dollar sign argument to a macro is also an identifier, so I would imagine all of these should be handled identically. Note, it seems that UCNs never allow you to form a dollar sign despite that being valid in C99 through C17, that may be a separate issue however.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcks2OozgQx5_GXEqJoEiacODQnVakPWyfdjWaY4HL4JGxI5dJlHn6kUlmOtMSAtX3j38VidjRM3dq_6b27wUtaQqxe6UY_Bs5N5Mv-qBv3TF4sZojpInBBOfC1foREkuCgYRV_arKd1W-qpfy8dxNrDUb6xn-VXigOCpsH5H1nb0Kd3-8q70_LmX55LQ-gcIdxbECVb9Dhap-ewo98imO-DX-BWdK6SyZFU8KT2PQfXBpGzLW6afCE8vQXL4fvplnxv8mBh2cowhZLaA4LjP7BCkAwUxDDGAFyEkA8mA1-2SN5ajwCBLgH7iGxWmwM41ZCXIOgslKCoNMa6xnmMhrx_pRP5Bzty18hMS5jU0gzLNAmijB_8cPAc8XjrlZuMItLJnGhDgD_QWrWc428b2u57y0CzmrwXo4ti2kKYZlnOBYNXnOmjbTLQMRCJ8pUmKwIgvDFK555rbQXa3buqWCu6qpqmZXVojF1LX7lo2hRqPpjSkPFR96U_Phpe_3hBoL22GJu7LGtmoRS9z2bVPve6ayHsgYMmpX8kzWbZ27zHkxxTq6OzRV-VI46tnJeqyInq93LoWYbzd2uWbTL6OoXemsJPnskmxy3G2MD5u7OrKxfvO5KgEdWLzCJgG5K90EtBXq3e_VSxbsKb9Youu-nJNN09JvhzArPOXJj8_mHMMPHpLC08orCk_r__wKAAD__4UBHFc">