[PATCH] D42787: clang-format: do not add extra indent when wrapping last parameter

Chandler Carruth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 2 04:32:10 PST 2018


chandlerc added a comment.

In https://reviews.llvm.org/D42787#1000687, @krasimir wrote:

> We could adapt the single-argument version instead, turning:
>
>   foo(bbbbbbbbbbbbbbbbbb +
>       ccccccccccccccccc);
>
>
> into:
>
>   foo(bbbbbbbbbbbbbbbbbb +
>           ccccccccccccccccc);
>


I have a mild preference for this, and it seems more consistent. But I don't have a strong preference.

However, for each of the other cases shown in the thread so far, i strongly prefer clang-format's current behavior.


Repository:
  rC Clang

https://reviews.llvm.org/D42787





More information about the cfe-commits mailing list