summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cs/12102-mod_full_brace_nl_block_rem_mlcond.cs
blob: e6e0eeded4dbc749784b4649cce3386f0a71c3c9 (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
// mod_full_brace_nl_block_rem_mlcond should block brace removal here
if( a == true
    && b == false )
{
	return 1;
}
else if( a == true
         && b == false)
{
	return 2;
}
// except here as there are no parenthesis
else
	return 3;


if( a == true;
    b == true;
    c == true)
{
	return 1;
}

for( a = true;
     a < 9;
     a++)
{
	return 1;
}

while( a == true
       && b == true
       && c == true)
{
	return 1;
}

using (Foo bar =
	       new Foo())
{
	return 1;
}



// mod_full_brace_nl_block_rem_mlcond should not block brace removal here
if( a == true && b == false )
	return 1;
else if( a == true && b == false)
	return 2;
else
	return 3;


if( a == true; b == true; c == true)
	return 1;

for( a = true; a < 9; a++)
	return 1;

while( a == true && b == true && c == true)
	return 1;

using (Foo bar = new Foo())
	return 1;