Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarkus Schorn2011-07-01 08:18:03 -0400
committerMarkus Schorn2011-07-04 04:16:23 -0400
commit8a2d881cbd0bd748150f6791cfdc941632e6e016 (patch)
treecd4f2a1346d0c4fd09854f53a0f7e0afc49c4f03 /core
parent6bbc31c7a25defb4c3fe1c3efd9cbaeb50bf59d5 (diff)
downloadorg.eclipse.cdt-8a2d881cbd0bd748150f6791cfdc941632e6e016.tar.gz
org.eclipse.cdt-8a2d881cbd0bd748150f6791cfdc941632e6e016.tar.xz
org.eclipse.cdt-8a2d881cbd0bd748150f6791cfdc941632e6e016.zip
Bug 344806: IIndex.getAllFiles() returns empty reference files.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java
index 8665106114..c5907a0da4 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java
@@ -680,7 +680,9 @@ public class CIndex implements IIndex {
HashMap<IIndexFileLocation, IIndexFile> result= new HashMap<IIndexFileLocation, IIndexFile>();
for (IIndexFragment fragment : fFragments) {
for (IIndexFragmentFile file : fragment.getAllFiles()) {
- result.put(file.getLocation(), file);
+ if (file.hasContent()) {
+ result.put(file.getLocation(), file);
+ }
}
}
return result.values().toArray(new IIndexFile[result.size()]);

Back to the top