From: Fariborz Jahanian Date: Mon, 8 Apr 2013 18:53:25 +0000 (+0000) Subject: doce parsing: adding few more headerdoc tags. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cac9ee0b129b8d8d4088ecf5068202886850aa2c;p=clang doce parsing: adding few more headerdoc tags. // rdar://12379114 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179039 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/CommentCommands.td b/include/clang/AST/CommentCommands.td index e6ff2a4da2..02c6eeb46e 100644 --- a/include/clang/AST/CommentCommands.td +++ b/include/clang/AST/CommentCommands.td @@ -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 diff --git a/test/Index/comment-misc-tags.m b/test/Index/comment-misc-tags.m index 608a88730c..f1ca418b57 100644 --- a/test/Index/comment-misc-tags.m +++ b/test/Index/comment-misc-tags.m @@ -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)