[cfe-commits] r169457 - /cfe/trunk/test/Index/comment-cplus-template-decls.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Dec 5 16:57:29 PST 2012


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 <typename T> struct D :  A<T> {\n}</Declaration>
 // CHECK: <Declaration>using A<T>::f</Declaration>
+
+struct Base {
+    int foo;
+};
+/**
+ * \brief
+*/
+template<typename T> struct E : Base {
+/**
+ * \brief
+*/
+  using Base::foo;
+};
+// CHECK: <Declaration>template <typename T> 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 <typename T> void func_template_1(T AAA)</Declaration>
+
+template<template<template<typename CCC> class DDD, class BBB> class AAA>
+void func_template_2();
+<Declaration>template <template <template <typename CCC> class DDD, class BBB> class AAA> void func_template_2()</Declaration>





More information about the cfe-commits mailing list