[CEDET-devel] c++ completion
Brought to you by:
zappo
From: Jamie M. <ma...@cs...> - 2007-12-18 11:39:13
|
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 |