[cfe-users] [clang-format] Trailing return type

Mateusz Loskot via cfe-users cfe-users at lists.llvm.org
Tue Jul 30 15:14:01 PDT 2019


On Mon, 5 Nov 2018 at 19:27, Mateusz Loskot <mateusz at loskot.net> wrote:
> On Fri, 2 Nov 2018 at 06:11, Owen Pan <owenpiano at gmail.com> wrote:
>
> I noticed one issue which I wonder if it does qualify for a bug report:
>
> TL;TR: arrow followed by typename keyword is not handled
>
> Before:
>
> template <int K, typename E, typename L, int N>
> auto bbbbbbbbbbbbbbbbbbbbbbb(detail::base<E, L, N>& p) -> typename
> std::add_lvalue_reference<E>::type;
>
> After:
>
> template <int K, typename E, typename L, int N>
> auto bbbbbbbbbbbbbbbbbbbbbbb(detail::base<E, L, N> &p) ->
>     typename std::add_lvalue_reference<E>::type;

FYI, I've reported it as a bug (took me a while!)

https://bugs.llvm.org/show_bug.cgi?id=42835

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net



More information about the cfe-users mailing list