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

Bug 321972

Summary: DeclarationGenerator discards basic type qualifiers
Product: [Tools] CDT Reporter: Tomasz Wesolowski <kosashi>
Component: cdt-coreAssignee: Elena Laskavaia <elaskavaia.cdt>
Status: RESOLVED FIXED QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: elaskavaia.cdt
Version: 7.0.1   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
fix elaskavaia.cdt: iplog+

Description Tomasz Wesolowski CLA 2010-08-06 07:42:20 EDT
Reproduce: 

unsigned short a;
a;

Select 'a' in the second statement and run Refactor->Extract local variable - qualifiers will get discarded.

Affects other refactorings and codan fixes too
Comment 1 Tomasz Wesolowski CLA 2010-08-06 07:42:49 EDT
Created attachment 176022 [details]
fix
Comment 2 Elena Laskavaia CLA 2010-08-10 22:28:34 EDT
Did you replace the whole file? Can you generate patch containing only differences?
Comment 3 Elena Laskavaia CLA 2010-08-10 22:31:48 EDT
applied, I can see the diff after I apply it.
fixed on head, thanks
Comment 4 CDT Genie CLA 2010-08-10 23:23:03 EDT
*** cdt cvs genie on behalf of elaskavaia ***
Bug 321972 - DeclarationGenerator discards basic type qualifiers ( Tomasz Wesolowski)

[*] DeclarationGeneratorImpl.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/DeclarationGeneratorImpl.java?root=Tools_Project&r1=1.2&r2=1.3