]> granicus.if.org Git - clang/commit
[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)
commit58f3ace1dc85219736e96f2012bf9e8a052a55cd
tree597c46e4370f2a3a03075dc9fbffa20108961134
parentc58ab38fd0eea0e3375b09a33762ce36c788ef89
[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

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