Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Additional Refactoring for Eclipse CDT

Is there any way to configure or are there any 3rd party plug-ins available for Eclipse CDT (any version) that provide a rich set of refactorings? My refactoring menu only provides the following in Eclipse Indigo CDT:

  • Rename
  • Extract Constant
  • Extract Local Variable
  • Extract Function
  • Toggle Function Definition
  • Hide Method...

I am looking for something with the richness of either the Java refactorings:

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/concepts/concept-refactoring.htm

Or something like what DevExpress Refactor Pro offers:

http://www.devexpress.com/Products/Visual_Studio_Add-in/Refactoring/

Note that the DevExpress plug-in is not compatible with Eclipse. I am more than willing to pay for a good 3rd party plug-in (it just needs to support C++ in Eclipse).

like image 573
PatrickV Avatar asked Jul 26 '11 15:07

PatrickV


People also ask

Does Eclipse support refactoring?

Compositional RefactoringThis Eclipse bundle provides new Quick Assist actions to support refactorings in a compositional paradigm. In the compositional paradigm, the tool automates small, predictable steps of a refactorin...

What is CDT in Eclipse?

Eclipse CDT™ C/C++ Development Tools The Eclipse CDT™ Project provides a fully functional C and C++ Integrated Development Environment based on the Eclipse platform.

How do I undo refactoring in Eclipse?

Normally you can achieve this by just pressing undo. If this is not possible for any reason Eclipse will warn you. In case of emergency: Revert by using your VCS :-) D.R.


2 Answers

Most of the refactoring features in Eclipse CDT are developed by people working and studying at the HSR Hochschule für Technik in Rapperswil Switzerland. There are students working on new refactorings and enhancements. After they had been reviewed they will be integrated into the official CDT.

For more information of the ongoing development get in contact with the leader of this projects Peter Sommerlad at the IFS.

Beside from this projects I think there is no other plugin/extension on the CDT platform.

like image 116
Michael Klenk Avatar answered Oct 22 '22 12:10

Michael Klenk


I miss the additional features, too, but I guess, they are currently not available as eclipse plugins: at least I did not found any, except for announcements. C++ is hard to parse.

like image 1
Olha Puzhay Avatar answered Oct 22 '22 12:10

Olha Puzhay