]> granicus.if.org Git - clang/commitdiff
Adds a new doxygen tag needed. // rdar://12379053
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 18 Apr 2013 16:45:57 +0000 (16:45 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 18 Apr 2013 16:45:57 +0000 (16:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179770 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/CommentCommands.td
test/Index/comment-misc-tags.m

index 2ba6f2fb87526da661608ed239e5ac3a539c40ca..8c88494e9ae4ae89668a9d999b03427c2477f674 100644 (file)
@@ -129,6 +129,7 @@ def Date       : BlockCommand<"date">;
 def Invariant  : BlockCommand<"invariant">;
 def Li         : BlockCommand<"li">;
 def Note       : BlockCommand<"note">;
+def Par        : BlockCommand<"par">;
 def Post       : BlockCommand<"post">;
 def Pre        : BlockCommand<"pre">;
 def Remark     : BlockCommand<"remark">;
index 426102d374a09ba2115f1e0fce7cb68150c9d81d..9eae5489fc06905098fcc81d8506e6b6ea37689d 100644 (file)
@@ -71,3 +71,40 @@ struct S {
 // CHECK-NEXT:    (CXComment_Text Text=[ right alignment.])))
 // CHECK:       (CXComment_Paragraph
 // CHECK-NEXT:    (CXComment_Text Text=[  No other types of alignment are supported.]))
+
+// rdar://12379053
+/*! \struct Test
+ * Normal text.
+ *
+ * \par User defined paragraph:
+ * Contents of the paragraph.
+ *
+ * \par
+ * New paragraph under the same heading.
+ *
+ * \note
+ * This note consists of two paragraphs.
+ * This is the first paragraph.
+ *
+ * \par
+ * And this is the second paragraph.
+ *
+ * More normal text.
+ */
+  
+struct Test {int filler;};
+
+// CHECK:       (CXComment_BlockCommand CommandName=[par]
+// CHECK-NEXT:     (CXComment_Paragraph
+// CHECK-NEXT:        (CXComment_Text Text=[ User defined paragraph:] HasTrailingNewline)
+// CHECK-NEXT:        (CXComment_Text Text=[ Contents of the paragraph.])))
+// CHECK:       (CXComment_BlockCommand CommandName=[par]
+// CHECK-NEXT:     (CXComment_Paragraph
+// CHECK-NEXT:        (CXComment_Text Text=[ New paragraph under the same heading.])))
+// CHECK:       (CXComment_BlockCommand CommandName=[note]
+// CHECK-NEXT:     (CXComment_Paragraph
+// CHECK-NEXT:        (CXComment_Text Text=[ This note consists of two paragraphs.] HasTrailingNewline)
+// CHECK-NEXT:        (CXComment_Text Text=[ This is the first paragraph.])))
+// CHECK:       (CXComment_BlockCommand CommandName=[par]
+// CHECK-NEXT:     (CXComment_Paragraph
+// CHECK-NEXT:     (CXComment_Text Text=[ And this is the second paragraph.])))