r176445 - warn-documentation.cpp: reorganize tests

Dmitri Gribenko gribozavr at gmail.com
Mon Mar 4 11:39:33 PST 2013


Author: gribozavr
Date: Mon Mar  4 13:39:33 2013
New Revision: 176445

URL: http://llvm.org/viewvc/llvm-project?rev=176445&view=rev
Log:
warn-documentation.cpp: reorganize tests

Tests are ordered by command in this file.  It is nice to keep it that way.

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=176445&r1=176444&r2=176445&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-documentation.cpp (original)
+++ cfe/trunk/test/Sema/warn-documentation.cpp Mon Mar  4 13:39:33 2013
@@ -303,6 +303,11 @@ typedef int (*test_param27)(int aaa);
 /// \param aaa Meow.
 typedef test_param27 test_param28;
 
+// rdar://13066276
+// expected-warning at +1 {{'@param' command used in a comment that is not attached to a function declaration}}
+/// @param aaa Meow.
+typedef unsigned int test_param29;
+
 
 // expected-warning at +1 {{'\tparam' command used in a comment that is not attached to a template declaration}}
 /// \tparam T Aaa
@@ -438,6 +443,14 @@ template<typename T>
 void test_deprecated_7(T aaa);
 
 
+// rdar://12397511
+// expected-note at +2 {{previous command '\headerfile' here}}
+// expected-warning at +2 {{duplicated command '\headerfile'}}
+/// \headerfile ""
+/// \headerfile foo.h
+int test__headerfile_1(int a);
+
+
 /// \invariant aaa
 void test_invariant_1(int a);
 
@@ -524,6 +537,11 @@ enum test_returns_wrong_decl_8 {
 /// \returns Aaa
 namespace test_returns_wrong_decl_10 { };
 
+// rdar://13066276
+// expected-warning at +1 {{'@returns' command used in a comment that is not attached to a function or method declaration}}
+/// @returns Aaa
+typedef unsigned int test_returns_wrong_decl_11;
+
 
 // expected-warning at +1 {{'\endverbatim' command does not terminate a verbatim text block}}
 /// \endverbatim
@@ -887,31 +905,3 @@ int test_nocrash12();
 ///@param x at param y
 int test_nocrash13(int x, int y);
 
-// rdar://12397511
-
-// expected-note at +2 {{previous command '\headerfile' here}}
-// expected-warning at +2 {{duplicated command '\headerfile'}}
-/// \headerfile "" 
-/// \headerfile foo.h 
-int test_duplicate_headerfile1(int);
-
-
-// rdar://13066276
-// expected-warning at +1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
-/** @return s */
-struct s* f(void);
-struct s;
-
-// expected-warning at +1 {{'\return' command used in a comment that is not attached to a function or method declaration}}
-/** \return s */
-struct q* g(void);
-struct q;
-
-// expected-warning at +3 {{'@param' command used in a comment that is not attached to a function declaration}}
-// expected-warning at +3 {{'@result' command used in a comment that is not attached to a function or method declaration}}
-/*!	@function Base64EncodeEx
-	@param	inFlags  This is error flag
-	@result	Error
-*/
-typedef unsigned int Base64Flags;
-unsigned Base64EncodeEx(Base64Flags	inFlags);





More information about the cfe-commits mailing list