diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-24 21:44:16 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-24 21:44:16 +0000 |
commit | 6582277bfc8bb587602e2c0689b6b2ff4b9bef53 (patch) | |
tree | bae823995050b02329a1542197d002c3b57c48bf /test/Sema/warn-documentation.cpp | |
parent | 56df4a9e0461d4dfb2a740cb6b0ce531d6c82538 (diff) |
Comment diagnostics: add warning for multiple \param commands with duplicate
parameter names.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r-- | test/Sema/warn-documentation.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp index 69e12b5097..b59c6e4c5b 100644 --- a/test/Sema/warn-documentation.cpp +++ b/test/Sema/warn-documentation.cpp @@ -166,6 +166,18 @@ class C { int test_param14(int bbb, int ccc); }; +// expected-warning@+3 {{parameter 'a' is already documented}} +// expected-note@+1 {{previous documentation}} +/// \param a Aaa. +/// \param a Aaa. +int test_param15(int a); + +// expected-warning@+4 {{parameter 'x2' is already documented}} +// expected-note@+2 {{previous documentation}} +/// \param x1 Aaa. +/// \param x2 Bbb. +/// \param x2 Ccc. +int test_param16(int x1, int x2, int x3); // expected-warning@+1 {{empty paragraph passed to '\brief' command}} int test1; ///< \brief\brief Aaa |