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 | 0d81e019169b544459992638047110cc630c36e4 (patch) | |
tree | fc08954959bf45061e1451e7219dd6584a0a7531 /clang/tools/clang-format/ClangFormat.cpp | |
parent | a6645e8b8f9c4805c3808e55fa17575c0360baaf (diff) | |
download | bcm5719-llvm-0d81e019169b544459992638047110cc630c36e4.tar.gz bcm5719-llvm-0d81e019169b544459992638047110cc630c36e4.zip |
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.
llvm-svn: 181587
Diffstat (limited to 'clang/tools/clang-format/ClangFormat.cpp')
0 files changed, 0 insertions, 0 deletions