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

Bug 353999

Summary: Rename refactoring in a .H header file doesn't work correctly
Product: [Tools] CDT Reporter: Roman Pletka <roman>
Component: cdt-refactoringAssignee: Project Inbox <cdt-refactoring-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Preferences Screenshot none

Description Roman Pletka CLA 2011-08-05 09:11:36 EDT
Build Identifier: 20110615-0604

Rename refactoring in a header file ending with a .H (capital H) doesn't work correctly. After <Ctrl + Shift + R> one can edit the name correctly, but pressing <Enter> does not accept the change. Pressing <Esc> however does.
This happens even though I added *.H as a new file type in C/C++ File type.

Reproducible: Always

Steps to Reproduce:
1. Create new header file foobar.H with following content:

struct foo {
    int value;
};

struct bar {
    struct foo f;
};

2. Select foo and press <Ctrl + Shift + R> to rename the structure.
3. After changing the name, pressing <Enter> undoes the change. Pressing <Esc> however changes the structure to the new name.
Comment 1 Eli Hamburger CLA 2013-04-11 12:29:10 EDT
Created attachment 229632 [details]
Preferences Screenshot

The same bugs exists in Juno (SR2 - CDT 8.2) on Linux.  

Could the attached screenshot be related?  It shows two conflicting entries for *.h and will not allow me to add *.H as a C++ Header File.