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

stop warning if an empty body is given to if on a different line #47

Closed
mycoboco opened this issue Mar 14, 2016 · 1 comment
Closed

Comments

@mycoboco
Copy link
Owner

Differently from loop statements where continue can be used to replace an empty body, it looks good to allow an empty body to an if statement if the body appears on a different line than the if does.

@mycoboco
Copy link
Owner Author

The location of ), not that of if is important when determining "on a different line"; For example,

if (cond1 +
    cond2) ;

this should be considered to have an empty body on the same line as the if statement appears.

@mycoboco mycoboco self-assigned this Mar 15, 2016
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

1 participant