diff options
| author | Enrico Granata <egranata@apple.com> | 2013-01-10 02:37:22 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2013-01-10 02:37:22 +0000 |
| commit | c921e34c81e9d4be7a5292c57e77be1cd943097b (patch) | |
| tree | f1a35ea195997933d58b032657fdf8943206b29b /lldb | |
| parent | b4e2e93c618ae0c349881380ab3c76d4bd0a5ca9 (diff) | |
| download | bcm5719-llvm-c921e34c81e9d4be7a5292c57e77be1cd943097b.tar.gz bcm5719-llvm-c921e34c81e9d4be7a5292c57e77be1cd943097b.zip | |
<rdar://problem/11146929>
Enabling support for the wchar_t type.
Without the proper language option setup, clang's ASTContexts will be configured to have wchar_t == int
This patch enables the correct options to make sure that we report wchar_t as itself
Added a test case to make sure we do not regress
Adding files missing from the previous commit
llvm-svn: 172039
Diffstat (limited to 'lldb')
| -rw-r--r-- | lldb/source/Symbol/ClangASTContext.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Symbol/ClangASTType.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index 60be93fe934..ec25600b8ec 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -266,6 +266,8 @@ ParseLangArgs Opts.GNUInline = !Std.isC99(); Opts.HexFloats = Std.hasHexFloats(); Opts.ImplicitInt = Std.hasImplicitInt(); + + Opts.WChar = true; // OpenCL has some additional defaults. if (LangStd == LangStandard::lang_opencl) { diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp index 84ea29a7b91..aa56e2e200e 100644 --- a/lldb/source/Symbol/ClangASTType.cpp +++ b/lldb/source/Symbol/ClangASTType.cpp @@ -58,6 +58,7 @@ ClangASTType::GetTypeNameForQualType (clang::ASTContext *ast, clang::QualType qu clang::PrintingPolicy printing_policy (ast->getPrintingPolicy()); printing_policy.SuppressTagKeyword = true; + printing_policy.LangOpts.WChar = true; const clang::TypedefType *typedef_type = qual_type->getAs<clang::TypedefType>(); if (typedef_type) { |

