[cfe-commits] r160697 - /cfe/trunk/test/Sema/warn-documentation.cpp
Dmitri Gribenko
gribozavr at gmail.com
Tue Jul 24 14:46:25 PDT 2012
Author: gribozavr
Date: Tue Jul 24 16:46:24 2012
New Revision: 160697
URL: http://llvm.org/viewvc/llvm-project?rev=160697&view=rev
Log:
Comment diagnostics tests: add a function with zero arguments, for completeness.
Modified:
cfe/trunk/test/Sema/warn-documentation.cpp
Modified: cfe/trunk/test/Sema/warn-documentation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-documentation.cpp?rev=160697&r1=160696&r2=160697&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-documentation.cpp (original)
+++ cfe/trunk/test/Sema/warn-documentation.cpp Tue Jul 24 16:46:24 2012
@@ -144,17 +144,21 @@
/// \param [ junk] a Blah blah.
int test_param10(int a);
+// expected-warning at +1 {{parameter 'aab' not found in the function declaration}}
+/// \param a Blah blah.
+int test_param11();
+
// expected-warning at +1 {{parameter 'A' not found in the function declaration}} expected-note at +1 {{did you mean 'a'?}}
/// \param A Blah blah.
-int test_param11(int a);
+int test_param12(int a);
// expected-warning at +1 {{parameter 'aab' not found in the function declaration}} expected-note at +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 at +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 at +1 {{parameter 'aaa' not found in the function declaration}}
@@ -163,21 +167,21 @@
// expected-warning at +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 at +3 {{parameter 'a' is already documented}}
// expected-note at +1 {{previous documentation}}
/// \param a Aaa.
/// \param a Aaa.
-int test_param15(int a);
+int test_param16(int a);
// expected-warning at +4 {{parameter 'x2' is already documented}}
// expected-note at +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 at +1 {{empty paragraph passed to '\brief' command}}
int test1; ///< \brief\brief Aaa
More information about the cfe-commits
mailing list