Eclipse 解析符号,但不是“正确”的符号。那些。如何从索引中排除某些目录?
我正在使用一个由很多人开发的巨大代码库。该代码包含多个目标的代码。我正在研究 Target L。目标特定代码位于单独的目录中。
在编译时,根据某些标志,有选择地编译代码。完全没有问题。
但是,当我使用目标 L 的代码时,当我尝试解析/遵循函数、变量、文字或任何内容时,有时 Eclipse 会引导我找到来自不同目标的声明/函数。
例如:我跟踪一个变量 xyz,它打开来自目标 S 而不是我感兴趣的目标 L 的声明。根据我上面的描述,xyz 将出现在多个目标特定代码的代码部分中。
我猜它会指向构建索引时找到的第一个或最后一个声明。我的猜测是,它带我到构建索引时找到的最后一个声明。
我的问题是,我可以从 Eclipse 代码索引中排除某些目录吗?
我尝试从工作集中排除目录,但这没有帮助。
谢谢!
I am working with a HUGE code base, developed by a LOT of people. The code contains code for, lets say, multiple targets. I am working on Target L. Target specific codes are in individual directories.
During compile time, based on certain flags, the code is selectively compiled. No problems at all.
However, when I am working with the code for target L, and when I try to resolve / follow a function or a variable or a literal or anything, sometimes eclipse leads me to the declaration / function from a different target.
Ex: I follow a variable xyz and it opens up the declaration from target S instead of the target of my interest, L. Per my description above, xyz will appear in code sections of multiple target specific code.
I guess it is going to the first or last declaration it found when building the index. My guess is, its taking me to the last declaration it found when building index.
My question is, can I exclude certain directories from the eclipse code index?
I tried excluding the directories from my working set, but that didnt help.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试设置构建系统用于构建特定目标的相同定义。无论如何,这应该更好地匹配编译的内容。
编辑:
也可以选择所有项目(取消选择所需的项目),右键单击,选择资源配置->资源配置从构建中排除。然后重建索引。
You can try setting the same defines the build system uses to build a particular target. That should better match what gets compiled anyway.
Edit:
You can also select all items (deselect desired items), right-click, select Resource Configurations -> Exclude from Build. Then rebuild the index.