What is the state of C ++ refactoring support in Eclipse?

Is this a state in which it is really useful and can do more than rename classes?

+20
c ++ eclipse refactoring
Sep 25 '08 at 1:08
source share
5 answers

CDT (C / C ++ development tools - eclipse project) 5.0 has tons of new refactoring

* Declare Method * Extract Baseclass * Extract Constant * Extract Method * Extract Subclass * Hide Method * Implement Method * Move Field / Method * Replace Number * Separate Class * Generate Getters and Setters 

There is a refactoring CDT wiki

+22
Sep 25 '08 at 1:12
source share

Numerous efforts have been made to provide refactoring tools for C ++, most of them failed quite early, because creating such tools requires full ability to process the C ++ source code, that is, you need a working and complete C ++ compiler in the first a place for the implementation of even the most basic forms of converting automatic sources to source.

Fortunately, with the introduction of gcc plugins, it finally becomes predictable that related efforts may actually be able to use an existing C ++ compiler for this purpose, rather than resorting to their own C ++ compiler implementations.

For a more detailed discussion, you can check this out .

Currently, the most promising candidate for providing widely automated support for C ++ refactoring is, of course, the Mozilla pork project, with its related related project, Dehydra .

+2
May 20 '09 at 8:29
source share

Some C ++ refactorings that are supported, such as Ref ++, do not have to fully understand the C ++ syntax. For example, the pull up method, the push down method, etc. Pretty simple. For some reason, such refactoring is not implemented in CDT refactoring.

+1
Dec 10 2018-10-10
source share

Yes, and most of them do not work if the code is too complicated. Things like moving a method, renaming, etc. Sometimes problems arise.

0
Sep 29 '08 at 15:12
source share

C ++ is a very tough language to support refactoring. This is because langauge is very complex and difficult to parse, but mainly because of the preprocessor.

The preprocessor is the main reason why the C / C ++ IDE lags behind other languages.

0
May 7, '09 at 21:07
source share



All Articles