Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java20
1 files changed, 8 insertions, 12 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java
index ac2826999fd..325295bd82d 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java
@@ -610,18 +610,14 @@ public class ASTTypeUtil {
IBinding binding = declarator.getName().resolveBinding();
IType type = null;
- try {
- if (binding instanceof IEnumerator) {
- type = ((IEnumerator) binding).getType();
- } else if (binding instanceof IFunction) {
- type = ((IFunction) binding).getType();
- } else if (binding instanceof ITypedef) {
- type = ((ITypedef) binding).getType();
- } else if (binding instanceof IVariable) {
- type = ((IVariable) binding).getType();
- }
- } catch (DOMException e) {
- return EMPTY_STRING;
+ if (binding instanceof IEnumerator) {
+ type = ((IEnumerator)binding).getType();
+ } else if (binding instanceof IFunction) {
+ type = ((IFunction)binding).getType();
+ } else if (binding instanceof ITypedef) {
+ type = ((ITypedef)binding).getType();
+ } else if (binding instanceof IVariable) {
+ type = ((IVariable)binding).getType();
}
if (type != null) {

Back to the top