This is an archive of the discontinued LLVM Phabricator instance.

clang-format/java: Unbreak genenrics formatting after r299952.
ClosedPublic

Authored by thakis on Sep 26 2017, 1:17 PM.

Details

Reviewers
bradfier
Summary

https://reviews.llvm.org/rL299952 merged '>>>' tokens into a single JavaRightLogicalShift token. This broke formatting of generics nested more than two deep, e.g. Foo<Bar<Baz>>> because the '>>>' now weren't three '>' for parseAngle().

Luckily, just deleting JavaRightLogicalShift fixes things without breaking the test added in r299952, so do that.

Diff Detail

Event Timeline

thakis created this revision.Sep 26 2017, 1:17 PM
bradfier accepted this revision.Sep 27 2017, 3:25 AM

If this doesn't break the test case for '>>>' then it looks good, although I'm not sure what has changed in the interim to allow that to work. When I made the patch in r299952 we definitely required the explicit JavaRightLogicalShift handling.

This revision is now accepted and ready to land.Sep 27 2017, 3:25 AM
thakis closed this revision.Sep 27 2017, 10:59 AM

r314325, thanks!