Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355174

Summary: [checker] Switch/case completeness
Product: [Tools] CDT Reporter: Tomasz Wesolowski <kosashi>
Component: cdt-codanAssignee: Marco Stornelli <marco.stornelli>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug, ibramlab, marco.stornelli, yevshif, zeratul976
Version: 8.0   
Target Milestone: 9.8.0   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/139378
https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=1065ee7688e641d2d9ad80f88bf1c6377b1fbd92
https://git.eclipse.org/r/142830
https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=3890eec7b714ef20d7f6410c32dcdabf7d49ff37
https://git.eclipse.org/r/143033
https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=90358f53746e2227005c82d5412a8fca1c83b9cd
Whiteboard:

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. ***