I have been experimenting with cedet and semantic in my emacs c/c++ development setup and I am quite satisfied with it except for one small detail.
I use ede-cpp-root-project
to create a project and give the root directory of my project along with the directories where include files reside like below:
(ede-cpp-root-project "My Project"
:name "My Project"
:file "/path/to/rootdir/AFILE"
:include-path '(
"/include2"
"/include1"
)
)
This allows me to easily jump to the declarations of functions with semantic-ia-fast-jump
but it does not get me to the definitions of those functions. So it seems to only be dealing with header files and totally ignore source files. Even if I go on the declaration of the function and trigger semantic-analyze-proto-impl-toggle
it will tell me that no suitable implementation could be found.
If I manually open the source file where the implementation of the function is located, then and only then it is parsed by semantic and all the above mentioned functions work.
So my question is, short of manually opening all source files included underneath my project's root directory or manually including them in ede-cpp-root-project
via the :spp-files
argument is there any other way to force parsing of all source files under a directory?
Thanks!