Community
Participate
Working Groups
We should warn users about fall-throughs in switch stateents, unless of course they have the magic $FALL-THROUGH$ comment. Preference should match Eclipse (for familiarity): pref page: 'switch' case fall-through error: Switch case may be entered by falling through previous case. If intended, add a new comment //$FALL-THROUGH$ on the line above
Pushed fix + tests to: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f4e5c19d8ddd5d640fca5a76f2cde55d9c15e4d4 Note that this rule does not do any form of flow analysis, but only checks for a returnable statement in the case statements block. An expected fall-through can be silenced using the //$FALLTHROUGH$ comment