summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/enum-scoped.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-03-10 15:04:58 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-03-10 15:04:58 +0000
commit76377dcf99ddf628cdcd45833c839596e29e17f2 (patch)
tree8c27bd4089c9e5ce532d95ae2e06c2571942e52d /clang/test/SemaCXX/enum-scoped.cpp
parent3cc57fa1e7a3a8e25322a5fbe061dea5a17c945b (diff)
downloadbcm5719-llvm-76377dcf99ddf628cdcd45833c839596e29e17f2.tar.gz
bcm5719-llvm-76377dcf99ddf628cdcd45833c839596e29e17f2.zip
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 llvm-svn: 297465
Diffstat (limited to 'clang/test/SemaCXX/enum-scoped.cpp')
-rw-r--r--clang/test/SemaCXX/enum-scoped.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/enum-scoped.cpp b/clang/test/SemaCXX/enum-scoped.cpp
index 142edd3893a..3114bca9347 100644
--- a/clang/test/SemaCXX/enum-scoped.cpp
+++ b/clang/test/SemaCXX/enum-scoped.cpp
@@ -307,5 +307,5 @@ namespace test11 {
typedef E E2;
E2 f1() { return E::a; }
- bool f() { return !f1(); } // expected-error {{invalid argument type 'E2' (aka 'test11::E') to unary expression}}
+ bool f() { return !f1(); } // expected-error {{invalid argument type 'test11::E2' (aka 'test11::E') to unary expression}}
}
OpenPOWER on IntegriCloud