diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-03-10 15:04:58 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-03-10 15:04:58 +0000 |
commit | a024a336fe8a86be1630ec37a10dfaaf3b04a32e (patch) | |
tree | df304dcd99609b2c4bc7ee26693ad19797fe5936 /test/Layout | |
parent | 1531e0774c5897389431d26270424039a2f7a789 (diff) | |
download | clang-a024a336fe8a86be1630ec37a10dfaaf3b04a32e.tar.gz |
Print nested name specifiers for typedefs and type aliases
Printing typedefs or type aliases using clang_getTypeSpelling() is missing the
namespace they are defined in. This is in contrast to other types that always
yield the full typename including namespaces.
Patch by Michael Reiher!
Differential Revision: https://reviews.llvm.org/D29944
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Layout')
-rw-r--r-- | test/Layout/ms-x86-basic-layout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Layout/ms-x86-basic-layout.cpp b/test/Layout/ms-x86-basic-layout.cpp index c39e6ce140..46752a730b 100644 --- a/test/Layout/ms-x86-basic-layout.cpp +++ b/test/Layout/ms-x86-basic-layout.cpp @@ -807,12 +807,12 @@ struct RecordArrayTypedef { // CHECK: *** Dumping AST Record Layout // CHECK-NEXT: 0 | struct RecordArrayTypedef -// CHECK-NEXT: 0 | ArrayTy [2] InlineElts +// CHECK-NEXT: 0 | RecordArrayTypedef::ArrayTy [2] InlineElts // CHECK-NEXT: | [sizeof=16, align=4 // CHECK-NEXT: | nvsize=16, nvalign=4] // CHECK-X64: *** Dumping AST Record Layout // CHECK-X64-NEXT: 0 | struct RecordArrayTypedef -// CHECK-X64-NEXT: 0 | ArrayTy [2] InlineElts +// CHECK-X64-NEXT: 0 | RecordArrayTypedef::ArrayTy [2] InlineElts // CHECK-X64-NEXT: | [sizeof=16, align=4 // CHECK-X64-NEXT: | nvsize=16, nvalign=4] |