我今天成功地安装了cedet,并让它大部分正常工作;这要归功于Alex Ott的Gentle Introduction to Cedet。
然而,我有一个问题
当我给出我正在处理的当前文件的确切路径时,自动补全就可以正常工作了。
#include "../../opensource/inc/lldp_port.h"
void test_func()
{
lldp_port port;
port.blah //here auto-completion worked fine
}然而,我不能一直指定完整路径(我们在office上有eclipse,它会为我们生成makefile)。
#include "lldp_port.h"
void test_func()
{
lldp_port port;
port. //here auto-completion does not work :(
}我该怎么解决这个问题呢?
发布于 2010-05-06 10:19:03
CEDET的项目设置函数的一个参数是include-path。这里有一个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" )
) https://stackoverflow.com/questions/2778029
复制相似问题