[PATCH] D48718: [clang-format] Prohibit breaking after a bracket opening ObjC method expression

Jacek Olesiak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 2 03:11:39 PDT 2018


jolesiak added a comment.

In https://reviews.llvm.org/D48718#1146805, @benhamilton wrote:

> Can you add a test, please?


The test could look like:

  aaaaa = [a aa:aa
             aa:aa];

with appropriate column limit.
Right now, however, this would be formatted:

  aaaaa =
      [a aa:aa aa:aa];

This behavior is improved in https://reviews.llvm.org/D48719. To avoid adding

  aaaaa =
      [a aa:aa aa:aa];

test in this change and changing it to:

  aaaaa = [a aa:aa
             aa:aa];

in https://reviews.llvm.org/D48719 I decided to omit it altogether in this change.

Sorry for the confusion. If you prefer me to add this test and modify in later commit I'll do it.


Repository:
  rC Clang

https://reviews.llvm.org/D48718





More information about the cfe-commits mailing list