summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/cpp/nl_func_call_args_multi_line_ignore_closures.cpp
blob: 96cd4826d916763902cb3eb6cd953e7df5eaf9a4 (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
methodCall([] {
                             Log();
                           });

funcCall(match ( [ & ]( const ContentProps &props)  {
        return PairingCmpnt()
      }));

match( [ & ]( const ContentProps &props)  {
        return PairingCmpnt()
      });


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

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

options({
          .cornerRadius = CGFLOAT_MAX,
        });

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();
});

methodCall(arg1, arg2,
arg3);

methodCall(arg1, arg2, arg3);

methodCall(arg1, []{
              variant.action.send(Cmpnt);
      }, arg3);

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

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

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