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

changes for parsing iostream in a standard project with discovered symbols

This commit is contained in:
Andrew Niefer 2004-04-07 14:24:42 +00:00
parent 90269402af
commit 83c0dabdbd
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-04-07 Andrew Niefer
small changes to get through iostream under standard make with discovered symbols
- check null pointer in GCCScannerExtension.handlePreprocessorDirective, the null is probably a symptom of whatever
is giving us an unbalanced preprocessor directive
- catch exceptions during our 3rd attempt at a template argument in ExpressionParser.templateArgumentList
2004-04-07 John Camelon
Provided a partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=50152
Updated IExpressionParser::expression() interface necessitated by this fix, and updated its clients appropriately.

View file

@ -211,6 +211,9 @@ public class ExpressionParser implements IExpressionParser {
}catch( BacktrackException e ){
failed = true;
break;
}catch( Exception e ){
failed = true;
break;
}
}

View file

@ -112,7 +112,7 @@ public class GCCScannerExtension implements IScannerExtension {
TraceUtil.outputTrace(scannerData.getLogService(), "GCCScannerExtension handling #include_next directive", null, null, null, null); //$NON-NLS-1$
// figure out the name of the current file and its path
IScannerContext context = scannerData.getContextStack().getCurrentContext();
if( context.getKind() != IScannerContext.ContextKind.INCLUSION )
if( context == null || context.getKind() != IScannerContext.ContextKind.INCLUSION )
return;
String fullInclusionPath = context.getFilename();