]> granicus.if.org Git - clang/commit
[clang-format] Add more tests for ObjC protocol list formatting behavior
authorBen Hamilton <benhamilton@google.com>
Mon, 29 Jan 2018 20:01:49 +0000 (20:01 +0000)
committerBen Hamilton <benhamilton@google.com>
Mon, 29 Jan 2018 20:01:49 +0000 (20:01 +0000)
commit48412d1860561ad224b4ac09838a7c226fa9649d
tree0922e26462fb36935c5f7bf3e702a4d3057b10ab
parenta1db8257a8c85fe415b65e30c44248ca4e3600a0
[clang-format] Add more tests for ObjC protocol list formatting behavior

Summary:
The existing unit tests in FormatTestObjC.cpp didn't fully cover
all the cases for protocol confirmance list formatting.

This extends the unit tests to more cases of protocol
conformance list formatting, especially how the behavior changes
when `BinPackParameters` changes from `true` (the default) to `false`.

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

Reviewers: krasimir, jolesiak, stephanemoore

Reviewed By: krasimir

Subscribers: benhamilton, klimek, cfe-commits, hokein, Wizard

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

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