aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/warn-documentation.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-03-04 19:39:33 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-03-04 19:39:33 +0000
commit151b2ac8c84fe751871dcdb041efec655fab70eb (patch)
treee044e8fda9420b5722ab52c738e0417ee2ef559c /test/Sema/warn-documentation.cpp
parent66f6c24146efccc9ad7e37dbd2bd0ea1844e6422 (diff)
warn-documentation.cpp: reorganize tests
Tests are ordered by command in this file. It is nice to keep it that way. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r--test/Sema/warn-documentation.cpp46
1 files changed, 18 insertions, 28 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp
index f9eb458ce8..220f84508f 100644
--- a/test/Sema/warn-documentation.cpp
+++ b/test/Sema/warn-documentation.cpp
@@ -303,6 +303,11 @@ typedef int (*test_param27)(int aaa);
/// \param aaa Meow.
typedef test_param27 test_param28;
+// rdar://13066276
+// expected-warning@+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@+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@+2 {{previous command '\headerfile' here}}
+// expected-warning@+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@+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@+1 {{'\endverbatim' command does not terminate a verbatim text block}}
/// \endverbatim
@@ -887,31 +905,3 @@ int test_nocrash12();
///@param x@param y
int test_nocrash13(int x, int y);
-// rdar://12397511
-
-// expected-note@+2 {{previous command '\headerfile' here}}
-// expected-warning@+2 {{duplicated command '\headerfile'}}
-/// \headerfile ""
-/// \headerfile foo.h
-int test_duplicate_headerfile1(int);
-
-
-// rdar://13066276
-// expected-warning@+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@+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@+3 {{'@param' command used in a comment that is not attached to a function declaration}}
-// expected-warning@+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);