summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/parse-all-comments.c
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-04-26 20:12:49 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-04-26 20:12:49 +0000
commite9585628ae8cb26d623c779aeb63f7cf60a18082 (patch)
tree2415bb5f0a95a3ea4e16a452fe6847652ab3b55d /clang/test/Index/parse-all-comments.c
parent6e040c0be2064154f86250eafe2fafec2c192be0 (diff)
downloadbcm5719-llvm-e9585628ae8cb26d623c779aeb63f7cf60a18082.tar.gz
bcm5719-llvm-e9585628ae8cb26d623c779aeb63f7cf60a18082.zip
Comment parsing: -fparse-all-comments: recognize empty line comments
In -fparse-all-comments mode empty '//' comments were recognized as RCK_Invalid, and were not merged with next and previous lines. Patch by Amin Shali. llvm-svn: 180625
Diffstat (limited to 'clang/test/Index/parse-all-comments.c')
-rw-r--r--clang/test/Index/parse-all-comments.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Index/parse-all-comments.c b/clang/test/Index/parse-all-comments.c
index ac31f5b74e1..f8b0449f200 100644
--- a/clang/test/Index/parse-all-comments.c
+++ b/clang/test/Index/parse-all-comments.c
@@ -28,6 +28,11 @@ void isdoxy6(void);
/** But there are other blocks that are part of the comment, too. IS_DOXYGEN_END */
void multi_line_comment_plus_ordinary(int);
+// MULTILINE COMMENT
+//
+// WITH EMPTY LINE
+void multi_line_comment_empty_line(int);
+
#endif
// RUN: rm -rf %t
@@ -54,3 +59,4 @@ void multi_line_comment_plus_ordinary(int);
// CHECK: parse-all-comments.c:19:6: FunctionDecl=isdoxy5:{{.*}} isdoxy5 IS_DOXYGEN_SINGLE
// CHECK: parse-all-comments.c:22:6: FunctionDecl=isdoxy6:{{.*}} isdoxy6 IS_DOXYGEN_SINGLE
// CHECK: parse-all-comments.c:29:6: FunctionDecl=multi_line_comment_plus_ordinary:{{.*}} BLOCK_ORDINARY_COMMENT {{.*}} ORDINARY COMMENT {{.*}} IS_DOXYGEN_START {{.*}} IS_DOXYGEN_END
+// CHECK: parse-all-comments.c:34:6: FunctionDecl=multi_line_comment_empty_line:{{.*}} MULTILINE COMMENT{{.*}}\n{{.*}}\n{{.*}} WITH EMPTY LINE
OpenPOWER on IntegriCloud