[cfe-dev] clang-format closing brackets

Daniel Jasper via cfe-dev cfe-dev at lists.llvm.org
Mon Jul 18 00:46:25 PDT 2016


This behavior is not supported by clang-format.

On Tue, Jul 12, 2016 at 10:07 AM, Han Wang via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi,
>
> Let's say I have some big multi-line function call or multi-line template
> argument list.
>
> Foo(
>   param1,
>   param2,
>   param3,
>   param4
> );
>
> template <
>   typename T,
>   std::enable_if_t<
>     ...
>   >* = nullptr
> >
>
> I want the closing brackets to be at the same indentation level with their
> opening counterparts. But clang-format always put the closing brackets to
> the end of the last parameter/argument. Is there a way to solve this?
> Thanks.
>
> Foo(
>   param1,
>   param2,
>   param3,
>   param4); // how to move ); to next line
>
> template <
>   typename T,
>   std::enable_if_t<
>     ...>* = nullptr> // how to move >* = nullptr and > to next lines
>
> Best regards,
> Han
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160718/cfc23878/attachment.html>


More information about the cfe-dev mailing list