Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2009-11-09 10:42:58 -0500
committerMarkus Schorn2009-11-09 10:42:58 -0500
commitdfc2e4f842c8bf00fcbfb273353401f98157596a (patch)
tree641d5d39c54e3556c376275d7a432e2ec7e8c297 /lrparser/org.eclipse.cdt.core.lrparser
parentfd76393f9e087f7ecb4a110169f0be1828bf7254 (diff)
downloadorg.eclipse.cdt-dfc2e4f842c8bf00fcbfb273353401f98157596a.tar.gz
org.eclipse.cdt-dfc2e4f842c8bf00fcbfb273353401f98157596a.tar.xz
org.eclipse.cdt-dfc2e4f842c8bf00fcbfb273353401f98157596a.zip
Safe type representation for index, bug 294306
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/bindings/C99ArrayType.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99ArrayType.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99ArrayType.java
index f3acd7c208..9f289d9bd9 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99ArrayType.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99ArrayType.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2008 IBM Corporation and others.
+ * Copyright (c) 2006, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -96,15 +96,13 @@ public class C99ArrayType implements ICArrayType, ITypeContainer {
return t.isSameType(this);
if(t instanceof ICArrayType) {
ICArrayType at = (ICArrayType)t;
- try {
- if(at.isConst() == isConst &&
- at.isRestrict() == isRestrict &&
- at.isStatic() == isStatic &&
- at.isVolatile() == isVolatile &&
- at.isVariableLength() == isVariableLength) {
- return at.isSameType(type);
- }
- } catch(DOMException _) { }
+ if(at.isConst() == isConst &&
+ at.isRestrict() == isRestrict &&
+ at.isStatic() == isStatic &&
+ at.isVolatile() == isVolatile &&
+ at.isVariableLength() == isVariableLength) {
+ return at.isSameType(type);
+ }
}
return false;
}

Back to the top