File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -53,4 +53,4 @@ void silenceStrongInARC() {
53
53
// CHECK-ARC: "static int extracted(Interface *pointer) {\nreturn mutationOfObjCPointer(pointer);\n}\n\n"
54
54
// CHECK-ARC: "static void extracted(Interface **pointer) {\n*pointer = 0;\n}\n\n"
55
55
56
- // RUN: clang-refactor-test perform -action extract -selected=silence-strong-in-arc -selected=silence-strong2-in-arc %s -fobjc-arc | FileCheck --check-prefix=CHECK-ARC %s
56
+ // RUN: clang-refactor-test perform -action extract -selected=silence-strong-in-arc -selected=silence-strong2-in-arc %s -fobjc-arc -fobjc-runtime=macosx | FileCheck --check-prefix=CHECK-ARC %s
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ - (void)test {
26
26
// CHECK: "static HasProperty *extracted(HasProperty *object) {\nreturn object.implicitProp;\n}\n\n"
27
27
}
28
28
29
- // RUN: clang-refactor-test perform -action extract -selected=property -selected=implicit %s -fobjc-arc | FileCheck %s
30
- // RUN: clang-refactor-test perform -action extract -selected=property-name -selected=implicit-name %s -fobjc-arc | FileCheck %s
29
+ // RUN: clang-refactor-test perform -action extract -selected=property -selected=implicit %s -fobjc-arc -fobjc-runtime=macosx | FileCheck %s
30
+ // RUN: clang-refactor-test perform -action extract -selected=property-name -selected=implicit-name %s -fobjc-arc -fobjc-runtime=macosx | FileCheck %s
31
31
32
32
- (void )prohibitSetterExtraction {
33
33
// setter-pref-begin: +2:8
@@ -42,7 +42,7 @@ - (void)prohibitSetterExtraction {
42
42
// implicit-setter-pref-end: -2:22
43
43
}
44
44
// CHECK-SETTER: Failed to initiate the refactoring action (property setter can't be extracted)!
45
- // RUN: not clang-refactor-test initiate -action extract -selected=setter -selected=setter-pref -selected=implicit-setter -selected=implicit-setter-pref %s -fobjc-arc 2>&1 | FileCheck --check-prefix=CHECK-SETTER %s
45
+ // RUN: not clang-refactor-test initiate -action extract -selected=setter -selected=setter-pref -selected=implicit-setter -selected=implicit-setter-pref %s -fobjc-arc -fobjc-runtime=macosx 2>&1 | FileCheck --check-prefix=CHECK-SETTER %s
46
46
47
47
@end
48
48
@@ -57,4 +57,4 @@ void avoidExtractionCrash(HasIntProp *f) {
57
57
// avoid-extraction-crash-end: -1:5
58
58
}
59
59
60
- // RUN: clang-refactor-test perform -action extract -selected=avoid-extraction-crash %s -fobjc-arc | FileCheck --check-prefix=AVOID-CRASH %s
60
+ // RUN: clang-refactor-test perform -action extract -selected=avoid-extraction-crash %s -fobjc-arc -fobjc-runtime=macosx | FileCheck --check-prefix=AVOID-CRASH %s
Original file line number Diff line number Diff line change 1
- // RUN: clang-refactor-test perform -action extract -selected=%s:16:27-18:4 %s -fobjc-arc | FileCheck %s
1
+ // RUN: clang-refactor-test perform -action extract -selected=%s:16:27-18:4 %s -fobjc-arc -fobjc-runtime=macosx | FileCheck %s
2
2
// RUN: clang-refactor-test perform -action extract -selected=%s:16:27-18:4 %s | FileCheck --check-prefix=NOARC %s
3
3
@interface I
4
4
@@ -7,7 +7,7 @@ @interface I
7
7
@implementation I
8
8
9
9
- (void ) doStuff : (int )x block : (void (^)(int ))block {
10
-
10
+
11
11
}
12
12
13
13
- (void )foo {}
You can’t perform that action at this time.
0 commit comments