<div dir="ltr">I think that was a bug fix as the latest clang-format will convert the "Before" code to "After" even in the absence of the .clang-format configuration file.<div><br></div><div>Regards,</div><div>Owen</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 31, 2018 at 2:24 PM Mateusz Loskot via cfe-users <<a href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm looking for clang-format features to control formatting of<br>
functions with trailing return type.<br>
<br>
I found this related change<br>
<a href="http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20150601/130293.html" rel="noreferrer" target="_blank">http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20150601/130293.html</a><br>
<br>
What are the options to control the formatting presented in that message?<br>
Namely, how to achieve the "After" formatting as copied here?<br>
<br>
Before:<br>
  template <typename T><br>
  auto aaaaaaaaaaaaaaaaaaaaaa(T t) -> decltype(eaaaaaaaaaaaaaaa<T>(t.a)<br>
                                                   .aaaaaaaa());<br>
<br>
After:<br>
  template <typename T><br>
  auto aaaaaaaaaaaaaaaaaaaaaa(T t)<br>
      -> decltype(eaaaaaaaaaaaaaaa<T>(t.a).aaaaaaaa());<br>
<br>
There seem to be nothing related to trailing return or arrow formatting<br>
on <a href="https://clang.llvm.org/docs/ClangFormatStyleOptions.html" rel="noreferrer" target="_blank">https://clang.llvm.org/docs/ClangFormatStyleOptions.html</a><br>
<br>
Best regards,<br>
-- <br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" rel="noreferrer" target="_blank">http://mateusz.loskot.net</a><br>
_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
</blockquote></div>