aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-04-08 18:53:25 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-04-08 18:53:25 +0000
commitcac9ee0b129b8d8d4088ecf5068202886850aa2c (patch)
tree3ddadee076bb3c139d7f69961e8b130888a4a57e
parent6f96f4b2b2b24f187f6e8402a260de0c27dd37e9 (diff)
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
-rw-r--r--include/clang/AST/CommentCommands.td2
-rw-r--r--test/Index/comment-misc-tags.m14
2 files changed, 16 insertions, 0 deletions
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)