且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

过滤Eclipse的C ++ Content Assist

更新时间:2022-02-24 23:08:15

看起来不像.至少有一对

Doesn't look like it. There are at least a couple of bugs open regarding this. You're lucky it shows too much! It never seems to assists in any way for me.

最新的CDT(在编写Helios时,CDT版本为7.0.0.201006141710)已修复了第二个错误.但是,当我尝试使用私有成员变量时,它仍然显示在完成列表中,如下所示.

The latest CDT (at the time of writing Helios, with CDT version 7.0.0.201006141710) has the 2nd of those bugs fixed. However private member variables still showed up on the completion list when I tried it out, as shown below.

它似乎确实取决于类中变量声明的顺序.如果在public部分之前有private部分,则将正确过滤出专用变量.虽然并不完美,但肯定比木卫三要好得多.

It does seem to depend on the order of variable declaration in the class. If you have the private section before the public section the private variables are filtered out correctly. While not perfect, it's certainly a great deal better than it was in Ganymede.