Expanded support for functions in navigation menus (w/ patch)

Kris Wong wongk at seapine.com
Thu Jan 18 14:07:55 UTC 2007


Here is the second feature.  This is the first time I've submitted this
one.

This changes the "Navigate by" context menu a bit when right clicking on
a function.  Instead of a single "Jump to [function signature]" entry in
the context menu, there are instead 2 entries, "Jump to declaration" and
"Jump to definition".  Jump to declaration behaves as before.  Jump to
definition uses the declaration info and reuses most of the Switch
Header/Implementation code to jump to the function definition.  If the
definition can't be found in the code model, it jumps to the declaration
instead.  The weakness being if the declaration is in the file
"myheader.h" and the definition is in the file "somesource.cpp", this
won't work (of course neither does Switch Header/Implementation).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp_jump_to_definition.patch
Type: application/octet-stream
Size: 15305 bytes
Desc: cpp_jump_to_definition.patch
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20070118/e999557d/attachment.obj>


More information about the KDevelop-devel mailing list