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

Bug 320786

Summary: Assignment in condition checker fails when assignment expressions are preceded by comma operators
Product: [Tools] CDT Reporter: Meisam <meisam.fathi>
Component: cdt-codanAssignee: Marco Stornelli <marco.stornelli>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug, marco.stornelli, zeratul976
Version: 7.0   
Target Milestone: 9.8.0   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/141614
https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ec6f9d204dc2ba6359276467cc82bfba480e07f8
Whiteboard:
Attachments:
Description Flags
path to fix the bug + testcases none

Description Meisam CLA 2010-07-24 03:37:12 EDT
test case:
while (error_code = read_from_file(), error_code = NO_ERROR) { // AssignmentInConditionChecker must warn here
       // ...
}
Comment 1 Meisam CLA 2010-07-24 04:01:10 EDT
Created attachment 175127 [details]
path to fix the bug + testcases
Comment 2 Nathan Ridge CLA 2013-08-24 18:22:56 EDT
(In reply to comment #1)
> Created attachment 175127 [details]
> path to fix the bug + testcases

Thanks for writing a patch! Could you please submit it to Gerrit? See http://wiki.eclipse.org/CDT/git#Using_Gerrit_for_CDT
Comment 3 Eclipse Genie CLA 2019-05-05 06:26:07 EDT
New Gerrit change created: https://git.eclipse.org/r/141614