Bug 456099 - Renaming a class should also rename related files
Summary: Renaming a class should also rename related files
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 8.6.0   Edit
Assignee: Sergey Prigogin CLA
QA Contact: Sergey Prigogin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-23 13:28 EST by Sergey Prigogin CLA
Modified: 2015-03-18 03:03 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Prigogin CLA 2014-12-23 13:28:52 EST
The Name Style preferences establish relations between the name of a class and the names of the files where the class is defined, implemented and tested. These relations should be preserved when the class is renamed.

For example, if class MyClass is defined in my_class.h, implemented in my_class.cpp and tested in my_class_test.cpp, renaming MyClass to YourClass should rename my_class.h to your_class.h, my_class.cpp to your_class.cpp, and my_class_test.cpp to your_class_test.cpp.
Comment 2 CDT Genie CLA 2014-12-24 01:00:10 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 456099 - Renaming a class should also rename related files

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=b74feb2c3d8968629185d3ee475657f4e395d381
Comment 3 CDT Genie CLA 2014-12-24 01:00:12 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 456099 - Renaming a class should also rename related files

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=c58da4cd0a300e7f63e91dadf78e3af2a58a91ee
Comment 4 CDT Genie CLA 2014-12-24 01:00:17 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 456099 - Renaming a class should also rename related files

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ebd0ea143a012178887ba19138016b1728d87605
Comment 5 CDT Genie CLA 2014-12-24 01:00:22 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 456099. Corrected include replacement in partner files.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=f11fcce2ee2e6c74e5d3a2c3517f9f1e5ad3e63a
Comment 6 CDT Genie CLA 2014-12-31 01:00:21 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 456099. Added change description.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=7eb2e1340a8cbff855f8993b8f7e5a74886fc4fb
Comment 7 CDT Genie CLA 2014-12-31 01:00:23 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 456099. More flexible file name matching algorithm.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=fb6cf9f4105b7054aa766c741aa670cd2ac00982
Comment 8 CDT Genie CLA 2014-12-31 01:00:25 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 456099. Moved a premature assertion.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=8758a144a7804b67d51407dbee8d86d9abfa7f47
Comment 9 CDT Genie CLA 2015-01-06 01:00:03 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 456099. Added a test for NameComposer.createByExample method.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=bcc3aad8409b9cf37c76c0c01b320243d9ff4d1d
Comment 10 Eclipse Genie CLA 2015-03-16 06:43:52 EDT
New Gerrit change created: https://git.eclipse.org/r/43920