[clang-format] Add more tests for Objective-C 2.0 generic alignment
authorBen Hamilton <benhamilton@google.com>
Tue, 6 Feb 2018 18:01:47 +0000 (18:01 +0000)
committerBen Hamilton <benhamilton@google.com>
Tue, 6 Feb 2018 18:01:47 +0000 (18:01 +0000)
commit56d1c019992e5e020b3002289c55c89014b8c5d9
treed40da0cd5be96671397db1d20526d8d97b39e18f
parent0c904861e697ce3ffc3b41afb4d5fd96cce3e891
[clang-format] Add more tests for Objective-C 2.0 generic alignment

Summary:
In r236412, @djasper added a comment:

    // FIXME: We likely want to do this for more combinations of brackets.
    // Verify that it is wanted for ObjC, too.

In D42650, @stephanemoore asked me to confirm this.

This followup to D42650 adds more tests to verify the relative
alignment behavior for Objective-C 2.0 generics passed to functions
and removes the second half of the FIXME comment.

Test Plan:
  make -j12 FormatTests && \
  ./tools/clang/unittests/Format/FormatTests --gtest_filter=FormatTestObjC.\*

Reviewers: stephanemoore, jolesiak, djasper

Reviewed By: jolesiak

Subscribers: klimek, cfe-commits, djasper, stephanemoore, krasimir

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

llvm-svn: 324364
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTestObjC.cpp