>>> "Dave Milter" <davemilter@...> seems to think that:
>>Try getting a new version from CVS, as that
>>function does exist for me in my test anonymous CVS sync from this
>>morning.
>
>I tried, "grep" through sources show me semanticdb-typecache-add-dependant,
>but for some reason semantic-calculate-scope can not find it,
>I add (require 'semanticdb-typecache) to semantic-scope.el, and things
>start work for me.
I'll add an autoload cookie to it so this won't happen again.
>>#include <d1/mod2.hpp>
>>
>>which is system-include syntax. I switched it to this:
>>
>>#include "d1/mod2.hpp"
>>
>>which is "in my project" syntax, and then completion works.
>>
>>I was wrong about the include path of "/". That was correct, and I
>>was clearly confused about that.
>
>I replace <> with quotes and this not helps
>semanticdb-find-test-translate-path:
>
>*#<semanticdb-table mod2.cpp (3 tags DIRTY)>
> ] Name: mod2.cpp
> ] Class: #'semanticdb-table
> ] parent-db #<semanticdb-project-database-file d1/ (1 tables DIRTY)>
> ] :major-mode #'c++-mode
> ] :tags #<TAG LIST: 3 entries>
> ] dirty 't
> ] db-refs 'nil
> ] index #<semanticdb-find-search-index #<semanticdb-table mod2.cpp> index>
> ] cache #<list o' stuff: 1 entries>
> ] :file mod2.cpp
> ] :pointmax 76
> ] :unmatched-syntax #unbound
>
>
>One things what I should note, that
>if I use semantic-add-system-include to add "foo" directory,
>then call "C-u M-x bovinate "
>(you remember that I have "foo/d1" with "foo/d1/mod2.[ch]pp")
>after that cedet can find definition of structure from mod2.hpp,
>and even if I change "<>" to quotes,
>even than semanticdb can find suitable definition.
CPP supports the difference between system and local includes, but
most languages do not. Thus if an include is marked 'system',
semantic takes a shortcut of not searching the project to speed things
up. For non-system marked includes, since some langauges only support
this form, semantic will look everywhere.
It is good that you found a second solution.
It might be possible to make the system include path project local
with `ede-make-project-local-variable' and `ede-set' on your cpp-root
ede project, though I have not tried using this feature in a long time.
Eric
--
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net
|