| Summary: | Rename refactoring does not work on files with non-default content type | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Eugene Ostroukhov <eostroukhov> | ||||
| Component: | cdt-refactoring | Assignee: | 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: |
|
||||||
This looks sensible. Can you make a Gerrit changeset for this patch? Pushed to Gerrit - https://git.eclipse.org/r/#/c/12112/ |
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.