diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-27 21:18:39 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-27 21:18:39 +0000 |
commit | d1e5c0df2acb01192eedda14534fe990e1e26c46 (patch) | |
tree | e86566d730aa6804d7e4257dfbefb14e5538727a /test/Sema/warn-documentation.cpp | |
parent | bfec916e5fc40f22ac11267e78a024cd8dcf3bbf (diff) |
Comment parsing: attach any tag type's documentation to its typedef if latter
does not have one of its own. // rdar://13067629
Original patch (r173586 and r173587) by Fariborz Jahanian, modified by me.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r-- | test/Sema/warn-documentation.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp index 6a6b8dd599..9845f58780 100644 --- a/test/Sema/warn-documentation.cpp +++ b/test/Sema/warn-documentation.cpp @@ -377,6 +377,29 @@ using test_tparam14 = test_tparam13<T, int>; template<typename T> using test_tparam15 = test_tparam13<T, int>; +// ---- + +/// \tparam T Aaa +template<typename T> +class test_tparam16 { }; + +typedef test_tparam16<int> test_tparam17; +typedef test_tparam16<double> test_tparam18; + +// ---- + +template<typename T> +class test_tparam19; + +typedef test_tparam19<int> test_tparam20; +typedef test_tparam19<double> test_tparam21; + +/// \tparam T Aaa +template<typename T> +class test_tparam19 { }; + +// ---- + /// Aaa /// \deprecated Bbb |