I usually develop using emacs in a linux environment (ubuntu) because I love the editor. I've been also using eclipse from time to time but I find it slow.
Since I want IDE-like features, I tried to setup cedet and it seems to be sort of doing the work.
std::vector
in gcc has std::vector::size
in its base class and it cannot find it.myvector.
" it will give me completions like size_type
.auto
from c++11, it seems not to work.My configuration does not give any error and is based in alexott cedet config.
My questions are:
vector.
" giving things like "size_type
".I tried to use both bundled ubuntu version and last version from bzr repository. CEDET seems an extremely useful tool, but I wonder if it needs more work.
Thanks in advance.
Instead of relying on CEDET for completion, you might want to consider an alternative completion provider in Emacs.
Auto-complete-clang and auto-complete-clang-async both work with clang to get completions and with the auto-complete package to display them. Company-clang is similar, but uses the company package to display completions.
There is another minor mode for C, C++, and ObjC called irony that uses clang to get completions and can use multiple front-ends to display completions. This might have the best documentation for getting it set up.
All of these are available on Marmalade for use with the package manager in Emacs 24.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With