This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Add more tests for ObjC protocol list formatting behavior
ClosedPublic

Authored by benhamilton on Jan 29 2018, 9:48 AM.

Details

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.\*

Diff Detail

Repository
rC Clang

Event Timeline

benhamilton created this revision.Jan 29 2018, 9:48 AM
krasimir accepted this revision.Jan 29 2018, 11:41 AM
This revision is now accepted and ready to land.Jan 29 2018, 11:41 AM
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.