Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: reformat code to fix checkstyle violations #467

Closed
wants to merge 3 commits into from
Closed

Conversation

@vlsi
Copy link
Member

@vlsi vlsi commented Dec 26, 2015

This is IDEA's autoformat + manual formatting for the following cases:

  1. s/\+\n/\n+/ to make sure line wraps before + operator. The same for other binary operators
  2. if (...) /* comment */ {} -> if (...) { /* comment */
  3. int a, b; -> int a; int b;
@vlsi vlsi force-pushed the format_code branch 11 times, most recently from 436dc7d to 54f7d23 Dec 29, 2015
vlsi added 3 commits Dec 29, 2015
This is IDEA's autoformat + manual formatting for the following cases:
1) s/\+\n/\n+/ to make sure line wraps before + operator. The same for other binary operators
2) if (...) /* comment */ {} -> if (...) { /* comment */
3) int a, b; -> int a; int b;
Notable differences: Eclipse does not like for loops without increment part, thus rewritten it to while.
Eclipse formats: for(int i=0; i<10;), and it somehow misses space after the latest ';'
@vlsi vlsi closed this in 2d5e7fa Dec 29, 2015
@vlsi vlsi deleted the format_code branch Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant