summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/30279-indent-inside-ternary-operator.cpp
blob: 80456e65997e943d11d54263df85dda8c3de9290 (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
(tmp
	? tmp->IsNewline()
		? "newline"
		: tmp->IsComment()
			? "comment"
			: "other"
	: tmp->IsNewline()
		? "newline"
		: tmp->IsComment()
			? "comment"
			: "other");

a
? b
	+ c
: d
	+ e;

return
        outerFlag
	? RadioButton
	: innerFlag
		? Badge
		: nil;

x = outerFlag
    ? RadioButton(
		    arg1
		    )
    : Checkbutton
	    .arg2;

Builder
.child(
	outerFlag
	? RadioButton(
			buttonArg
			)
	: innerFlag
		? Badge
			.component(
				LabelText)
		: nil
	);


accessoryType
? ConKSC1{}
: flag == false
	? ConKSC2{}
		.build()
	: flag == true
		? ConKSC3{}
			.build()
		: ConKSC4{}
			.build();

options.meta == nil
? metaCmpnt
:  CBuilder()
	.spacing(4)
	.subCmpnt(
		CBuilder()
		.build());

options.meta == nil
? CBuilder()
	.spacing(4)
	.subCmpnt(
		CBuilder()
		.build()
		)
: Builder
	.spacing;

options == nil ? CBuilder()
	.spacing(6)
: Builder
	.spacing;

options == nil ? CBuilder()
	.spacing(6) : Builder
	.spacing;

flag
? isChild
	? TypeBack
	: TypeCancel
: nil;


func something() {
	if (flag) {
		x == flag
		? Builder
			.spacing
		: Builder
			.spacing;
	}
}


flag1
?   ( flag2
		? ( flag3
				?   result1
				:  result2 )
		:   ( result3  )
		)
:  (  flag5
		? ( flag
				? result4
				: result5)
		:   (  flag6
				? result6
				: ( result7   )
				)
		);


flag1
?   result1
:  (
		flag5
		);