Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-03-13 20:31:59 -0400
committerSergey Prigogin2012-03-13 20:55:31 -0400
commit723ed9f9128d127c36e60f1c4e8c7d122494f342 (patch)
tree8e6b194970d3e85f4f9e87a94b70be90c8f93e49 /lrparser
parentc40a860ba332716bbf08c3e898348f1c4b3ee0b7 (diff)
downloadorg.eclipse.cdt-723ed9f9128d127c36e60f1c4e8c7d122494f342.tar.gz
org.eclipse.cdt-723ed9f9128d127c36e60f1c4e8c7d122494f342.tar.xz
org.eclipse.cdt-723ed9f9128d127c36e60f1c4e8c7d122494f342.zip
Cosmetics.
Diffstat (limited to 'lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Parameter.java1
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Variable.java14
2 files changed, 5 insertions, 10 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Parameter.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Parameter.java
index 31e8aa81a2..132704bbf6 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Parameter.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Parameter.java
@@ -30,5 +30,4 @@ public class C99Parameter extends C99Variable implements IParameter, ITypeable {
param.setStatic(var.isStatic());
return param;
}
-
}
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Variable.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Variable.java
index a185634d97..d1e812d359 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Variable.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Variable.java
@@ -23,8 +23,6 @@ import org.eclipse.core.runtime.PlatformObject;
@SuppressWarnings("restriction")
public class C99Variable extends PlatformObject implements IC99Binding, IVariable, ITypeable {
-
-
private boolean isAuto;
private boolean isExtern;
private boolean isRegister;
@@ -36,14 +34,12 @@ public class C99Variable extends PlatformObject implements IC99Binding, IVariabl
private IScope scope;
public C99Variable() {
-
}
public C99Variable(String name) {
this.name = name;
}
-
public void setType(IType type) {
this.type = type;
}
@@ -51,7 +47,6 @@ public class C99Variable extends PlatformObject implements IC99Binding, IVariabl
public IType getType() {
return type;
}
-
public void setAuto(boolean auto) {
this.isAuto = auto;
@@ -60,7 +55,6 @@ public class C99Variable extends PlatformObject implements IC99Binding, IVariabl
public boolean isAuto() {
return isAuto;
}
-
public void setExtern(boolean extern) {
this.isExtern = extern;
@@ -69,7 +63,6 @@ public class C99Variable extends PlatformObject implements IC99Binding, IVariabl
public boolean isExtern() {
return isExtern;
}
-
public void setRegister(boolean isRegister) {
this.isRegister = isRegister;
@@ -78,7 +71,6 @@ public class C99Variable extends PlatformObject implements IC99Binding, IVariabl
public boolean isRegister() {
return isRegister;
}
-
public void setStatic(boolean isStatic) {
this.isStatic = isStatic;
@@ -88,7 +80,6 @@ public class C99Variable extends PlatformObject implements IC99Binding, IVariabl
return isStatic;
}
-
public void setName(String name) {
this.name = name;
}
@@ -123,4 +114,9 @@ public class C99Variable extends PlatformObject implements IC99Binding, IVariabl
public IValue getInitialValue() {
return null;
}
+
+ @Override
+ public String toString() {
+ return getName();
+ }
}

Back to the top