]> granicus.if.org Git - clang/commit
Revert "[clang-format] Fix putting ObjC message arguments in one line for multiline...
authorJacek Olesiak <jolesiak@google.com>
Wed, 30 May 2018 12:57:58 +0000 (12:57 +0000)
committerJacek Olesiak <jolesiak@google.com>
Wed, 30 May 2018 12:57:58 +0000 (12:57 +0000)
commitdffb1fd109ac7c164d27acb06abb985513ec34ff
tree000a1d6e8f3ceb8e840f75f1cd1eb06ea071fff1
parent87f534de23684622a8650ac211aced93a6cbc3a3
Revert "[clang-format] Fix putting ObjC message arguments in one line for multiline receiver"

Summary:
This reverts commit db9e5e9a616d7fdd4d1ba4c3b2cd89d8a0238533 (rC333171).

Mentioned change introduced unintended formatting of ObjC code due to split priorities inherited from C/C++, e.g.:
```
fooooooo = [
    [obj fooo] aaa:42 aaa:42];
```
instead of
```
fooooooo =
    [[obj fooo] aaa:42
                aaa:42];
```
when formatted with ColumnLimit = 30.

Reviewers: krasimir

Reviewed By: krasimir

Subscribers: benhamilton, klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D47527

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333539 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTestObjC.cpp