Re: [cedet-semantic] Recursive includes
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2008-07-08 16:42:29
|
Hi, For starters, you can use: M-x semantic-decoration-all-include-summary RET to get a summary of your includes, and what is in or out of a search. If all the includes you expect are there, you can use: M-x semantic-analyze-debug-assist RET to get some ideas on what is missing for the analyze. It may just be failing to parse the local context. In either case, this info will make it easier for me to debug what is going on. Eric >>> "Antoine Levitt" <sm...@gm...> seems to think that: >Hi, >I'm trying to make semantic understand my project. >Here's my .emacs : >(setq-mode-local c-mode > semanticdb-find-default-throttle > '(project unloaded system recursive)) > >(setq semantic-c-dependency-system-include-path '("/usr/include" > "/home/smeuuh/eda/eda" > "/usr/local/include/freesg" > "/usr/local/include/agar" > "/usr/include/SDL" > "/usr/local/include")) > >Note that I use setq semantic-c-dependency-system-include-path, because the >prescribed way, semantic-add-system-include, didn't work at all for me >(includes not found at all) >So now it works more or less : all includes can be found (ie, when I click >on the include part of ECB, it finds the file). However, autocompletion >doesn't always. >For instance, in /home/smeuuh/eda/eda/generic/capacitor.c, I have a >reference to a DC structure, which is declared in >/home/smeuuh/eda/eda/core/dc.h >The chain of include is : >in /home/smeuuh/eda/eda/generic/capacitor.c, #include <eda.h> >in /home/smeuuh/eda/eda/eda.h : #include <core/circuit.h> >in /home/smeuuh/eda/eda/core/circuit.h : #include <core/dc.h> > >However, when I try to complete dc->, it tells me "cannot find type for dc" >What did I do wrong ? > -- Eric Ludlam: er...@si... Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net |