aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/warn-documentation.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-24 21:46:24 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-24 21:46:24 +0000
commit56bf6fd5ea33e3c8c798d908483f3a6266c7a615 (patch)
tree1b2259ad434fea8094f63c035315506e21853e6c /test/Sema/warn-documentation.cpp
parent6582277bfc8bb587602e2c0689b6b2ff4b9bef53 (diff)
Comment diagnostics tests: add a function with zero arguments, for completeness.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r--test/Sema/warn-documentation.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp
index b59c6e4c5b..61c535eb57 100644
--- a/test/Sema/warn-documentation.cpp
+++ b/test/Sema/warn-documentation.cpp
@@ -144,17 +144,21 @@ int test_param9(int a);
/// \param [ junk] a Blah blah.
int test_param10(int a);
+// expected-warning@+1 {{parameter 'aab' not found in the function declaration}}
+/// \param a Blah blah.
+int test_param11();
+
// expected-warning@+1 {{parameter 'A' not found in the function declaration}} expected-note@+1 {{did you mean 'a'?}}
/// \param A Blah blah.
-int test_param11(int a);
+int test_param12(int a);
// expected-warning@+1 {{parameter 'aab' not found in the function declaration}} expected-note@+1 {{did you mean 'aaa'?}}
/// \param aab Blah blah.
-int test_param12(int aaa, int bbb);
+int test_param13(int aaa, int bbb);
// expected-warning@+1 {{parameter 'aab' not found in the function declaration}}
/// \param aab Blah blah.
-int test_param13(int bbb, int ccc);
+int test_param14(int bbb, int ccc);
class C {
// expected-warning@+1 {{parameter 'aaa' not found in the function declaration}}
@@ -163,21 +167,21 @@ class C {
// expected-warning@+1 {{parameter 'aaa' not found in the function declaration}}
/// \param aaa Blah blah.
- int test_param14(int bbb, int ccc);
+ int test_param15(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);
+int test_param16(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);
+int test_param17(int x1, int x2, int x3);
// expected-warning@+1 {{empty paragraph passed to '\brief' command}}
int test1; ///< \brief\brief Aaa