From b42b6f2674384681eed21564f709a558daa9f800 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 6 Dec 2012 00:57:28 +0000 Subject: [PATCH] more test of template declarations in a XML tag. // rdar://12378714 llvm-svn: 169457 --- .../Index/comment-cplus-template-decls.cpp | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/clang/test/Index/comment-cplus-template-decls.cpp b/clang/test/Index/comment-cplus-template-decls.cpp index c942d18211eb..d44ce8245f7f 100644 --- a/clang/test/Index/comment-cplus-template-decls.cpp +++ b/clang/test/Index/comment-cplus-template-decls.cpp @@ -42,3 +42,28 @@ template struct D : A { }; // CHECK: template <typename T> struct D : A<T> {\n} // CHECK: using A<T>::f + +struct Base { + int foo; +}; +/** + * \brief +*/ +template struct E : Base { +/** + * \brief +*/ + using Base::foo; +}; +// CHECK: template <typename T> struct E : Base {\n} +// CHECK: using Base::foo + +/// \tparam +/// \param AAA Blah blah +template +void func_template_1(T AAA); +// CHECK: template <typename T> void func_template_1(T AAA) + +template class DDD, class BBB> class AAA> +void func_template_2(); +template <template <template <typename CCC> class DDD, class BBB> class AAA> void func_template_2()