After dealing with some issues via email, and some C++ code at work,
I devised a way to automatically query GCC to setup some of the more
confusing aspects of getting the Semantic C parser working.
If you get the latest version from CVS, along with a wide range of
various bug fixes from the past couple weeks, you will find
`semantic-gcc.el'. It isn't in the build harness yet (I'll get
there), but you could add this to your .emacs file:
where "gcc" is optional, or could specify your favorite gcc command.
On linux (where I tested) it will setup include paths and core macros
so all your system and STL headers will get parsed correctly. Huzzah!
I haven't been able to give it wide testing, so if you try it, be
sure to run the config, load up a c++ file, and do:
C-h v semantic-gcc-setup-data RET
- Does the value here make sense?
M-x semantic-decoration-all-include-summary RET
- Has it setup your include paths correctly for c++?
- Has it added many mysterious macros into your macro table?
Since it is parsing the output of GCC, there are likely some hiccups.
Unusual output strings, or patches for those strings would be welcome.
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net