Bug 353999 - Rename refactoring in a .H header file doesn't work correctly
Summary: Rename refactoring in a .H header file doesn't work correctly
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 09:11 EDT by Roman Pletka CLA
Modified: 2020-09-04 15:27 EDT (History)
2 users (show)

See Also:


Attachments
Preferences Screenshot (83.87 KB, image/png)
2013-04-11 12:29 EDT, Eli Hamburger CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.