Re: What Refactorings Would you Like for C
- From: George Peter Staplin <georgepsSPAMMENOT@xxxxxxxxxxxx>
- Date: Sun, 30 Mar 2008 00:47:08 +0000 (UTC)
pingu219 wrote:
Hi I'm currently a student working on an honours-level project to
create a visual tool which will be able to represent C project files
and code as well as allow the user to perform high and certain low-
level refactorings.
At the moment I'm compiling a list of refactorings which are
applicable to C that people who program alot with structured
programming languages find useful.
So far I've got (some I got from someone else's post on another google
group):
- Rename variable/function
- Move variable/function
- Reduce scope of variable
- Publish function (make it public, put a declaration in the .h file)
- Perish function (make it static, remove it from the .h file)
- Add/Remove parameter from function
- Reorder function arguments
- Remove unnecessary includes
Cheers
Isn't that more like restructuring than refactoring?
I wrote something intended to evolve to do some of what you suggest.
It's here: http://wiki.tcl.tk/11180 Fed Builder is portable too, thanks
to Tcl/Tk.
It saves code in a database and generates C code from that database.
Feel free to use the code (it's BSD licensed) as long as you give me
credit.
Some of those features you mention sound very useful.
George
.
- Follow-Ups:
- Re: What Refactorings Would you Like for C
- From: pingu219
- Re: What Refactorings Would you Like for C
- References:
- What Refactorings Would you Like for C
- From: pingu219
- What Refactorings Would you Like for C
- Prev by Date: Re: What Refactorings Would you Like for C
- Next by Date: Re: Drawing graphs
- Previous by thread: Re: What Refactorings Would you Like for C
- Next by thread: Re: What Refactorings Would you Like for C
- Index(es):
Relevant Pages
|