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

    <tr>
        <th>Summary</th>
        <td>
            wcschr omits wchar_t from the errors
        </td>
    </tr>

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

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

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

<pre>
    ```c
#include <wchar.h>

void the_bug()
{
 (void)wcschr(123, 0);
    (void)wcsrchr(123, 0);
    (void)wcsstr(123, 0);
}
```
C only; the bug does not reproduce in C++, where wchar_t is a keyword. Only specifically wcschr is affected, not even wcsrchr which has identical prototype.

Expected:
```
<source>:5:18: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const wchar_t *' (aka 'const int *') [-Wint-conversion]
<source>:6:19: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const wchar_t *' (aka 'const int *') [-Wint-conversion]
<source>:7:18: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const wchar_t *' (aka 'const int *') [-Wint-conversion]
```
Actual:
```
<source>:5:18: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const int *' [-Wint-conversion]
<source>:6:19: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const wchar_t *' (aka 'const int *') [-Wint-conversion]
<source>:7:18: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const wchar_t *' (aka 'const int *') [-Wint-conversion]
```
https://godbolt.org/z/sdMhhv3d3
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzslc-v4yYQx_-a8WX0IgxxiA8-OHmbW9VjjysMY5suAQtw0vSvr_B7u9lue-hxn1QJ-dd8GeYzfGVUSnbyRB00J2heK7XmOcSud1rFUA3BPDo4sLehgfXAhfXarYYQxPmuZxV3M4hPJcT6W7AG80yfh3UCfgTelu_yBKxH4McSBt7eddJzBH6suQB-RlZ0YhMh_l0X_6sw5X_VgXwt168EwPozBu8eIE6lThzWCU2ghD5kjLTEYFZNaD2egZ-2ccb7TJFwY_2c0SZU-IUe9xDNDn_17oFpIW1Hq5VzD3yj22TjSDqTKTlKfrqRx3covM9WzzirhNaQz2UyLjHkkB8L7d7a-emP5S2B6H-gAHFOYY2aSutF34Do6yOIHinGEMuD9TpcF5Xt4ApPpoki5oBLKC8RdfA3iskGj0sxgZ8QuLQ-A5ebTkV1paIMI5aaSlgHn_K3TgDvixj4UX1Rz7D1X0PAW4Tm9PKb9fnluSA0r_9EOBSE9kMjyI-4C9-Zqtd5Ve4nM9uT438r_eQI31lmznlJxUn8AvwyBTMEl3chTsAvfwK_JPPLPN-EEZXphGlFqyrqatnUYn9o2bGaOzFK0UopTaMOUkjBDMmG16Zpm8EoISvbccYbJlnNmrphx50cRUOCWrGXBzkaBntGV2Xdzrnbtaxd2ZRW6ur9YS9Z5dRALm3nHuee7rhFgfNyDMauTHoZ1inBnjmbcnqmyTY76t7_8-Fqc_rWwTGG63awbNuWqjW67ode2Dyvw06HK_BLSfl-e1li-J10Bn7ZCknAL--V3jr-VwAAAP__Nmln-Q">