annotate clang/test/Index/complete-pch.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 // Note: the run lines follow their respective tests, since line/column
anatofuz
parents:
diff changeset
2 // matter in this test.
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 @interface C
anatofuz
parents:
diff changeset
5 - (int)instanceMethod3:(int)x;
anatofuz
parents:
diff changeset
6 + (int)classMethod3:(float)f;
anatofuz
parents:
diff changeset
7 @end
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 void msg_id(id x) {
anatofuz
parents:
diff changeset
10 [id classMethod1:1.0];
anatofuz
parents:
diff changeset
11 [x instanceMethod1:5];
anatofuz
parents:
diff changeset
12 }
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 // REQUIRES: native
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 // Build the precompiled header
anatofuz
parents:
diff changeset
17 // RUN: c-index-test -write-pch %t.h.pch -x objective-c-header %S/Inputs/complete-pch.h
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // Run the actual tests
anatofuz
parents:
diff changeset
20 // RUN: c-index-test -code-completion-at=%s:10:7 -include %t.h %s | FileCheck -check-prefix=CHECK-CC1 %s
anatofuz
parents:
diff changeset
21 // CHECK-CC1: ObjCClassMethodDecl:{ResultType int}{TypedText classMethod1:}{Placeholder (double)}
anatofuz
parents:
diff changeset
22 // CHECK-CC1: ObjCClassMethodDecl:{ResultType int}{TypedText classMethod2:}{Placeholder (float)}
anatofuz
parents:
diff changeset
23 // CHECK-CC1: ObjCClassMethodDecl:{ResultType int}{TypedText classMethod3:}{Placeholder (float)}
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 // RUN: c-index-test -code-completion-at=%s:11:6 -include %t.h %s | FileCheck -check-prefix=CHECK-CC2 %s
anatofuz
parents:
diff changeset
26 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType int}{TypedText instanceMethod1:}{Placeholder (int)}
anatofuz
parents:
diff changeset
27 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType int}{TypedText instanceMethod2:}{Placeholder (int)}
anatofuz
parents:
diff changeset
28 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType int}{TypedText instanceMethod3:}{Placeholder (int)}