summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/documentation/htdocs/options_Positioning.html
blob: 4e8a36cc88e49586ce8a34073e76115cd67efcc2 (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
<html>
<head>
   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
   <title>Uncrustify: where do the Positioning options work</title>
</head>
<body lang="en-US">
<h1><a href="https://github.com/uncrustify/uncrustify">Uncrustify</a>:
Where do the options work?</h1>
<h2>Positioning</h2>
<p> 
</p>
<table border="1">
<tr>
<td>
<pre>
void Mode( TDistMode dm )
{<a name="pos_arith"></a>
    a = b
	+ c;
	<a title="pos_arith"><strong><font color="red">█</font></strong></a><a name="pos_assign"></a>
    ms_DistMode
        = dm;
	<a title="pos_assign"><strong><font color="red">█</font></strong></a>
    if (   (count > 0)<a name="pos_bool"></a>
        && (count < MAX_COUNT)) { ... }
        <a title="pos_bool"><strong><font color="red">█</font></strong></a>
    b = ( GetDistanceMode()<a name="pos_compare"></a>
	== dmKM ) ? "km" : "Miles";
	<a title="pos_compare"><strong><font color="red">█</font></strong></a>
    b = ( GetDistanceMode() == dmKM ) <a name="pos_conditional"></a>
        ? "km"
        : "Miles";
        <a title="pos_conditional"><strong><font color="red">█</font></strong></a>
}
{<a name="pos_comma"></a>
	a = B(1
	      , 2
	      , 3);
	      <a title="pos_comma"><strong><font color="red">█</font></strong></a>
}
<a name="pos_class_colon"></a><a name="nl_class_colon"></a><a name="pos_class_comma"></a>
class GLOX_API ClientBase
        : public Class
        <a title="nl_class_colon"><strong><font color="red">     █</a><a title="pos_class_colon">█</font></strong></a><a name="nl_class_init_args"></strong></a>
        , public OtherClass   // if many lines are wanted
        <a title="nl_class_init_args"><strong><font color="red">█</font></strong></a>
        , public ThridClass
        , public ForthClass
        <a title="pos_class_comma"><strong><font color="red">           █</font></strong></a>

        // nl_class_colon=force
        // pos_class_colon=lead_force
        // nl_class_init_args=force
        // pos_class_comma=lead_force
{ }
<a name="pos_constr_colon"></a><a name="pos_constr_comma"></a>
class foo : public
{
    void bar_c(int t, int u)
        : t(222)
<a title="pos_constr_colon"><strong><font color="red">        █</font></strong></font></strong></a>
        , u(88)
<a title="pos_constr_comma"><strong><font color="red">        █</font></strong></a>
    {}
}
</pre>
</td>
</tr>
</table>
</body>
</html>