Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-03-07 23:09:39 -0500
committerSergey Prigogin2012-03-07 23:12:52 -0500
commite799de15a0119d7b810899143a2ceb38c0804ef1 (patch)
tree94ed4d42ad2bb6323f22344512b465037f5413e7 /core/org.eclipse.cdt.core.tests
parent8153aff8ffd67ddd427a6aa564485b703d1ddb0e (diff)
downloadorg.eclipse.cdt-e799de15a0119d7b810899143a2ceb38c0804ef1.tar.gz
org.eclipse.cdt-e799de15a0119d7b810899143a2ceb38c0804ef1.tar.xz
org.eclipse.cdt-e799de15a0119d7b810899143a2ceb38c0804ef1.zip
Moved getOperandsOfMultiExpression method to CPPVisitor.
Diffstat (limited to 'core/org.eclipse.cdt.core.tests')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2UtilTests.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2UtilTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2UtilTests.java
index aca834db2d..12f3c43ecc 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2UtilTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2UtilTests.java
@@ -36,7 +36,7 @@ public class AST2UtilTests extends AST2BaseTest {
}
public void testSimpleSignature() throws Exception {
- StringBuffer buff = new StringBuffer();
+ StringBuilder buff = new StringBuilder();
buff.append("int l, m, n=0;\n"); //$NON-NLS-1$
buff.append("int j = l ? m : n;\n"); //$NON-NLS-1$
buff.append("int i = l^m;\n"); //$NON-NLS-1$
@@ -64,7 +64,7 @@ public class AST2UtilTests extends AST2BaseTest {
}
public void testSimpleParameter() throws Exception {
- StringBuffer buff = new StringBuffer();
+ StringBuilder buff = new StringBuilder();
buff.append("int a(int x);\n"); //$NON-NLS-1$
buff.append("int * b(char y, int x);\n"); //$NON-NLS-1$
buff.append("void c(int * z, float **b);\n"); //$NON-NLS-1$
@@ -112,7 +112,7 @@ public class AST2UtilTests extends AST2BaseTest {
}
public void testSimpleCParameterSignature() throws Exception {
- StringBuffer buff = new StringBuffer();
+ StringBuilder buff = new StringBuilder();
buff.append("int a(int x);\n"); //$NON-NLS-1$
buff.append("int * b(char y, int x);\n"); //$NON-NLS-1$
buff.append("void c(int * z, float **b);\n"); //$NON-NLS-1$
@@ -128,7 +128,7 @@ public class AST2UtilTests extends AST2BaseTest {
}
public void testSimpleTypeId() throws Exception {
- StringBuffer buff = new StringBuffer();
+ StringBuilder buff = new StringBuilder();
buff.append("int x = sizeof( int );\n"); //$NON-NLS-1$
buff.append("union Squaw { int x; double u; };\n"); //$NON-NLS-1$
buff.append("int main(int argc, char **argv) {\n"); //$NON-NLS-1$
@@ -152,7 +152,7 @@ public class AST2UtilTests extends AST2BaseTest {
}
public void testKnRC() throws Exception {
- StringBuffer buff = new StringBuffer();
+ StringBuilder buff = new StringBuilder();
buff.append("int foo(x, y) char x; int y; {}\n"); //$NON-NLS-1$
buff.append("int foo2(char x, int y) {}\n"); //$NON-NLS-1$

Back to the top