diff --git a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java index a0b2c390503..d66340a51bd 100644 --- a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java +++ b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java @@ -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 );