views:

693

answers:

6

What tools are there that supports refactoring C code (renaming variables, extracting methods, finding method references, ...)

Preferably for a Linux environment, but Windows tools are ok too. If there's something available for emacs, even better!

+3  A: 

This question might be useful to you: http://stackoverflow.com/questions/673554/how-can-i-refactor-c-source-code-using-emacs

kdt
+4  A: 

Netbeans 6.7 and above have reasonably decent basic C (and possibly C++, but haven't tried it) refactoring. I use it when doing the JNI part of one of my projects, and stuff like renaming vars, macros, functions, finding usages of a function all work well. Definitely worth a try, to see if it does the rest of what you want, if you're not wedded to emacs yet.

For emacs, there is xrefactory but I haven't tried it myself.

wmeissner
A: 

Tools for refactoring? I always find the human mind, a good cut & paste system and find & replace sorts me out when refactoring :)

Goz
That's what I've been doing for the last 15 years, but I wanted to know if there were any good tools that could do it for me.
Puppe
I've heard that there aren't any tools to do thinking yet.
Michael Foukarakis
A: 

Slickedit is good at refactoring.

itsaluckyday
A: 

Maybe this previous question could help, at least in speeding up the compile-run cycle. I am especially thinking about using tcc as a script language. It actually compiles, but so fast you won't notice. Then you can write C as scripts and just run them.

Amigable Clark Kant
A: 

I use Eclipse with CDT as an IDE and find that it works well for refactoring and searching code.

DarthNoodles