From 77369eead6050f5d47bc621e02b1c48173921c1a Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Fri, 20 Jul 2012 17:01:34 +0000 Subject: CommentBriefParser: use \returns if we can't find the \brief or just a plain paragraph. llvm-svn: 160550 --- clang/test/Index/annotate-comments.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'clang/test/Index/annotate-comments.cpp') 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] -- cgit v1.2.3