Re[1]: [cedet-semantic] Intellisense across files
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2004-10-14 11:04:03
|
>>> "Roch Gadsdon" <ro...@ba...> seems to think that: >Hello, > >I've been experimenting with CEDET and love many of its features, but I >cannot do one thing... > >Is it possible to set up the Intellisense-esque completion to work for >objects and structures not in the current file. I expect this will impose a >significant performance penalty, but with the code I work with it is very >rare for the object/structure declaration to be in the same file as the >implementation. > >Sorry if this is covered elsewhere, but I have spent a long time routing >through the available options, around the internet and in the Intellisense >FAQ page. [ ... ] Hi, The feature you are looking for can work with the current version of semantic with some caveats. Mainly, all the "smart" stuff tries to be, well, smart, and only search headers. This boosts speed over searching through the tags in all files that might be in your project. Unfortunately, it only scans down one level of includes. Thus if you include "super-header.h", and that includes "header-i-use.h", then you will be out of luck. You can use `semanticdb-find-test-translate-path' to see if the right things are on your path. (I forgot to include it in other emails I sent today.) As Bruce pointed out, there is commented out code to re-enable this, but it is tricky. I suspect there is a clever way to solve this, but I just haven't been clever enough lately. Eric ------------------- ;;; Perform interactive tests on the path/search mechanisms. ;; (defun semanticdb-find-test-translate-path (&optional arg) "Call and output results of `semanticdb-find-translate-path'" (interactive "P") (let ((p (semanticdb-find-translate-path nil arg))) ;; Output the result (with-output-to-temp-buffer "*Translated Path*" (while p (princ (semanticdb-printable-name (car p))) (princ "\n") (setq p (cdr p))) ) (message "%d paths found." (length p)) )) -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |