diff --git a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java index 76e78ffe0e6..f8b448ccb67 100644 --- a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java +++ b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java @@ -216,9 +216,9 @@ class CTagEntry{ private char[][] getFunctionSignature() { String signature = (String) tagExtensionField.get(CTagsConsoleParser.SIGNATURE); - if (signature.equals("()")){ + if (signature.equals("()")){ //$NON-NLS-1$ char[][] voidSignature = new char[1][]; - voidSignature[0] = "void".toCharArray(); + voidSignature[0] = "void".toCharArray(); //$NON-NLS-1$ return voidSignature; } return CSearchPattern.scanForParameters(signature); diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/CSearchScope.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/CSearchScope.java index 0b8ff6b73b4..fea32b038c3 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/CSearchScope.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/CSearchScope.java @@ -69,11 +69,15 @@ public class CSearchScope implements ICSearchScope { IProject project = cProject.getProject(); if (!project.isAccessible() || !visitedProjects.add(project)) return; this.addEnclosingProject(project.getFullPath()); - //Add the children of the project to the scope + + this.add(project.getFullPath(),true); + + /*//Add the children of the project to the scope ICElement[] projChildren = cProject.getChildren(); for (int i=0; i< projChildren.length; i++){ this.add(projChildren[i]); - } + }*/ + //Add the include paths to the scope IIncludeReference[] includeRefs = cProject.getIncludeReferences(); for (int i=0; i