[Bug 79406] switching between header and implemntation in C/C++
F Fracassi
f.fracassi at gmx.net
Sun Apr 11 14:05:05 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=79406
------- Additional Comments From f.fracassi gmx net 2004-04-11 14:04 -------
I don't think it would be impossible, it's just not trivial to implement. An easy solution would be to store the coresponding header/implementation filenames (or a key thereof) in a map. The user would probably have to help recognizing the pairs in not so trivial generic cases (i.e. when Kdevelop didn't create the files itself).
The greater Problem with such an aproach is that it would itroduce aditional data which needs to be saved with the project, a thing which KDevelop has avoided so far (and rightly so, for various valid reasons).
In a long term view such an additional storage should be thought about, since there are several features which require or could at least make use of such a thing, which would greatly enhance KDevelop.
I'm thinking about better editing aids, and refactoring support. Examples that spring to mind:
- improvement of the "F2-feature" when editing the signature of a method in the header, the corresponding implementation gets changed upon demand.
- changing the name of a local variable/method changes all usages to.
- changing an ABC changes all depending classes, too.
Much of this data could probably be also aquired with the help of the class parser, so no additional storage would be needed.
What I want to say with this slightly overstreched comment is that a wish to make the KDevelop editing features smarter would be a great benefit. They could lay the foundation for much greater features in the long run (think round trip engenieering with umbrello for example), and thus shouldn't be disregarded
More information about the KDevelop-devel
mailing list