Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355174 - [checker] Switch/case completeness
Summary: [checker] Switch/case completeness
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 9.8.0   Edit
Assignee: Marco Stornelli CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
: 451227 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-18 18:36 EDT by Tomasz Wesolowski CLA
Modified: 2020-02-02 02:21 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Wesolowski CLA 2011-08-18 18:36:05 EDT
Code style:
If switching over an enum and there's no "default", make sure all variants are handled
Possibly also: If switching over something else, make sure there's a "default", even if just 'default: break'
Comment 1 Eclipse Genie CLA 2019-03-24 07:21:54 EDT
New Gerrit change created: https://git.eclipse.org/r/139378
Comment 3 Eclipse Genie CLA 2019-05-26 14:38:55 EDT
New Gerrit change created: https://git.eclipse.org/r/142830
Comment 5 Eclipse Genie CLA 2019-05-29 13:04:02 EDT
New Gerrit change created: https://git.eclipse.org/r/143033
Comment 7 Marco Stornelli CLA 2020-02-02 02:21:04 EST
*** Bug 451227 has been marked as a duplicate of this bug. ***