智能参考搜索的C ++ IDE [英] C++ IDE for Linux with smart reference searching

查看:121
本文介绍了智能参考搜索的C ++ IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个IDE支持C ++与REALLY智能搜索引用? 'reference'是指在整个项目或工作空间中使用类(或其成员),变量,函数。



有很多IDE提供它。其中一些似乎只是搜索具有相同名称的文本提供了大量的东西,其他人更聪明,并检查上下文(类边界,命名空间),但不够准确。


$ b $

  class C1 $我已经尝试过的最好的是Visual SlickEdit,但仍然有更多的希望。 b $ b {
int foo;
};
class C2
{
int foo;
};

例如,在这种情况下搜索 C1 :: foo 引用我不想让 C2 :: foo 也显示。



有一个IDE会很聪明吗?



Edit2



到目前为止的回答。



我试过 Eclipse ,引用搜索看起来比较好,但它需要20分钟索引中型项目和4时间5它用完内存和崩溃。



我尝试过 KDevelop3 。 ,但是这个问题中提到的功能不是很高级 - 似乎只是非常先进的 grep 基于文本搜索。



Edit4



KDevelop4 - 我试图使其工作,但最新的测试版本是不可用的自定义makefile

编辑5

我很惊讶,但 QT创作者在我的测试中表现良好。它似乎没有创建一些标签/索引文件,但不知何故设法显示非常精确的变量/函数/类的用法。不幸的是,当下面定义函数时,它似乎不能正确地工作。



没有一个IDE可以与Visual SlickEdit在引用,虚拟函数等方面竞争。

解决方案

我认为Qt-Creator可以帮你。新的预览2.0中添加了很少新功能。


Is there an IDE supporting C++ with REALLY smart searching of references? By 'reference' I mean usage of a class (or its member), variable, function in the whole Project or Workspace.

There's lots of IDE providing it. Some of them seem just to search for the text with same name giving lots of stuff, others are smarter and check the context (like class boundaries, namespace) but aren't accurate enough.

The best I've tried so far was Visual SlickEdit, but still there's more to wish.

class C1
{
    int foo;
};
class C2
{
    int foo;
};

For example in this situation when searching for C1::foo references I DON'T want C2::foo to be shown too.

So, is there an IDE that would be so smart?

Edit2

10x everybody for the answers so far.

I tried Eclipse, reference searching seems relatively good, but it takes it 20 minutes to index medium size project and 4 times of 5 it runs out of memory and crashes. I tried increasing it and some other advice and it got a little better, but still quite slow and annoying with these crashes.

I tried KDevelop3, but the feature mentioned in this question is not very advanced - seems to be just very advanced grep based text searching.

Edit4

KDevelop4 - I tried to make it work, but latest beta it's quite unusable for custom makefile projects, I was unable to do anything with it.

Edit5
I was surprised, but QT Creator did really well in my tests. It doesn't seem to create some tag/index files, but somehow manages to show very precisely the usage of variable/functions/classes. Unfortunately it seems to not work very correctly with templates, when following definitions of functions.

None of the mentioned IDEs could compete Visual SlickEdit in working with references, virtual functions, etc. QT Creator was the closest though, so I will choose it as an answer to my question.

解决方案

I think Qt-Creator can help you. There few new features added in new preview 2.0.

这篇关于智能参考搜索的C ++ IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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