<div dir="ltr">The rationale is that we introduced this option (before it was always 'false') and we did not know what the desired behavior for LLVM style is. Thus, we opted for not changing clang-format's behavior.<div>
<br></div><div>Your numbers show to some extend that other developers are also not clear on this (3:1 is far from a clear decision). Note, that some of the 622 not-same-line-cases might in theory be due to line length making the gap even smaller (I have not double-checked that, though).</div>
<div><br></div><div>Feel free to change this flag, but I suggest getting the opinions of a few key contributors first.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 8:29 PM, Sean Silva <span dir="ltr"><<a href="mailto:silvas@purdue.edu" target="_blank">silvas@purdue.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div><br></div><div>Is the current setting of `AlwaysBreakTemplateDeclarations: false` for LLVMStyle intentional? What was the rationale?</div>
<div><br></div><div>Some rough counts on the LLVM codebase:</div>
<div><br></div><div>same-line:</div><div>$ git grep -E 'template.*(class|struct).*{' -- '*.h' '*.cpp' | wc -l</div><div>214<br></div><div><br></div><div>(most of them are tiny traits classes, like isPodLike or DenseMapInfo)</div>

<div><br></div><div>not-same-line:</div><div>$ git grep -A1 -h 'template' -- '*.h' '*.cpp' | egrep '^\s*(class|struct).*{' | wc -l</div><div>622</div><div><div><br></div><div>Recently, when using clang-format I've had to manually go back and change cases where clang-format does not put the `template <...>` on its own line. I know that I could write a local .clang-format for this, but I think it should be in the LLVMStyle to begin with (barring this choice being intentional and having a reasonable rationale).</div>
<span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- Sean Silva</div></font></span></div>
</blockquote></div><br></div>