Comment parser tests: test that we allow placing no whitespace between \param

and [direction].

llvm-svn: 161146
This commit is contained in:
Dmitri Gribenko 2012-08-01 23:49:32 +00:00
parent 58e4131995
commit 6087ba7dc8
1 changed files with 3 additions and 0 deletions

View File

@ -759,6 +759,7 @@ TEST_F(CommentParserTest, ParamCommand2) {
TEST_F(CommentParserTest, ParamCommand3) {
const char *Sources[] = {
"// \\param [in] aaa Bbb\n",
"// \\param[in] aaa Bbb\n",
"// \\param\n"
"// [in] aaa Bbb\n",
@ -788,6 +789,7 @@ TEST_F(CommentParserTest, ParamCommand3) {
TEST_F(CommentParserTest, ParamCommand4) {
const char *Sources[] = {
"// \\param [out] aaa Bbb\n",
"// \\param[out] aaa Bbb\n",
"// \\param\n"
"// [out] aaa Bbb\n",
@ -817,6 +819,7 @@ TEST_F(CommentParserTest, ParamCommand4) {
TEST_F(CommentParserTest, ParamCommand5) {
const char *Sources[] = {
"// \\param [in,out] aaa Bbb\n",
"// \\param[in,out] aaa Bbb\n",
"// \\param [in, out] aaa Bbb\n",
"// \\param [in,\n"