<div dir="ltr"><div>Hi,</div><div><br></div><div>I have found a bug when using a style like:</div><div>  AlwaysBreakAfterDefinitionReturnType: true</div><div>  BreakBeforeBraces: Stroustrup</div><div><br></div><div>I attach a straightforward patch that passes the tests.</div>

<div>However, I think that the issue may be actually somewhere deeper, e.g. in `Line.Last` pointing incorrectly to a different token than l_brace (cf. the patch).</div><div><br></div><div>An example.</div><div><br></div>
<div>
<div>Before:</div><div>  template <class T></div><div>  T *f(T &c)  // Problem here: no line break before f</div><div>  {</div><div>    return NULL;</div><div>  }</div><div><br></div></div><div><div>After:</div>

<div>  template <class T></div><div>  T *</div><div>  f(T &c)</div><div>  {</div><div>    return NULL;</div><div>  }</div></div><div><br></div><div>Regards,<br>Marek Kurdej</div>
</div>