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

Bug 335901

Summary: Suspicious semicolon is not reported in "else" clause
Product: [Tools] CDT Reporter: Andrew Gvozdev <angvoz.dev>
Component: cdt-codanAssignee: Elena Laskavaia <elaskavaia.cdt>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:

Description Andrew Gvozdev CLA 2011-01-31 15:48:49 EST
Codan thinks that an empty statement is suspicious in "then" part of "if" but in "else" clause it's OK. Consider:

	if (false)
		; // only this one is reported
	else
		;
Comment 1 Elena Laskavaia CLA 2011-05-01 21:32:04 EDT
implemented, it is a preference in this checker - not enabled by default