<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 style>Some rough counts on the LLVM codebase:</div>
<div style><br></div><div style>same-line:</div><div>$ git grep -E 'template.*(class|struct).*{' -- '*.h' '*.cpp' | wc -l</div><div>214<br></div><div><br></div><div style>(most of them are tiny traits classes, like isPodLike or DenseMapInfo)</div>
<div><br></div><div style>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 style>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>
</div><div style><br></div><div style>-- Sean Silva</div></div>