Debian Codegraph @

clang/test/Rewriter/rewrite-forward-class.m

raw
1 // RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
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
3
4 @class XX;
5 @class YY, ZZ, QQ;
6 @class ISyncClient, SMSession, ISyncManager, ISyncSession, SMDataclassInfo, SMClientInfo,
7 DMCConfiguration, DMCStatusEntry;
8
9 @interface QQ
10
11 @end
12
13 @interface SMDataclassInfo : QQ
14 - (XX*) Meth;
15 - (DMCStatusEntry*)Meth2;
16 @end
17
18 @implementation SMDataclassInfo
19 - (XX*) Meth { return 0; }
20 - (DMCStatusEntry*)Meth2 { return 0; }
21 @end
22
23 @interface YY
24 {
25 ISyncClient *p1;
26 ISyncSession *p2;
27 }
28 @property (copy) ISyncClient *p1;
29 @end
30
31 @implementation YY
32 @synthesize p1;
33 @end
34