Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320786 - Assignment in condition checker fails when assignment expressions are preceded by comma operators
Summary: Assignment in condition checker fails when assignment expressions are precede...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 7.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 9.8.0   Edit
Assignee: Marco Stornelli CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-24 03:37 EDT by Meisam CLA
Modified: 2019-05-18 02:12 EDT (History)
3 users (show)

See Also:


Attachments
path to fix the bug + testcases (4.93 KB, patch)
2010-07-24 04:01 EDT, Meisam CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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