Page MenuHomePhabricator

clang-format: [Java] format Java lambda expressions

Authored by het on Nov 20 2014, 5:11 PM.



Support Java lambda expressions

Diff Detail

Event Timeline

het updated this revision to Diff 16462.Nov 20 2014, 5:11 PM
het retitled this revision from to clang-format: [Java] format Java lambda expressions.
het updated this object.
het edited the test plan for this revision. (Show Details)
het added a reviewer: djasper.
het set the repository for this revision to rL LLVM.
het added a subscriber: Unknown Object (MLST).
het updated this revision to Diff 16463.Nov 20 2014, 5:16 PM
het added a comment.Nov 20 2014, 5:42 PM

Will this work for now? The way the fake paren parsing works, we will have (using '[' ']' as fake parens):

[[([a, b]) -> a] + b]

When we really want:

[([a, b]) -> [a + b]]
djasper edited edge metadata.Nov 21 2014, 12:09 AM

I think we should directly try to get this right with the fake parentheses. I'll prepare a patch. Feel free to just abandon this patch.

het abandoned this revision.Nov 21 2014, 11:08 AM