1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for build hang caused by Indexer; DependencyTest fix

This commit is contained in:
Bogdan Gheorghe 2004-04-01 18:41:01 +00:00
parent c5df08b65b
commit 98583fe50f
3 changed files with 8 additions and 6 deletions

View file

@ -587,7 +587,9 @@ import org.eclipse.core.runtime.Platform;
private String[] convertToLocalPath(String[] model) {
IPath defaultPath = Platform.getLocation();
String pathString = defaultPath.toOSString();
if (pathString.charAt(pathString.length() - 1) == '\\')
char endChar = pathString.charAt(pathString.length() - 1);
if (endChar == '/' ||
endChar == '\\')
{
pathString = pathString.substring(0, pathString.length() - 1);
}

View file

@ -74,7 +74,7 @@ public class SourceIndexer extends AbstractIndexer {
output.addDocument(document);
// Create a new Parser
SourceIndexerRequestor requestor = new SourceIndexerRequestor(this, resourceFile);
requestor.removeMarkers(resourceFile);
//requestor.removeMarkers(resourceFile);
//Get the scanner info
IProject currentProject = resourceFile.getProject();

View file

@ -96,7 +96,7 @@ public class SourceIndexerRequestor implements ISourceElementRequestor, IIndexCo
*/
public boolean acceptProblem(IProblem problem) {
IASTInclusion include = peekInclude();
/* IASTInclusion include = peekInclude();
IFile tempFile = resourceFile;
int lineNumber = problem.getSourceLineNumber();
@ -118,7 +118,7 @@ public class SourceIndexerRequestor implements ISourceElementRequestor, IIndexCo
}
addMarkers(tempFile,problem, lineNumber);
*/
return DefaultProblemHandler.ruleOnProblem( problem, ParserMode.COMPLETE_PARSE );
}
@ -219,7 +219,7 @@ public class SourceIndexerRequestor implements ISourceElementRequestor, IIndexCo
*/
public void enterInclusion(IASTInclusion inclusion) {
// TODO Auto-generated method stub
IPath newPath = new Path(inclusion.getFullFileName());
/* IPath newPath = new Path(inclusion.getFullFileName());
IFile tempFile = CCorePlugin.getWorkspace().getRoot().getFileForLocation(newPath);
if (tempFile !=null){
removeMarkers(tempFile);
@ -227,7 +227,7 @@ public class SourceIndexerRequestor implements ISourceElementRequestor, IIndexCo
else{
//File is out of workspace
}
}*/
IASTInclusion parent = peekInclude();
indexer.addInclude(inclusion, parent);