Re: [Bug Report] Semantic cannot jump if the include headers are inside a macro
"Eric M. Ludlam" <[email protected]>
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
On 07/07/2014 01:32 AM, Tu Do wrote: > For example: > > #ifdef USE_GTK > #include "gtkutil.h" > #ifdef HAVE_GTK3 > #include <X11/Xproto.h> > #endif > #endif > > You can examine the above code here: > http://repo.or.cz/w/emacs.git/blob/HEAD:/src/xterm.c#l91 > > Semantic cannot jump to the header #include <X11/Xproto.h>, but when put > it outside the #ifdef USE_GTK...#endif, Semantic can jump fine. Hi Tu, This is on purpose. Your project will need to setup preprocessor symbols for anything you "HAVE". I forget what EDE project you were using, but the preprocessor stuff has examples for the cpp-root, and you can just customize them for the generic project types. Once you fix the preprocessors, you need to force a reparse, and then everything should be good. You will discover this also affects symbol completion, as completion is currently ignoring those symbol source. Good Luck Eric ------------------------------------------------------------------------------