]> granicus.if.org Git - clang/commit
Print nested name specifiers for typedefs and type aliases
authorAlex Lorenz <arphaman@gmail.com>
Fri, 10 Mar 2017 15:04:58 +0000 (15:04 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 10 Mar 2017 15:04:58 +0000 (15:04 +0000)
commita024a336fe8a86be1630ec37a10dfaaf3b04a32e
treedf304dcd99609b2c4bc7ee26693ad19797fe5936
parent1531e0774c5897389431d26270424039a2f7a789
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
21 files changed:
lib/AST/TypePrinter.cpp
test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp
test/CXX/drs/dr2xx.cpp
test/CXX/drs/dr5xx.cpp
test/Index/annotate-nested-name-specifier.cpp
test/Index/file-refs.cpp
test/Index/print-type.cpp
test/Index/recursive-cxx-member-calls.cpp
test/Layout/ms-x86-basic-layout.cpp
test/Misc/diag-template-diffing.cpp
test/Modules/odr_hash.cpp
test/SemaCXX/attr-noreturn.cpp
test/SemaCXX/calling-conv-compat.cpp
test/SemaCXX/cxx0x-initializer-aggregates.cpp
test/SemaCXX/cxx1y-contextual-conversion-tweaks.cpp
test/SemaCXX/enum-scoped.cpp
test/SemaCXX/nested-name-spec.cpp
test/SemaCXX/pseudo-destructors.cpp
test/SemaObjCXX/arc-templates.mm
test/SemaTemplate/member-access-ambig.cpp
test/SemaTemplate/typename-specifier.cpp