开发者

Eclipse resolving symbols but, not the "right" ones. How to exclude certain directories from index?

开发者 https://www.devze.com 2023-03-18 08:01 出处:网络
I am working with a HUGE开发者_Python百科 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 indivi

I am working with a HUGE开发者_Python百科 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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号