diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-16 18:19:43 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-16 18:19:43 +0000 |
| commit | 4ae66a31fe668a3367b4a607e696c9d4f18795c5 (patch) | |
| tree | 65c297be385aeecaa5e613c1d5b67dfc05c59e39 /clang/test/Sema/warn-documentation.cpp | |
| parent | 1faf5b07c68a35596a041b2c68ace742dd850b62 (diff) | |
| download | bcm5719-llvm-4ae66a31fe668a3367b4a607e696c9d4f18795c5.tar.gz bcm5719-llvm-4ae66a31fe668a3367b4a607e696c9d4f18795c5.zip | |
Attaching comments to declarations: parse the comment in context of the
declaration it was attached to.
llvm-svn: 162033
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
| -rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index a361d57baa7..d99520b6733 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/test/Sema/warn-documentation.cpp @@ -641,6 +641,22 @@ void test_attach37<int>::test_attach38(int aaa, int bbb) {} template<typename T> void test_attach37<T>::test_attach39(int aaa, int bbb) {} +// We used to emit warning that parameter 'a' is not found because we parsed +// the comment in context of the redeclaration which does not have parameter +// names. +template <typename T> +struct test_attach38 { + /*! + \param a First param + \param b Second param + */ + template <typename B> + void test_attach39(T a, B b); +}; + +template <> +template <typename B> +void test_attach38<int>::test_attach39(int, B); // PR13411, reduced. We used to crash on this. |

