Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2004-04-07 14:24:42 +0000
committerAndrew Niefer2004-04-07 14:24:42 +0000
commit83c0dabdbddd5f6d19318b27cef2c5325c76ced3 (patch)
treeaed69d82f60f4e6faa4c11736c031963ab1255f8
parent90269402af4f40a79df1858756db3aee16cfd1ee (diff)
downloadorg.eclipse.cdt-83c0dabdbddd5f6d19318b27cef2c5325c76ced3.tar.gz
org.eclipse.cdt-83c0dabdbddd5f6d19318b27cef2c5325c76ced3.tar.xz
org.eclipse.cdt-83c0dabdbddd5f6d19318b27cef2c5325c76ced3.zip
changes for parsing iostream in a standard project with discovered symbols
-rw-r--r--core/org.eclipse.cdt.core/parser/ChangeLog-parser6
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java3
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java2
3 files changed, 10 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/ChangeLog-parser b/core/org.eclipse.cdt.core/parser/ChangeLog-parser
index 1977c9042f7..454abad5871 100644
--- a/core/org.eclipse.cdt.core/parser/ChangeLog-parser
+++ b/core/org.eclipse.cdt.core/parser/ChangeLog-parser
@@ -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.
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
index f08aa769ba0..ab90e6b13ac 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
@@ -211,6 +211,9 @@ public class ExpressionParser implements IExpressionParser {
}catch( BacktrackException e ){
failed = true;
break;
+ }catch( Exception e ){
+ failed = true;
+ break;
}
}
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java
index 0463bff8203..cd60b164448 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java
@@ -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();

Back to the top