summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/documentation/htdocs/options_Namespace.html
blob: 74589df06b4dab6dd5aa3a7b235aac23e57c6f60 (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
<html>
<head>
   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
   <title>Uncrustify: where do the New Lines 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>Spaces and New lines for Namespace</h2>
<p>
</p>
<hr><a name="nl_namespace_brace"></a>
<pre>
namespace fooA {
<a title="nl_namespace_brace"><strong><font color="red">              █</font></strong></a>
  // use here nl_namespace_brace=false
     ...
<a name="sp_word_brace_ns"></a>
namespace fooB {<a name="nl_after_brace_open"></a>
<a title="sp_word_brace_ns"><strong><font color="red">              █</font></strong></a>
// sp_word_brace_ns=true
<a title="indent_namespace"><strong><font color="red">          █</font></strong></a><a title="indent_namespace_level"><strong><font color="red">     █</font></strong></a>void a();
// indent_namespace=true"
// indent_namespace_level=5"
     ...

namespace foo1 {<a title="indent_namespace_single_indent"><strong><font color="red">     █</font></strong></a>
  // indent_namespace_single_indent=true
namespace foo2 {
<a title="indent_namespace"><strong><font color="red">    █</font></strong></a>void a();
  // indent_namespace=true
     ...

namespace fooC {
<a title="indent_namespace"><strong><font color="red">     █</font></strong></a>
  // indent_namespace=true
<a title="indent_namespace_limit"><strong><font color="red">  █</font></strong></a>
  // indent_namespace_limit=3
void a();
void b();
void c();
}

namespace dudeNamespace
<a title="nl_namespace_two_to_one_liner"><strong><font color="red">█</font></strong></a>
{ class ForwardFooClass; }


namespace fooD {
<a title="nl_inside_namespace"><strong><font color="red">  █</font></strong></a>
  // nl_inside_namespace=2
	void a();
	void b();
	void c();
<a title="nl_inside_namespace"><strong><font color="red">  █</font></strong></a>
  // nl_inside_namespace=2
}

namespace fooD {
	void a();
	void b();
	void c();
}<a title="mod_add_long_namespace_closebrace_comment"><strong><font color="red">  █</font></strong></a>// namespace fooD
  // mod_add_long_namespace_closebrace_comment=2


</pre>
</body>
</html>