>>> snija <snija0@...> seems to think that:
>Hi, how can semantic (in cedet 1.04) complete c++ member variables and
>function from stl and boost headers?
>
Hi,
I've done some experiments here to try and understand. My original
answer was to use `semanticdb-create-ebrowse-database', but what I
found is that on linux, things like <string> is just full of #include
files, which, sadly, EBROWSE doesn't pull in for me, so that derailed
that idea.
It is likely you can update the include path, like this:
(semantic-add-system-include "/usr/include/c++/3.2.2/" 'c++-mode)
I also found a bug in semanticdb-ebrowse.el miss-setting the search
throttle, so you will need this:
(setq-mode-local c++-mode
semanticdb-find-default-throttle
'(project unloaded system recursive))
Once you do that, the first time will cause lots of header files to
be parsed.
I still didn't get completion for std::string though, as string is a
basic_string, and basic string has a couple layers to it which the
analyzer can't quite get through yet. It's a good example though
which I'll look into.
Eric
--
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org
|