This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [Java] Support Java enums.
ClosedPublic

Authored by djasper on Nov 13 2014, 7:30 AM.

Details

Reviewers
klimek
Summary

In Java, enums can contain a class body and enum constants can have arguments as well as class bodies. Support most of that.

Diff Detail

Event Timeline

djasper updated this revision to Diff 16160.Nov 13 2014, 7:30 AM
djasper retitled this revision from to clang-format: [Java] Support Java enums..
djasper updated this object.
djasper edited the test plan for this revision. (Show Details)
djasper added a reviewer: klimek.
djasper added a subscriber: Unknown Object (MLST).
klimek added inline comments.Nov 13 2014, 7:45 AM
lib/Format/UnwrappedLineParser.cpp
1410

Any reason we don't want to call into parseBlock here?

Fixed and submitted as r221895.

lib/Format/UnwrappedLineParser.cpp
1410

Nope. Fixed.

klimek accepted this revision.Nov 13 2014, 9:51 AM
klimek edited edge metadata.

LG

This revision is now accepted and ready to land.Nov 13 2014, 9:51 AM
djasper closed this revision.Nov 14 2014, 12:58 AM