KDevelop ctags symbol browsing on external dependencies (solution)

Markus Kuehni markus.kuehni at trilab.ch
Mon Nov 5 15:53:23 UTC 2001


Hi

the ctags symbol browsing solution currently only supports project-internal
symbols. Symbols included from external dependencies (headers) are not
catalogued.

The attached patch changes this by directing ctags to also scan #include-d
files. Using this technique you can now fully browse symbols (including Qt,
KDE, etc.) like in M$ Visual Studio.

In my configuration this only about doubles the ctag-ging time and it works
nicely even on large projects (3.1s for kdevelop.kdevprj).

External symbol scanning is done by evaluating the <source-dir>/.deps/*.P
files generated (and updated) by the make process. The file list is
generated using simple shell command expansion.

The solution is not perfect:
- does only work, if the source directories are first-level subdirectories
of the project directory
- does emit ugly grep error if .deps do not exist (suppress stderr or show
dialog?)
- may not be portable if grep -e is not or if command-line expansions has
severe limits on other systems
- user may be confused when system headers are opened in editor without full
path in caption (or visibly read-only)
- no config option to disable this

Wishful thinking:
...if only ctags browsing wasn't a dialog but embedded in an output pane...

-- Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ckdevelop_noslot.cpp.patch
Type: application/octet-stream
Size: 1194 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20011105/12b4b90a/attachment.obj>


More information about the KDevelop-devel mailing list