annotate clang/test/Rewriter/rewrite-foreach-protocol-id.m @ 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 -fobjc-runtime=macosx-fragile-10.5 %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=struct objc_object*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
anatofuz
parents:
diff changeset
3 // rdar:// 9039342
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 void *sel_registerName(const char *);
anatofuz
parents:
diff changeset
6 void objc_enumerationMutation(id);
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 @protocol CoreDAVLeafDataPayload @end
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 @class NSString;
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 @interface CoreDAVAction
anatofuz
parents:
diff changeset
13 - (id) context;
anatofuz
parents:
diff changeset
14 @end
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 @interface I
anatofuz
parents:
diff changeset
17 {
anatofuz
parents:
diff changeset
18 id uuidsToAddActions;
anatofuz
parents:
diff changeset
19 }
anatofuz
parents:
diff changeset
20 @end
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 @implementation I
anatofuz
parents:
diff changeset
23 - (void) Meth {
anatofuz
parents:
diff changeset
24 for (id<CoreDAVLeafDataPayload> uuid in uuidsToAddActions) {
anatofuz
parents:
diff changeset
25 CoreDAVAction *action = 0;
anatofuz
parents:
diff changeset
26 id <CoreDAVLeafDataPayload> payload = [action context];
anatofuz
parents:
diff changeset
27 }
anatofuz
parents:
diff changeset
28 }
anatofuz
parents:
diff changeset
29 @end