Author: fjahanian
Date: Wed Dec  5 18:57:28 2012
New Revision: 169457

URL: http://llvm.org/viewvc/llvm-project?rev=169457&view=rev
Log:
more test of template declarations in a
<declaration> XML tag. // rdar://12378714

Modified:
    cfe/trunk/test/Index/comment-cplus-template-decls.cpp

Modified: cfe/trunk/test/Index/comment-cplus-template-decls.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/comment-cplus-template-decls.cpp?rev=169457&r1=169456&r2=169457&view=diff
==============================================================================
--- cfe/trunk/test/Index/comment-cplus-template-decls.cpp (original)
+++ cfe/trunk/test/Index/comment-cplus-template-decls.cpp Wed Dec  5 18:57:28 
2012
@@ -42,3 +42,28 @@
 };
 // 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>


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to