Test Plan:
New tests added. Ran tests with: % ninja FormatTests && ./tools/clang/unittests/Format/FormatTests Confirmed tests failed before change and passed after change.
Differential D64775
[Format/ObjC] Avoid breaking between unary operators and operands benhamilton on Jul 15 2019, 3:12 PM. Authored by
Details Test Plan: New tests added. Ran tests with: % ninja FormatTests && ./tools/clang/unittests/Format/FormatTests Confirmed tests failed before change and passed after change.
Diff Detail
Event Timeline
Comment Actions Yeah, worst case we'll need to roll this back and go with the targeted fix, but I don't see a problem. |
This looks a little suspicious only because it's so specific.
It seems like you'd *always* want a harsh penalty for breaking between a unary operator and its operand. @klimek does this look right, should we drop the ObcJMethodExpr requirement or is this case handled elsewhere?