annotate clang/test/Rewriter/rewrite-forward-class.mm @ 237:c80f45b162ad llvm-original

add some fix
author kono
date Wed, 09 Nov 2022 17:47:54 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 extern "C" {
anatofuz
parents:
diff changeset
5 @class XX;
anatofuz
parents:
diff changeset
6 @class YY, ZZ, QQ;
anatofuz
parents:
diff changeset
7 @class ISyncClient, SMSession, ISyncManager, ISyncSession, SMDataclassInfo, SMClientInfo,
anatofuz
parents:
diff changeset
8 DMCConfiguration, DMCStatusEntry;
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 @interface QQ
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 @end
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 @interface SMDataclassInfo : QQ
anatofuz
parents:
diff changeset
15 - (XX*) Meth;
anatofuz
parents:
diff changeset
16 - (DMCStatusEntry*)Meth2;
anatofuz
parents:
diff changeset
17 @end
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 @implementation SMDataclassInfo
anatofuz
parents:
diff changeset
20 - (XX*) Meth { return 0; }
anatofuz
parents:
diff changeset
21 - (DMCStatusEntry*)Meth2 { return 0; }
anatofuz
parents:
diff changeset
22 @end
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 @interface YY
anatofuz
parents:
diff changeset
25 {
anatofuz
parents:
diff changeset
26 ISyncClient *p1;
anatofuz
parents:
diff changeset
27 ISyncSession *p2;
anatofuz
parents:
diff changeset
28 }
anatofuz
parents:
diff changeset
29 @property (copy) ISyncClient *p1;
anatofuz
parents:
diff changeset
30 @end
anatofuz
parents:
diff changeset
31
anatofuz
parents:
diff changeset
32 @implementation YY
anatofuz
parents:
diff changeset
33 @synthesize p1;
anatofuz
parents:
diff changeset
34 @end
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 extern "C" {
anatofuz
parents:
diff changeset
37 @class CCC;
anatofuz
parents:
diff changeset
38 @class Protocol, P , Q;
anatofuz
parents:
diff changeset
39 int I,J,K;
anatofuz
parents:
diff changeset
40 };
anatofuz
parents:
diff changeset
41
anatofuz
parents:
diff changeset
42 };
anatofuz
parents:
diff changeset
43
anatofuz
parents:
diff changeset
44
anatofuz
parents:
diff changeset
45 // rdar://15027032
anatofuz
parents:
diff changeset
46 @interface ISDPropertyChangeGroup
anatofuz
parents:
diff changeset
47 @end
anatofuz
parents:
diff changeset
48
anatofuz
parents:
diff changeset
49 @implementation ISDPropertyChangeGroup
anatofuz
parents:
diff changeset
50 @class ISDClientState;
anatofuz
parents:
diff changeset
51 - (id)lastModifiedGeneration : (ISDClientState *) obj
anatofuz
parents:
diff changeset
52 {
anatofuz
parents:
diff changeset
53 return obj ;
anatofuz
parents:
diff changeset
54 }
anatofuz
parents:
diff changeset
55 @end