Community
Participate
Working Groups
Some complex declarators are written improperly because simple IASTDeclarators' nested declarators are ignored (as opposed to IASTArrayDeclarators or IASTFunctionDeclarators).
Created attachment 175360 [details] test case
Created attachment 175361 [details] fix one small line for code, one giant difference for tests
Created attachment 175362 [details] test case accidentally slipped bug 319044 test into the patch; fixed
I think it should go to 7.0.1
*** cdt cvs genie on behalf of elaskavaia *** Bug 321069 ASTWriter fails on IASTDeclarators with nested declarators, patch from Tomasz Wesolowski [*] DeclaratorWriter.java 1.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/DeclaratorWriter.java?root=Tools_Project&r1=1.7&r2=1.8 [*] ASTWriterDeclaratorTestSource.awts 1.6 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.5&r2=1.6 [*] DeclaratorWriter.java 1.6.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/DeclaratorWriter.java?root=Tools_Project&r1=1.6&r2=1.6.2.1 [*] ASTWriterDeclaratorTestSource.awts 1.4.2.1 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&r2=1.4.2.1
patch applied to 7.0.1 and 8.0, thanks
*** 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