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

"--n" and "++n" are not indented like "n--" and "n++" are... #495

Closed
Joncom opened this issue Jul 28, 2014 · 1 comment
Closed

"--n" and "++n" are not indented like "n--" and "n++" are... #495

Joncom opened this issue Jul 28, 2014 · 1 comment
Milestone

Comments

@Joncom
Copy link

Joncom commented Jul 28, 2014

... and they probably should be, right?

Example 1

if(true)n++;   // Before
if (true) n++; // After

if(true)++n;   // Before
if (true)++n;  // After
         ^ missing space

Example 2

if(true)  // Before
n++; 

if (true) // After
    n++; 

if(true)  // Before
++n; 

if (true) // After
++n;
^ missing indentation
einars pushed a commit that referenced this issue Aug 9, 2014
Fix pre-increment and pre-decrement formatting issues (#495)
@bitwiseman bitwiseman added this to the v1.5.2 milestone Aug 28, 2014
@bitwiseman bitwiseman added the bug label Aug 28, 2014
@bitwiseman
Copy link
Member

Fixed by #503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants