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

Patch for Bogdan Gheorghe.

This commit is contained in:
John Camelon 2003-08-25 13:55:32 +00:00
parent 7c632b299c
commit c55ebd35d1
2 changed files with 7 additions and 3 deletions

View file

@ -340,9 +340,10 @@ public class Scanner implements IScanner {
handleInclusion( fileName, true, nameOffset, beginOffset, endOffset ); handleInclusion( fileName, true, nameOffset, beginOffset, endOffset );
} }
} }
if (inclusionReader != null) {
IASTInclusion inclusion = astFactory.createInclusion( fileName, newPath, !useIncludePaths, beginOffset, endOffset, nameOffset ); IASTInclusion inclusion = astFactory.createInclusion( fileName, newPath, !useIncludePaths, beginOffset, endOffset, nameOffset );
contextStack.updateContext(inclusionReader, newPath, ScannerContext.INCLUSION, inclusion, requestor ); contextStack.updateContext(inclusionReader, newPath, ScannerContext.INCLUSION, inclusion, requestor );
}
} }
// constants // constants

View file

@ -900,6 +900,9 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
*/ */
protected void setParameter(IParameterizedSymbol symbol, IASTAbstractDeclaration absDecl, boolean isParameter, List references) throws ASTSemanticException protected void setParameter(IParameterizedSymbol symbol, IASTAbstractDeclaration absDecl, boolean isParameter, List references) throws ASTSemanticException
{ {
if (absDecl.getTypeSpecifier() == null)
return;
TypeInfo.eType type = null; TypeInfo.eType type = null;
ISymbol xrefSymbol = null; ISymbol xrefSymbol = null;
List newReferences = null; List newReferences = null;