-
Notifications
You must be signed in to change notification settings - Fork 857
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
Comments are indented before case statements in enhanced switch #876
Comments
+1 As a general rule I would expect a line containing only a comment to have the same indentation as what comes after it. |
I remember some discussion about line comments in non-
... but that's just context for why we probably ended up with the current behaviour, I agree with revisiting this for |
imho, even the fall through comment isn't conceptually attached to either group, but to the boundary between. |
(The internal bug is b/21900318)
|
Fwiw, I'd say |
Placing single-line or block comments before case statements in an enhanced switch causes them to be indented. This seems to be in violation of 4.8.6.1 Block comment style.
Auto-formatted code:
The text was updated successfully, but these errors were encountered: