annotate clang/test/Index/pch-with-errors.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 #ifndef HEADER
anatofuz
parents:
diff changeset
2 #define HEADER
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 @interface I(cat)
anatofuz
parents:
diff changeset
5 -(void)meth;
anatofuz
parents:
diff changeset
6 @end
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 @interface I2
anatofuz
parents:
diff changeset
9 -(void)meth;
anatofuz
parents:
diff changeset
10 @end
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 struct FFF1
anatofuz
parents:
diff changeset
13 extern I2 *somevar1;
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 enum FFF2
anatofuz
parents:
diff changeset
16 extern I2 *somevar2;
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 #else
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 void foo(I2 *i) {
anatofuz
parents:
diff changeset
21 [i meth];
anatofuz
parents:
diff changeset
22 }
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 #endif
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 // RUN: c-index-test -write-pch %t.h.pch %s -Xclang -detailed-preprocessing-record
anatofuz
parents:
diff changeset
27 // RUN: c-index-test -test-load-source local %s -include %t.h -Xclang -detailed-preprocessing-record | FileCheck -check-prefix=CHECK-PARSE %s
anatofuz
parents:
diff changeset
28 // RUN: c-index-test -index-file %s -include %t.h -Xclang -detailed-preprocessing-record | FileCheck -check-prefix=CHECK-INDEX %s
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 // CHECK-PARSE: pch-with-errors.m:{{.*}} FunctionDecl=foo
anatofuz
parents:
diff changeset
31 // CHECK-PARSE: pch-with-errors.m:{{.*}} ObjCMessageExpr=meth
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 // CHECK-INDEX: [indexDeclaration]: kind: function | name: foo
anatofuz
parents:
diff changeset
34 // CHECK-INDEX: [indexEntityReference]: kind: objc-instance-method | name: meth