summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-comments.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-20 17:01:34 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-20 17:01:34 +0000
commit77369eead6050f5d47bc621e02b1c48173921c1a (patch)
tree725c4ace3e48fc340b49118ac88b1fcb13fa7599 /clang/test/Index/annotate-comments.cpp
parente6c562c0510ae16ad69fdbf2515ef451e23c4b0f (diff)
downloadbcm5719-llvm-77369eead6050f5d47bc621e02b1c48173921c1a.tar.gz
bcm5719-llvm-77369eead6050f5d47bc621e02b1c48173921c1a.zip
CommentBriefParser: use \returns if we can't find the \brief or just a plain
paragraph. llvm-svn: 160550
Diffstat (limited to 'clang/test/Index/annotate-comments.cpp')
-rw-r--r--clang/test/Index/annotate-comments.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Index/annotate-comments.cpp b/clang/test/Index/annotate-comments.cpp
index 406e743f878..afce06a1dab 100644
--- a/clang/test/Index/annotate-comments.cpp
+++ b/clang/test/Index/annotate-comments.cpp
@@ -213,6 +213,14 @@ void notdoxy47(void);
/// \returns ddd IS_DOXYGEN_END
void isdoxy48(int);
+/// \brief IS_DOXYGEN_START Aaa
+/// \returns bbb IS_DOXYGEN_END
+void isdoxy49(void);
+
+/// \param ccc IS_DOXYGEN_START
+/// \returns ddd IS_DOXYGEN_END
+void isdoxy50(int);
+
#endif
// RUN: rm -rf %t
@@ -279,4 +287,6 @@ void isdoxy48(int);
// CHECK: annotate-comments.cpp:195:6: FunctionDecl=isdoxy45:{{.*}} BriefComment=[Ddd eee. Fff.]
// CHECK: annotate-comments.cpp:205:6: FunctionDecl=isdoxy46:{{.*}} BriefComment=[Ddd eee. Fff.]
// CHECK: annotate-comments.cpp:214:6: FunctionDecl=isdoxy48:{{.*}} BriefComment=[IS_DOXYGEN_START Aaa bbb]
+// CHECK: annotate-comments.cpp:218:6: FunctionDecl=isdoxy49:{{.*}} BriefComment=[IS_DOXYGEN_START Aaa]
+// CHECK: annotate-comments.cpp:222:6: FunctionDecl=isdoxy50:{{.*}} BriefComment=[Returns ddd IS_DOXYGEN_END]
OpenPOWER on IntegriCloud