r179039 - doce parsing: adding few more headerdoc tags.

Fariborz Jahanian fjahanian at apple.com
Mon Apr 8 11:53:25 PDT 2013


Author: fjahanian
Date: Mon Apr  8 13:53:25 2013
New Revision: 179039

URL: http://llvm.org/viewvc/llvm-project?rev=179039&view=rev
Log:
doce parsing: adding few more headerdoc tags.
// rdar://12379114

Modified:
    cfe/trunk/include/clang/AST/CommentCommands.td
    cfe/trunk/test/Index/comment-misc-tags.m

Modified: cfe/trunk/include/clang/AST/CommentCommands.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/CommentCommands.td?rev=179039&r1=179038&r2=179039&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/CommentCommands.td (original)
+++ cfe/trunk/include/clang/AST/CommentCommands.td Mon Apr  8 13:53:25 2013
@@ -152,6 +152,7 @@ def InstanceSize  : RecordLikeDetailComm
 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{
 
 // HeaderDoc commands
 defm Textblock    : VerbatimBlockCommand<"textblock", "/textblock">;
+defm Link         : VerbatimBlockCommand<"link", "/link">;
 
 //===----------------------------------------------------------------------===//
 // VerbatimLineCommand

Modified: cfe/trunk/test/Index/comment-misc-tags.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/comment-misc-tags.m?rev=179039&r1=179038&r2=179039&view=diff
==============================================================================
--- cfe/trunk/test/Index/comment-misc-tags.m (original)
+++ cfe/trunk/test/Index/comment-misc-tags.m Mon Apr  8 13:53:25 2013
@@ -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
@@ -32,3 +35,14 @@
 // 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)





More information about the cfe-commits mailing list