]> granicus.if.org Git - clang/commitdiff
more test of template declarations in a
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 6 Dec 2012 00:57:28 +0000 (00:57 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 6 Dec 2012 00:57:28 +0000 (00:57 +0000)
<declaration> XML tag. // rdar://12378714

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169457 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/comment-cplus-template-decls.cpp

index c942d18211ebae31dde0728491cae974ca27bbe5..d44ce8245f7f725498a87e1925cb4522aec96829 100644 (file)
@@ -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>