What C ++ refactoring do you use in practice?

I am going to create a comparison table of existing automatic C ++ refactoring tools, as well as explore the possibility of creating such a tool, free and open source.

My question is: what refactoring do you really use in your daily work? There are obvious things like renaming a variable / class / method, but is there anything specific for C ++, such as dealing with templates, STLs, copy constructors, initializers, etc. Etc.?

I am interested in building a realistic picture of all those small problems that a C ++ developer faces every day in his own encoding, and which can be automated, at least theoretically. I speak with my colleagues, but this is probably not enough.

Thanks in advance.

+5
source share
6 answers

As you said, there are obvious things:

  • renaming is
  • changing the signature of a function is different (especially since the function is almost necessarily duplicated: declaration in the header and implementation in the source)
  • rename / move file (update include directives)

, , , . , , , ( , doxygen). , , , , , , ...

:

  • , .
  • : ( ) / .
  • : "" , , (/ ), ( ) , ( ). , , /, , .

...

+1

, C++ - . , IDE, . , , . , . , .

Visual Assist VS - , .

+2

Martin Fowler : . , , GoF Design Patterns, .

Rename Extract Function, .

+1

++, : Ditch .

+1

, , , , . .

, , , ; , .

+1

All Articles