summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/comment-cplus-decls.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-04-11 16:46:03 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-04-11 16:46:03 +0000
commita981c7d79ef7d7d6ec1d61d391d3ed09fac8e822 (patch)
treefe438a7684f3099b81df30317f442422df5b43fd /clang/test/Index/comment-cplus-decls.cpp
parentc94f320bd8e05a87af2083b1d2532cc175e73425 (diff)
downloadbcm5719-llvm-a981c7d79ef7d7d6ec1d61d391d3ed09fac8e822.tar.gz
bcm5719-llvm-a981c7d79ef7d7d6ec1d61d391d3ed09fac8e822.zip
[ASTPrinter] Print nested name specifiers for out-of-line functions
rdar://31501863 llvm-svn: 299962
Diffstat (limited to 'clang/test/Index/comment-cplus-decls.cpp')
-rw-r--r--clang/test/Index/comment-cplus-decls.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Index/comment-cplus-decls.cpp b/clang/test/Index/comment-cplus-decls.cpp
index 463aa9e7929..6e32c60a222 100644
--- a/clang/test/Index/comment-cplus-decls.cpp
+++ b/clang/test/Index/comment-cplus-decls.cpp
@@ -102,7 +102,7 @@ namespace test0 {
friend void ns::f(int a);
};
}
-// CHECK: <Declaration>friend void f(int a)</Declaration>
+// CHECK: <Declaration>friend void ns::f(int a)</Declaration>
namespace test1 {
template <class T> struct Outer {
@@ -115,7 +115,7 @@ namespace test1 {
};
};
}
-// CHECK: <Declaration>friend void foo(T)</Declaration>
+// CHECK: <Declaration>friend void Outer&lt;T&gt;::foo(T)</Declaration>
namespace test2 {
namespace foo {
@@ -129,7 +129,7 @@ namespace test2 {
friend void ::test2::foo::Func(int x);
};
}
-// CHECK: <Declaration>friend void Func(int x)</Declaration>
+// CHECK: <Declaration>friend void ::test2::foo::Func(int x)</Declaration>
namespace test3 {
template<class T> class vector {
@@ -149,7 +149,7 @@ namespace test3 {
};
}
// CHECK: <Declaration>void f(const T &amp;t = T())</Declaration>
-// CHECK: <Declaration>friend void f(const test3::A &amp;)</Declaration>
+// CHECK: <Declaration>friend void vector&lt;A&gt;::f(const test3::A &amp;)</Declaration>
class MyClass
{
OpenPOWER on IntegriCloud