Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321972 - DeclarationGenerator discards basic type qualifiers
Summary: DeclarationGenerator discards basic type qualifiers
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Elena Laskavaia CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-06 07:42 EDT by Tomasz Wesolowski CLA
Modified: 2010-08-10 23:23 EDT (History)
1 user (show)

See Also:


Attachments
fix (25.39 KB, patch)
2010-08-06 07:42 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-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