diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-01 23:49:32 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-01 23:49:32 +0000 |
commit | d076e013b1d9afa26d9bf2fdc8ba579941037f8e (patch) | |
tree | d94a1b9fca2211e0d8a337ebda915c705a4fabaa | |
parent | 6a425525e52aba5a8e14db35d50a712be4e5e2e1 (diff) |
Comment parser tests: test that we allow placing no whitespace between \param
and [direction].
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161146 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | unittests/AST/CommentParser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/AST/CommentParser.cpp b/unittests/AST/CommentParser.cpp index c6d809ff40..fddd520eaa 100644 --- a/unittests/AST/CommentParser.cpp +++ b/unittests/AST/CommentParser.cpp @@ -760,6 +760,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", "// \\param [in]\n" @@ -789,6 +790,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", "// \\param [out]\n" @@ -818,6 +820,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" "// out] aaa Bbb\n", |