]> granicus.if.org Git - clang/commitdiff
doce parsing: adding few more headerdoc tags.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 8 Apr 2013 18:53:25 +0000 (18:53 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 8 Apr 2013 18:53:25 +0000 (18:53 +0000)
// rdar://12379114

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179039 91177308-0d34-0410-b5e6-96231b3b80d8

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

index e6ff2a4da2bae051c64ae22a9639e77b0c4237b7..02c6eeb46e6c8c28992eed5dd9e5b0613ffe69a3 100644 (file)
@@ -152,6 +152,7 @@ def InstanceSize  : RecordLikeDetailCommand<"instancesize">;
 def Ownership     : RecordLikeDetailCommand<"ownership">;
 def Performance   : RecordLikeDetailCommand<"performance">;
 def Security      : RecordLikeDetailCommand<"security">;
+def Seealso       : BlockCommand<"seealso">;
 def SuperClass    : RecordLikeDetailCommand<"superclass">;
 
 //===----------------------------------------------------------------------===//
@@ -177,6 +178,7 @@ defm FBrace   : VerbatimBlockCommand<"f{", "f}">; // LaTeX environment
 
 // HeaderDoc commands
 defm Textblock    : VerbatimBlockCommand<"textblock", "/textblock">;
+defm Link         : VerbatimBlockCommand<"link", "/link">;
 
 //===----------------------------------------------------------------------===//
 // VerbatimLineCommand
index 608a88730c66037981dfa3471747af8691d2ebcd..f1ca418b572df0e8a9511e8ec0e2a978efca3d03 100644 (file)
@@ -15,6 +15,9 @@
        Many1 discussions about text
        Many2 discussions about text
      @/textblock
+     @link //un_ref/c/func/function_name link text goes here @/link
+     @see  //un_ref/doc/uid/XX0000011 I/O Kit Fundamentals
+     @seealso //k_ref/doc/uid/XX30000905-CH204 Programming
  */
 @interface IOCommandGate
 @end
 // CHECK-NEXT:       (CXComment_VerbatimBlockLine Text=[       Many2 discussions about text]))
 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
 
+// CHECK:       (CXComment_VerbatimBlockCommand CommandName=[link]
+// CHECK-NEXT:     (CXComment_VerbatimBlockLine Text=[ //un_ref/c/func/function_name link text goes here ]))
+// CHECK-NEXT:     (CXComment_Paragraph IsWhitespace
+// CHECK-NEXT:     (CXComment_Text Text=[     ] IsWhitespace))
+// CHECK:       (CXComment_BlockCommand CommandName=[see]
+// CHECK-NEXT:     (CXComment_Paragraph
+// CHECK-NEXT:     (CXComment_Text Text=[  //un_ref/doc/uid/XX0000011 I/O Kit Fundamentals] HasTrailingNewline)
+// CHECK-NEXT:     (CXComment_Text Text=[     ] IsWhitespace)))
+// CHECK:       (CXComment_BlockCommand CommandName=[seealso]
+// CHECK-NEXT:     (CXComment_Paragraph
+// CHECK-NEXT:     (CXComment_Text Text=[ //k_ref/doc/uid/XX30000905-CH204 Programming] HasTrailingNewline)