[cfe-users] [clang-format] Trailing return type
Owen Pan via cfe-users
cfe-users at lists.llvm.org
Thu Nov 1 22:11:11 PDT 2018
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 at 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 at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20181101/fad95d1c/attachment.html>
More information about the cfe-users
mailing list