User forums > General (but related to Code::Blocks)
Idea
phlox81:
Once you start which such a feature, you never find an end :lol:
For a similiar problem i startet to write my own Code Generator a few years ago,
first only planned to add set/get functions, to day its almost
a complete Classwizard (C++, java and php4).
mandrav:
--- Quote from: phlox81 on September 21, 2005, 08:08:28 pm ---Once you start which such a feature, you never find an end :lol:
For a similiar problem i startet to write my own Code Generator a few years ago,
first only planned to add set/get functions, to day its almost
a complete Classwizard (C++, java and php4).
--- End quote ---
This sounds as a nice base for a plugin ;)
orefa:
Usually I copy the implementation file and then delete the function bodies to produce the header. The task is similar to folding the body of the code for each function, only it deletes it completely. I don't know how folding is implemented or if it would lend itself to an adaptation of this kind.
A pattern-matching approach could be to search for a '{' and its matching '}' to delete all that and replace it with a semi-colon. It leaves a bit of redundant data to clean up, but a good part of the work is done.
And yes, this looks like a plug-in candidate.
mandrav:
The code to get a list of functions in the current file, is already there (Ctrl-Alt-G uses it). It's just a matter of making it an option...
Please submit a feature request for it, or I 'll probably forget it. We 're currently busy preparing RC2.
phlox81:
--- Quote from: mandrav on September 21, 2005, 08:21:57 pm ---
--- Quote from: phlox81 on September 21, 2005, 08:08:28 pm ---Once you start which such a feature, you never find an end :lol:
For a similiar problem i startet to write my own Code Generator a few years ago,
first only planned to add set/get functions, to day its almost
a complete Classwizard (C++, java and php4).
--- End quote ---
This sounds as a nice base for a plugin ;)
--- End quote ---
If I had the time for it %)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version