Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-07-16 16:08:04 -0400
committerMike Kucera2009-07-16 16:08:04 -0400
commited6faa6fc9409a132fb6015da1c24ca5e9cd6849 (patch)
tree9e46f9b074bb2eea31b0ca2ff0b37a1bbfcfb648 /lrparser/org.eclipse.cdt.core.lrparser
parent26c0a92a71f930b35a0cfc44b16d0f11c19b4eb9 (diff)
downloadorg.eclipse.cdt-ed6faa6fc9409a132fb6015da1c24ca5e9cd6849.tar.gz
org.eclipse.cdt-ed6faa6fc9409a132fb6015da1c24ca5e9cd6849.tar.xz
org.eclipse.cdt-ed6faa6fc9409a132fb6015da1c24ca5e9cd6849.zip
fix compile errors
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java10
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java15
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java16
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java11
4 files changed, 23 insertions, 29 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java
index 982c538b2c..f141fefbe9 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java
@@ -1362,9 +1362,8 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer;
if(identifierType instanceof IFunctionType) {
// TODO: check the parameter types
IFunctionType functionType = (IFunctionType)identifierType;
- try {
- resultType = functionType.getReturnType();
- } catch (DOMException e) { } // do nothing, the problem binding is fine
+ resultType = functionType.getReturnType();
+
}
exprTypeStack.push(resultType);
@@ -1391,9 +1390,8 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer;
IType resultType = C99ProblemBinding.badType();
if(exprType instanceof IArrayType) {
IArrayType arrType = (IArrayType) exprType;
- try {
- resultType = arrType.getType(); // strip off the array type
- } catch (DOMException e) { }
+ resultType = arrType.getType(); // strip off the array type
+
}
exprTypeStack.push(resultType);
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java
index 97fd92596f..e430fcfae7 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java
@@ -71,14 +71,13 @@ public class C99PointerType implements ITypeContainer, ICPointerType {
return true;
if (t instanceof ICPointerType) {
- try {
- ICPointerType pointerType = (ICPointerType) t;
- if(pointerType.isConst() == isConst &&
- pointerType.isRestrict() == isRestrict &&
- pointerType.isVolatile() == isVolatile) {
- return type.isSameType(pointerType.getType());
- }
- } catch(DOMException _) { }
+ ICPointerType pointerType = (ICPointerType) t;
+ if(pointerType.isConst() == isConst &&
+ pointerType.isRestrict() == isRestrict &&
+ pointerType.isVolatile() == isVolatile) {
+ return type.isSameType(pointerType.getType());
+ }
+
}
return false;
}
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java
index f9454b0f1c..9d197fe631 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java
@@ -76,14 +76,14 @@ public class C99QualifierType implements ICQualifierType, ITypeContainer {
return true;
if (t instanceof ICQualifierType) {
- try {
- ICQualifierType pointerType = (ICQualifierType) t;
- if(pointerType.isConst() == isConst &&
- pointerType.isRestrict() == isRestrict &&
- pointerType.isVolatile() == isVolatile) {
- return type.isSameType(pointerType.getType());
- }
- } catch(DOMException _) { }
+
+ ICQualifierType pointerType = (ICQualifierType) t;
+ if(pointerType.isConst() == isConst &&
+ pointerType.isRestrict() == isRestrict &&
+ pointerType.isVolatile() == isVolatile) {
+ return type.isSameType(pointerType.getType());
+ }
+
}
return false;
}
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java
index ac10b603e7..f6926e96c0 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java
@@ -69,13 +69,10 @@ public class C99Typedef extends PlatformObject implements IC99Binding, ITypedef,
if(t == this)
return true;
- try {
- if(t instanceof ITypedef)
- return type.isSameType(((ITypedef)t).getType());
- return type.isSameType(t);
- } catch(DOMException _) {
- return false;
- }
+ if(t instanceof ITypedef)
+ return type.isSameType(((ITypedef)t).getType());
+ return type.isSameType(t);
+
}
@Override

Back to the top