diff options
| author | Hans Wennborg <hans@hanshq.net> | 2013-05-10 10:08:40 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2013-05-10 10:08:40 +0000 |
| commit | 15f92bad58c8650b1306729744b1a1230197497a (patch) | |
| tree | 5cc22ac3531caff665c992d70e0bd268649218bb /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 6ea933c7e8f6988d5647af4a0eafd393a4c3685a (diff) | |
| download | clang-15f92bad58c8650b1306729744b1a1230197497a.tar.gz clang-15f92bad58c8650b1306729744b1a1230197497a.tar.bz2 clang-15f92bad58c8650b1306729744b1a1230197497a.tar.xz | |
Add support for __wchar_t in -fms-extensions mode.
MSVC provides __wchar_t. This is the same as the built-in wchar_t type
from C++, but it is also available with -fno-wchar and in C.
The commit changes ASTContext to have two different types for this:
- WCharTy is the built-in type used for wchar_t in C++ and __wchar_t.
- WideCharTy is the type of a wide character literal. In C++ this is
the same as WCharTy, and in C it is an integer type compatible with
the type in <stddef.h>.
This fixes PR15815.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
