diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-09-16 17:26:23 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-09-16 17:26:23 +0000 |
| commit | 07ee5c44b47d34a068ce1e9f736510a2b07902fa (patch) | |
| tree | 684929abbc5d96ad66502c02563a25dab7e9d8c8 /clang/tools/libclang | |
| parent | c763c22469675b7aeaae108e2c66875d4a5bedf1 (diff) | |
| download | bcm5719-llvm-07ee5c44b47d34a068ce1e9f736510a2b07902fa.tar.gz bcm5719-llvm-07ee5c44b47d34a068ce1e9f736510a2b07902fa.zip | |
[libclang] Don't report a DecayedType as "unexposed", report it as the original (as written) type.
Patch by Anders Waldenborg!
llvm-svn: 190796
Diffstat (limited to 'clang/tools/libclang')
| -rw-r--r-- | clang/tools/libclang/CXType.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXType.cpp b/clang/tools/libclang/CXType.cpp index dcf69b5ba4b..a7d6386b027 100644 --- a/clang/tools/libclang/CXType.cpp +++ b/clang/tools/libclang/CXType.cpp @@ -110,6 +110,11 @@ CXType cxtype::MakeCXType(QualType T, CXTranslationUnit TU) { else if (Ctx.isObjCSelType(UnqualT)) TK = CXType_ObjCSel; } + + /* Handle decayed types as the original type */ + if (const DecayedType *DT = T->getAs<DecayedType>()) { + return MakeCXType(DT->getOriginalType(), TU); + } } if (TK == CXType_Invalid) TK = GetTypeKind(T); |

