emacs的:有一个语义跳转到声明(使用semantic.el)? [英] emacs: is there a semantic-jump-to-declaration (using semantic.el)?

查看:273
本文介绍了emacs的:有一个语义跳转到声明(使用semantic.el)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假如我编辑含有C code进行缓冲。

Suppose I am editing a buffer containing C code.

我已经开始语义语义负荷enable- code-佣工

我放在一个函数名点。如果我再引用参议员跳我可以跳转到该FN首先声明的地方,那个模块中。如果有模块中的extern声明,然后将其转到该EXTERN语句。有时?有时候,这是行不通的,虽然。

I have point placed on the name of a function . If I then invoke senator-jump I can jump to the place where that fn is first declared, in that module. If there is an extern declaration in that module, then it goes to that extern statement. Sometimes? Sometimes it doesn't work, though.

还有语义-IA-快跳,它跳转到第一个声明中,也。我不知道该从FN 的区别参议员跳。这一次实际工作的时候,不过,在本地缓存定义的功能。

There is also semantic-ia-fast-jump, which jumps to the first declaration, also. I'm not sure how this fn differs from senator-jump. This one actually works all the time, though, for functions defined in the local buffer.

如果我想跳的功能,是什么一个extern?是否有可能使用参议员跳转到FN的定义,如果定义在一个单独的模块?是不是EDE应该做这样的事情?

What if it the function I want to jump to, is an extern? Is it possible to use senator to jump to the definition of the fn, if that definition resides in a separate module? Isn't EDE supposed to do something like this?

感谢。

推荐答案

看向语义-IA-快速跳转功能,语义-IA定义。对于C&放大器; C ++中它也是不错的主意来自GNU全球gtags生成数据库 - CEDET有支持它

Look to the semantic-ia-fast-jump function, defined in semantic-ia. For C & C++ it's also good idea to generate database with gtags from GNU Global - CEDET has support for it.

P.S。我只是检查 - 从我的源跳楼的std ::字符串的声明在/ usr / include中/....

P.S. I just checked - it jumped from my source to declaration of std::string in /usr/include/....

这篇关于emacs的:有一个语义跳转到声明(使用semantic.el)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆