summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50630-nl_func_call_args_multi_line_ignore_closures.m
blob: 5c07ea4355ba92f1674a731eb041b258e1b129a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
mapToPtr(^(const LeftAddOn::Props &addOnProps) {
	FSTheme *const theme = AK::getTheme();
});

mapToPtr( x, ^ (const Props &addOnProps) {
	FSTheme *const theme = AK::getTheme();
});

mapToPtr( ^ (const Props &addOnProps) {
	FSTheme *const theme = AK::getTheme();
});

mapToPtr(
	arg1, ^ ( NSString * ) (const Props &addOnProps) {
	FSTheme *const theme = AK::getTheme();
}, arg2
	);

mapToPtr(arg1, ^ ( NSString *) (const Props &addOnProps) {
	FSTheme *const theme = AK::getTheme();
});

mapToPtr( ^() (const Props &addOnProps) {
	FSTheme *const theme = AK::getTheme();
}, arg2);



methodCall(^{
	variant.action.send(Cmpnt);
});

methodCall(
	^{
	variant.action.send(Cmpnt);
}, x);


methodCall(  x, ^id (Cmpnt *c) {
	NSLog(@"Something");
});

methodCall(  ^id (Cmpnt *c) {
	NSLog(@"Something");
});

methodCall(  ^(Cmpnt *c) {
	NSLog(@"Something");
});

methodCall(
	^ (Cmpnt *c) {
	NSLog(@"Something");
}, y);

methodCall(
	x,  ^(Cmpnt *c) {
	NSLog(@"Something");
}, y
	);


methodCall(
	arg1,
	arg2,
	arg3
	);

methodCall(arg1, arg2, arg3);

methodCall(
	arg1,
	arg2, {
	.x = 10,
}
	);

methodCall(
	arg1, {
	.x = 10,
},
	arg2
	);

methodCall({
	.x = 10,
},
           arg2);


outerMethodCall(
	methodCall(^{
	// action
},
	           x)
	);

outerMethodCall(
	methodCall(^{
	variant.action.send(Cmpnt);
},
	           x)
	);