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
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Uncrustify: where do the Spaces 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 for template</h2>
<p>
</p>
<table border="1", width="100%">
<tr>
<td>
<pre>
{<a name="sp_template_angle"></a><a name="sp_before_angle"></a><a name="sp_inside_angle"></a><a name="sp_after_angle"></a>
template<a title="sp_template_angle, sp_before_angle"><font color="red">█</font></a><<a title="sp_inside_angle"><font color="red">█</font></a>bool a<a title="sp_inside_angle"><font color="red">█</font></a>><a title="sp_after_angle"><font color="red">█</font></a>void f();
<a name="sp_angle_paren"></a>
new List<byte><a title="sp_angle_paren"><font color="red">█</font></a>(foo);
<a name="sp_angle_paren_empty"></a>
new List<byte>(<a title="sp_angle_paren_empty"><font color="red">█</font></a>);
<a name="sp_angle_word"></a>
List<byte><a title="sp_angle_word"><font color="red">█</font></a>m;
template <typename T><a title="sp_angle_word"><font color="red">█</font></a>static ...;
<a name="sp_angle_shift"></a>
template<typename T> class Foo<Bar<T><a title="sp_angle_shift"><font color="red">█</font></a>> { };
}
</pre>
</td>
</tr>
</table>
<p></p>
<h1>Register</h1>
<table border="0", width="100%">
<tr>
<td valign="top"><a href="#sp_template_angle">sp_template_angle</a></td>
<td>Add or remove space in 'template <' vs 'template<'.<BR>If set to ignore, sp_before_angle is used.</td>
</tr>
<tr>
<td valign="top"><a href="#sp_before_angle">sp_before_angle</a></td>
<td>Add or remove space before '<>'</td>
</tr>
<tr>
<td valign="top"><a href="#sp_inside_angle">sp_inside_angle</a></td>
<td>Add or remove space inside '<' and '>'</td>
</tr>
<tr>
<td valign="top"><a href="#sp_after_angle">sp_after_angle</a></td>
<td>Add or remove space after '<>'</td>
</tr>
<tr>
<td valign="top"><a href="#sp_angle_paren">sp_angle_paren</a></td>
<td>Add or remove space between '<>' and '(' as found in 'new List<byte>(foo);'</td>
</tr>
<tr>
<td valign="top"><a href="#sp_angle_paren_empty">sp_angle_paren_empty</a></td>
<td>Add or remove space between '<>' and '()' as found in 'new List<byte>();'</td>
</tr>
<tr>
<td valign="top"><a href="#sp_angle_word">sp_angle_word</a></td>
<td>Add or remove space between '<>' and a word as in 'List<byte> m;' or 'template <typename T> static ...'
</td>
</tr>
<tr>
<td valign="top"><a href="#sp_angle_shift">sp_angle_shift</a></td>
<td>Add or remove space between '>' and '>' in '>>'</td>
</tr>
<tr>
<td valign="top"><a href="#sp_permit_cpp11_shift">sp_permit_cpp11_shift</a></td>
<td>Permit removal of the space between '>>' in 'foo<bar<int> >' (C++11 only). Default=False.<BR>sp_angle_shift cannot remove the space without this option.</td>
</tr>
</table>
</body>
</html>
|