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

Bug 360030

Summary: Rename refactoring does not work on files with non-default content type
Product: [Tools] CDT Reporter: Eugene Ostroukhov <eostroukhov>
Component: cdt-refactoringAssignee: Project Inbox <cdt-refactoring-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, Jesse.Weinstein, malaperle, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Suggested fix none

Description Eugene Ostroukhov CLA 2011-10-05 16:05:16 EDT
Created attachment 204632 [details]
Suggested fix

Our source files have custom content type that is derived from CDT C++ content type. Refactoring does not do anything when I run it on our files.

This bug is caused by CRefactory not including extensions of the custom content types when looking for references. Note that it properly goes up content type hierarchy but at the end it adds extensions from the parent content type instead of child.

Attached is a suggested fix.
Comment 1 Jesse Weinstein CLA 2013-04-22 18:24:21 EDT
This looks sensible. Can you make a Gerrit changeset for this patch?
Comment 2 Eugene Ostroukhov CLA 2013-04-22 18:53:42 EDT
Pushed to Gerrit - https://git.eclipse.org/r/#/c/12112/