I've recently switched over from Eclipse CDT to Spacemacs with the C++ layer as my development environment.
So far... awesome! However, one of the things I miss about Eclipse is its indexer.
At the moment I'm using GNU Global with the gtags layer. The problem with gtags is that it's a tagging system, not an indexer.
Example:
Searching for references for a function called set
in class Field
returns 165 references in my codebase, only one of which is actually a reference to Field::set
Searching for references to set
in CDT returns 1 result.
Is there a better indexing solution I can use in emacs?
Searching online I found this page where 3 clang based indexers are listed.
Questions:
- Will any of these offer a better indexing experience?
- Any suggestion on which to use?
- Is there a better alternative not listed?
Note:
I've also been using clang-complete
for code completion, but have found it is very slow. Unusably slow. (I am not the only one to experience this) If any indexing solution suffered from the same problem, it wouldn't work.