-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: ## Context After the changes in D33399531 (5164ad9), we were left with a few hard to understand variables which would get in the way of changing the newline logic. This aims to simplify the booleans behind `argsIndentElse`. ## Change WARNING: Unlike previous diffs, this isn't a refactor - the final formatting is different (but for the better). In order to simplify argument indentation logic, I changed: ``` !(trailingDereferences || simple) ``` To: ``` chunks.last().shouldKeepOnSameLine ``` These *aren't* the same, but they're very close - notice that only two (recently added) test cases are affected. --- Also added a big comment explaining why we have this boolean. It's somewhat related to this github issue: [Conditional OpenOp / CloseOp · Issue #556](google/google-java-format#556) Reviewed By: strulovich Differential Revision: D33488425 fbshipit-source-id: a84b4716386909459f27383c4442216274d213b9
- Loading branch information
1 parent
f79e898
commit d74f46a
Showing
2 changed files
with
29 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters