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:
parent
7c632b299c
commit
c55ebd35d1
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue