[cfe-commits] r161146 - /cfe/trunk/unittests/AST/CommentParser.cpp
Dmitri Gribenko
gribozavr at gmail.com
Wed Aug 1 16:49:33 PDT 2012
Author: gribozavr
Date: Wed Aug 1 18:49:32 2012
New Revision: 161146
URL: http://llvm.org/viewvc/llvm-project?rev=161146&view=rev
Log:
Comment parser tests: test that we allow placing no whitespace between \param
and [direction].
Modified:
cfe/trunk/unittests/AST/CommentParser.cpp
Modified: cfe/trunk/unittests/AST/CommentParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/CommentParser.cpp?rev=161146&r1=161145&r2=161146&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/CommentParser.cpp (original)
+++ cfe/trunk/unittests/AST/CommentParser.cpp Wed Aug 1 18:49:32 2012
@@ -760,6 +760,7 @@
TEST_F(CommentParserTest, ParamCommand3) {
const char *Sources[] = {
"// \\param [in] aaa Bbb\n",
+ "// \\param[in] aaa Bbb\n",
"// \\param\n"
"// [in] aaa Bbb\n",
"// \\param [in]\n"
@@ -789,6 +790,7 @@
TEST_F(CommentParserTest, ParamCommand4) {
const char *Sources[] = {
"// \\param [out] aaa Bbb\n",
+ "// \\param[out] aaa Bbb\n",
"// \\param\n"
"// [out] aaa Bbb\n",
"// \\param [out]\n"
@@ -818,6 +820,7 @@
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"
"// out] aaa Bbb\n",
More information about the cfe-commits
mailing list