Update for Switch Header/Implementation (w/ patch)
david.nolden.kdevelop at art-master.de
Tue Feb 13 11:35:30 UTC 2007
Am Montag, 12. Februar 2007 15:42 schrieb Kris Wong:
> This patch extends the Switch Header/Implementation functionality (and
> therefore the Jump to Decl/Def functionality). Currently this
> functionality requires that the source and header files have the same
> file name, which is not always the case. This patch removes this
> For those who are curious, this will first attempt the switch using a
> file with the same name, as it does currently (for obvious performance
> reasons). If this does not work it will iterate through the source or
> headers files in the project looking for a declaration/definition that
> The patch was created against revision 632847.
> Kris Wong
Hmm this sound kinda dangerous for projects with thousands of files!
The globalNamespace()-node of the code-model contains all the entries of all
files in the project combined, in the same Format a FileDom does. It would be
much better trying to find the match there(the algorithm shouldn't differ too
much, but could be a lot faster).
For example a split-view with automatic synchronization might get unusable by
this patch, because automatic synchronization is automatically performed
while typing, and with a big project this might result in a significant hang
every half second.
More information about the KDevelop-devel