2013-04-27 07:34:36 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
|
|
|
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s > %t/out
|
|
|
|
// RUN: FileCheck %s < %t/out
|
|
|
|
// rdar://13647476
|
|
|
|
|
|
|
|
//! NSObject is root of all.
|
|
|
|
@interface NSObject
|
|
|
|
@end
|
|
|
|
// CHECK: CommentAST=[
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ NSObject is root of all.])))]
|
|
|
|
|
|
|
|
//! An umbrella class for super classes.
|
2013-08-19 15:13:02 +08:00
|
|
|
@interface SuperClass
|
2013-04-27 07:34:36 +08:00
|
|
|
@end
|
|
|
|
// CHECK: CommentAST=[
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ An umbrella class for super classes.])))]
|
|
|
|
|
|
|
|
@interface SubClass : SuperClass
|
|
|
|
@end
|
|
|
|
// CHECK: CommentAST=[
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ An umbrella class for super classes.])))]
|
|
|
|
|
|
|
|
@interface SubSubClass : SubClass
|
|
|
|
@end
|
|
|
|
// CHECK: CommentAST=[
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ An umbrella class for super classes.])))]
|
|
|
|
|
|
|
|
@interface SubSubClass (Private)
|
|
|
|
@end
|
|
|
|
// CHECK: CommentAST=[
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ An umbrella class for super classes.])))]
|
|
|
|
|