Re: [CEDET-devel] c++ completion
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2007-12-18 12:36:01
|
Hi Jamie, The EDE project root is for your project, not a place to look for system headers. To setup where your headers are, you need to use `semantic-add-system-include'. This is described in the semantic.info file in the installation -> search optimization section. I noticed there wasn't a clear path to this node, so I added a new link to it from a chain starting at the CEDET manual. Good Luck Eric >>> "Jamie Macbeth" <ma...@cs...> seems to think that: >I followed the instructions in ede/ede-cpp-root.el, > >;; (ede-cpp-root-project "SOMENAME" :file "/dir/to/some/file") >;; >;; obvious, replace SOMENAME with whatever you want, and the filename >;; to an actual file at the root of your project. It might be a >;; Makefile, a README file. Whatever. It doesn't matter. It's just >;; a key to hang the rest of EDE off of. > >so, i added this to my .emacs > >(ede-cpp-root-project "CPPHEADERS" :file "/usr/include/c++/4.1.2/algorithm") > >To get access to the gnu libstdc++ headers. I try to run completion >on the following code: > >#include <map> > >void f() { >map mymap; >mymap.poi >} > >to complete "mymap.pointer." (or any other member of "map") I get no >completions. I know that map is a template, but I figure I should >have gotten something. > >I've also tried including "bits/stl_map.h" and I've tried explicitly >using the namespace: _GLIBCXX_STD::map. I remember that when I worked >on this previously, I had to explicitly change the c++ file matching >regexp, because the new headers don't have .h extensions. They have >names like "algorithm," "map," "stack" etc. > >The new analyzer seems to be working well on my c code, though. Thanks, Eric. > >Jamie > >------------------------------------------------------------------------- >SF.Net email is sponsored by: >Check out the new SourceForge.net Marketplace. >It's the best place to buy or sell services >for just about anything Open Source. >http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >_______________________________________________ >Cedet-devel mailing list >Ced...@li... >https://lists.sourceforge.net/lists/listinfo/cedet-devel > |