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.
Regards, Owen On Wed, Oct 31, 2018 at 2:24 PM Mateusz Loskot via cfe-users < cfe-users@lists.llvm.org> wrote: > Hi, > > I'm looking for clang-format features to control formatting of > functions with trailing return type. > > I found this related change > > http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20150601/130293.html > > What are the options to control the formatting presented in that message? > Namely, how to achieve the "After" formatting as copied here? > > Before: > template <typename T> > auto aaaaaaaaaaaaaaaaaaaaaa(T t) -> decltype(eaaaaaaaaaaaaaaa<T>(t.a) > .aaaaaaaa()); > > After: > template <typename T> > auto aaaaaaaaaaaaaaaaaaaaaa(T t) > -> decltype(eaaaaaaaaaaaaaaa<T>(t.a).aaaaaaaa()); > > There seem to be nothing related to trailing return or arrow formatting > on https://clang.llvm.org/docs/ClangFormatStyleOptions.html > > Best regards, > -- > Mateusz Loskot, http://mateusz.loskot.net > _______________________________________________ > cfe-users mailing list > cfe-users@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users >
_______________________________________________ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users