diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-06 00:57:28 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-06 00:57:28 +0000 |
commit | b42b6f2674384681eed21564f709a558daa9f800 (patch) | |
tree | 0243c9e06f2b83648e68c10a4eac79a74a7d6e01 /clang/test/Index/comment-cplus-template-decls.cpp | |
parent | bf7d3bab268b501d5187ef32e7c3aed8c5df3244 (diff) | |
download | bcm5719-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.cpp | 25 |
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 <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> |