diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-02 21:36:57 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-02 21:36:57 +0000 |
| commit | baeb60e919816d5e0ce8a1fbefa98f273bc8ae62 (patch) | |
| tree | 2ac1580d6ca4da0fee293050813e60743d9f2de0 /clang/test/Sema/warn-documentation.cpp | |
| parent | 9a2eec38268297d23acb5c811ea1defb3108f654 (diff) | |
| download | bcm5719-llvm-baeb60e919816d5e0ce8a1fbefa98f273bc8ae62.tar.gz bcm5719-llvm-baeb60e919816d5e0ce8a1fbefa98f273bc8ae62.zip | |
Comments: handle template paramter documentation in alias-declaration
templates.
llvm-svn: 161215
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
| -rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index b31e480db8c..44d24440f0d 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/test/Sema/warn-documentation.cpp @@ -250,6 +250,18 @@ void test_tparam11(); template<int I> void test_tparam12(); +template<typename T, typename U> +class test_tparam13 { }; + +/// \tparam T Aaa +template<typename T> +using test_tparam14 = test_tparam13<T, int>; + +// expected-warning@+1 {{template parameter 'U' not found in the template declaration}} expected-note@+1 {{did you mean 'T'?}} +/// \tparam U Aaa +template<typename T> +using test_tparam15 = test_tparam13<T, int>; + // expected-warning@+1 {{empty paragraph passed to '\brief' command}} int test1; ///< \brief\brief Aaa |

