summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/comment-cplus-template-decls.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-12-06 00:57:28 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-12-06 00:57:28 +0000
commitb42b6f2674384681eed21564f709a558daa9f800 (patch)
tree0243c9e06f2b83648e68c10a4eac79a74a7d6e01 /clang/test/Index/comment-cplus-template-decls.cpp
parentbf7d3bab268b501d5187ef32e7c3aed8c5df3244 (diff)
downloadbcm5719-llvm-b42b6f2674384681eed21564f709a558daa9f800.tar.gz
bcm5719-llvm-b42b6f2674384681eed21564f709a558daa9f800.zip
more test of template declarations in a
<declaration> XML tag. // rdar://12378714 llvm-svn: 169457
Diffstat (limited to 'clang/test/Index/comment-cplus-template-decls.cpp')
-rw-r--r--clang/test/Index/comment-cplus-template-decls.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/clang/test/Index/comment-cplus-template-decls.cpp b/clang/test/Index/comment-cplus-template-decls.cpp
index c942d18211e..d44ce8245f7 100644
--- a/clang/test/Index/comment-cplus-template-decls.cpp
+++ b/clang/test/Index/comment-cplus-template-decls.cpp
@@ -42,3 +42,28 @@ template <typename T> struct D : A<T> {
};
// CHECK: <Declaration>template &lt;typename T&gt; struct D : A&lt;T&gt; {\n}</Declaration>
// CHECK: <Declaration>using A&lt;T&gt;::f</Declaration>
+
+struct Base {
+ int foo;
+};
+/**
+ * \brief
+*/
+template<typename T> struct E : Base {
+/**
+ * \brief
+*/
+ using Base::foo;
+};
+// CHECK: <Declaration>template &lt;typename T&gt; struct E : Base {\n}</Declaration>
+// CHECK: <Declaration>using Base::foo</Declaration>
+
+/// \tparam
+/// \param AAA Blah blah
+template<typename T>
+void func_template_1(T AAA);
+// CHECK: <Declaration>template &lt;typename T&gt; void func_template_1(T AAA)</Declaration>
+
+template<template<template<typename CCC> class DDD, class BBB> class AAA>
+void func_template_2();
+<Declaration>template &lt;template &lt;template &lt;typename CCC&gt; class DDD, class BBB&gt; class AAA&gt; void func_template_2()</Declaration>
OpenPOWER on IntegriCloud