forked from uncrustify/uncrustify
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle Java's
synchronized(foo){ ... }
construction
Add a new CT for `synchronized` for java, which behaves like a vanilla if/for/while/switch construction if a parenthesis follows the keyword (otherwise, tokenize_cleanup reverts it to being a qualifier). This adds options `nl_synchronized_brace`, `nl_before_synchronized`, and `nl_after_synchronized`, which work in the obvious way. Since `synchronized` requires braces, no special handling of braceless code is necessary. Also update defaults.cfg by update-default-cfg.sh to appropriately handle these new options and add tests 80060 and 80061.
- Loading branch information
Gilles
committed
Jul 10, 2015
1 parent
b6593c1
commit 55581c4
Showing
19 changed files
with
261 additions
and
19 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
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
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
Oops, something went wrong.