<div dir="ltr">(This is what WebKit style asks for too: <a href="http://www.webkit.org/coding/coding-style.html">http://www.webkit.org/coding/coding-style.html</a> , "Other Punctuation" point 1. So if this goes in, maybe you can set to true for webkit style.)</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 5, 2013 at 10:23 AM, Florian Sowade <span dir="ltr"><<a href="mailto:f.sowade@r9e.de" target="_blank">f.sowade@r9e.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
the attached patch adds a clang-format option to always break<br>
constructor initializers before the initial colon.<br>
<br>
So this patch adds an option to turn<br>
<br>
Constructor : foo(bar)<br>
{}<br>
<br>
into<br>
<br>
Constructor<br>
: foo(bar)<br>
{}<br>
<br>
I don't know if this style is widely distributed, but I use it to<br>
minimize the diff when I add new members to the list of constructor<br>
initializers, since I can add a second member to the list without<br>
modifying any of the existing lines:<br>
<br>
Constructor<br>
: foo(bar)<br>
, baz()<br>
{}<br>
<br>
>From my understanding this is not possible with the current set of<br>
options.<br>
<span class="HOEnZb"><font color="#888888"><br>
Florian Sowade<br>
</font></span><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>