title: Eclipse resolving symbols but, not the "right" ones. How to exclude certain directories from index?
body: <p>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. </p>
  
  <p>During compile time, based on certain flags, the code is selectively compiled. No problems at all. </p>
  
  <p>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. </p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>My question is, can I exclude certain directories from the eclipse code index?</p>
  
  <p>I tried excluding the directories from my working set, but that didnt help.</p>
  
  <p>Thanks!</p>