1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

Bug 344806: IIndex.getAllFiles() returns empty reference files.

This commit is contained in:
Markus Schorn 2011-07-01 14:18:03 +02:00
parent 6bbc31c7a2
commit 8a2d881cbd

View file

@ -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()]);