1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Type-cache returns undefined types, bug 277277

This commit is contained in:
Markus Schorn 2009-06-22 13:39:29 +00:00
parent cc06277186
commit 1cb9ea94e6

View file

@ -57,8 +57,9 @@ public class AllTypesCache {
IIndexBinding[] all =
index.findBindings(Pattern.compile(".*"), false, new IndexFilter() { //$NON-NLS-1$
@Override
public boolean acceptBinding(IBinding binding) {
return IndexModelUtil.bindingHasCElementType(binding, kinds);
public boolean acceptBinding(IBinding binding) throws CoreException {
return IndexFilter.ALL_DECLARED_OR_IMPLICIT.acceptBinding(binding) &&
IndexModelUtil.bindingHasCElementType(binding, kinds);
}},
monitor
);