annotate clang/test/Index/index-suppress-refs.m @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1
anatofuz
parents:
diff changeset
2 #include "index-suppress-refs.h"
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 #define TYPEDEF(x) typedef int x
anatofuz
parents:
diff changeset
5 TYPEDEF(MyInt);
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 MyInt gx;
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 @class I;
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 @interface I(cat)
anatofuz
parents:
diff changeset
12 -(I*)meth;
anatofuz
parents:
diff changeset
13 @end
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 @class I;
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 @interface S : B<P>
anatofuz
parents:
diff changeset
18 -(void)meth:(B*)b :(id<P>)p;
anatofuz
parents:
diff changeset
19 @end
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // RUN: env CINDEXTEST_SUPPRESSREFS=1 c-index-test -index-file %s | FileCheck %s
anatofuz
parents:
diff changeset
22 // CHECK: [indexDeclaration]: kind: objc-class | name: I
anatofuz
parents:
diff changeset
23 // CHECK-NEXT: <ObjCContainerInfo>: kind: interface
anatofuz
parents:
diff changeset
24 // CHECK-NEXT: [indexDeclaration]: kind: objc-class | name: B
anatofuz
parents:
diff changeset
25 // CHECK-NEXT: <ObjCContainerInfo>: kind: interface
anatofuz
parents:
diff changeset
26 // CHECK-NEXT: [indexDeclaration]: kind: objc-protocol | name: P
anatofuz
parents:
diff changeset
27 // CHECK-NEXT: <ObjCContainerInfo>: kind: interface
anatofuz
parents:
diff changeset
28 // CHECK-NEXT: [indexDeclaration]: kind: typedef | name: MyInt
anatofuz
parents:
diff changeset
29 // CHECK-NEXT: [indexDeclaration]: kind: variable | name: gx
anatofuz
parents:
diff changeset
30 // CHECK-NEXT: [indexDeclaration]: kind: objc-class | name: I
anatofuz
parents:
diff changeset
31 // CHECK-NEXT: <ObjCContainerInfo>: kind: forward-ref
anatofuz
parents:
diff changeset
32 // CHECK-NEXT: [indexDeclaration]: kind: objc-category | name: cat
anatofuz
parents:
diff changeset
33 // CHECK-NEXT: <ObjCContainerInfo>: kind: interface
anatofuz
parents:
diff changeset
34 // CHECK-NEXT: <ObjCCategoryInfo>: class: kind: objc-class | name: I
anatofuz
parents:
diff changeset
35 // CHECK-NEXT: [indexDeclaration]: kind: objc-instance-method | name: meth
anatofuz
parents:
diff changeset
36 // CHECK-NOT: [indexEntityReference]: kind: objc-class | name: I
anatofuz
parents:
diff changeset
37 // CHECK-NOT: [indexDeclaration]: kind: objc-class | name: I
anatofuz
parents:
diff changeset
38 // CHECK-NEXT: [indexDeclaration]: kind: objc-class | name: S
anatofuz
parents:
diff changeset
39 // CHECK-NEXT: <ObjCContainerInfo>: kind: interface
anatofuz
parents:
diff changeset
40 // CHECK-NEXT: <base>: kind: objc-class | name: B
anatofuz
parents:
diff changeset
41 // CHECK-NEXT: <protocol>: kind: objc-protocol | name: P
anatofuz
parents:
diff changeset
42 // CHECK-NEXT: [indexDeclaration]: kind: objc-instance-method | name: meth::
anatofuz
parents:
diff changeset
43 // CHECK-NOT: [indexEntityReference]: kind: objc-class | name: B
anatofuz
parents:
diff changeset
44 // CHECK-NOT: [indexEntityReference]: kind: objc-protocol | name: P