summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cpp/30279-indent-inside-ternary-operator.cpp
blob: c8b92481d5c94a8e5804044c92ff04c11bfc4bb3 (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
	? chunk_is_newline(tmp)
		? "newline"
		: chunk_is_comment(tmp)
			? "comment"
			: "other"
	: chunk_is_newline(tmp)
		? "newline"
		: chunk_is_comment(tmp)
			? "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
		);