seanm wrote:

Should this warn about `wchar_t` in C?

```c
#include <wchar.h>

int main (void)
{
  wchar_t foo;
  (void)foo;
  return 0;
}
```

```
% xcrun /Users/builder/llvm/llvm-install/bin/clang -fsyntax-only -Weverything 
~/Desktop/test.c

/Users/builder/Desktop/test.c:5:3: warning: identifier 'wchar_t' conflicts with 
a C++ keyword [-Wc++-keyword]
    5 |   wchar_t foo;
      |   ^
```


https://github.com/llvm/llvm-project/pull/137234
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to