Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321069 - ASTWriter fails on IASTDeclarators with nested declarators
Summary: ASTWriter fails on IASTDeclarators with nested declarators
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0.1   Edit
Assignee: Elena Laskavaia CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-27 17:39 EDT by Tomasz Wesolowski CLA
Modified: 2011-01-06 03:23 EST (History)
2 users (show)

See Also:


Attachments
test case (1.01 KB, patch)
2010-07-27 17:39 EDT, Tomasz Wesolowski CLA
no flags Details | Diff
fix (937 bytes, patch)
2010-07-27 17:40 EDT, Tomasz Wesolowski CLA
elaskavaia.cdt: iplog+
Details | Diff
test case (928 bytes, patch)
2010-07-27 18:54 EDT, Tomasz Wesolowski CLA
elaskavaia.cdt: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Wesolowski CLA 2010-07-27 17:39:07 EDT
Some complex declarators are written improperly because simple IASTDeclarators' nested declarators are ignored (as opposed to IASTArrayDeclarators or IASTFunctionDeclarators).
Comment 1 Tomasz Wesolowski CLA 2010-07-27 17:39:28 EDT
Created attachment 175360 [details]
test case
Comment 2 Tomasz Wesolowski CLA 2010-07-27 17:40:31 EDT
Created attachment 175361 [details]
fix

one small line for code, one giant difference for tests
Comment 3 Tomasz Wesolowski CLA 2010-07-27 18:54:25 EDT
Created attachment 175362 [details]
test case

accidentally slipped bug 319044 test into the patch; fixed
Comment 4 Elena Laskavaia CLA 2010-08-01 19:52:12 EDT
I think it should go to 7.0.1
Comment 6 Elena Laskavaia CLA 2010-08-01 21:43:56 EDT
I think it should go to 7.0.1
Comment 7 Elena Laskavaia CLA 2010-08-01 21:44:30 EDT
patch applied to 7.0.1 and 8.0, thanks
Comment 8 CDT Genie CLA 2011-01-06 03:23:01 EST
*** cdt cvs genie on behalf of egraf ***
Bug 321069 - ASTWriter fails on IASTDeclarators with nested declarators
Test failed in 7.0

[*] ASTWriterDeclaratorTestSource.awts 1.4.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterDeclaratorTestSource.awts?root=Tools_Project&r1=1.4.2.1&r2=1.4.2.2