Emacs CEDET设置怀疑

try*_*run 2 emacs cedet

我今天成功安装了cedet并且大部分都在工作; 感谢Alex Ott 对Cedet温柔介绍.

但是我遇到了问题

当我提供相对于我正在处理的当前文件的确切路径时,自动完成工作正常.

#include "../../opensource/inc/lldp_port.h"
void test_func()
{
    lldp_port port;
    port.blah //here auto-completion worked fine
}
Run Code Online (Sandbox Code Playgroud)

但是我不能一直指定完整的路径(我们在办公室吃了它,它为我们生成了makefile)

#include "lldp_port.h"
void test_func()
{
    lldp_port port;
    port. //here auto-completion does not work :(
}
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能解决这个问题?

Mic*_*zek 6

CEDET项目设置功能的一个参数是include-path.这里有一个例子在这里:

(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" )
     ) 
Run Code Online (Sandbox Code Playgroud)