Related work on C/C++ refactoring
Related work on C/C++ refactoring
Posted Jan 30, 2009 19:24 UTC (Fri) by tglek (guest, #56374)In reply to: Related work on C/C++ refactoring by padator
Parent article: Semantic patching with Coccinelle
Not to make this a contest, but some refactorings require writing a C++ tool, some already have such tools.
So for the rename it'd be a matter of running
./renamer ::alloca ::malloc on the files of interest
For the other change, who knows could be a few lines of C++ or could be a few thousand depending if the complexity of the attempted change(pork's changes can be as complex as the user desires due to having a fully elaborated AST).