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:
parent
6bbc31c7a2
commit
8a2d881cbd
1 changed files with 3 additions and 1 deletions
|
@ -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()]);
|
||||
|
|
Loading…
Add table
Reference in a new issue