Emacs CEDET Customization Task
I successfully installed cedet today and got most of the work; thanks to Alex Ott A gentle introduction to Cedet .
However I have a problem
When I give the exact path relative to the current file I'm working on, then the autocomplete works fine.
#include "../../opensource/inc/lldp_port.h"
void test_func()
{
lldp_port port;
port.blah //here auto-completion worked fine
}
However, I cannot give the full path all the time (we have eclipse in the office and it generates makefiles for us)
#include "lldp_port.h"
void test_func()
{
lldp_port port;
port. //here auto-completion does not work :(
}
What should I do to fix this problem?
+2
a source to share
1 answer
One of the arguments to the CEDET project customization function is include-path
. Here's an example here :
(ede-cpp-root-project "NAME" :file "FILENAME"
:include-path '( "/include" "../include" "/c/include" )
:system-include-path '( "/usr/include/c++/3.2.2/" )
:spp-table '( ("MOOSE" . "")
("CONST" . "const") )
:spp-files '( "include/config.h" )
)
+6
a source to share