summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/oc/nl_func_call_args_multi_line_ignore_closures.m
blob: ea132bab2ab87a48dfe17c8a3fd0b820a613fa37 (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
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));