1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-05-17 04:52:31 +00:00
parent 3a958f19ca
commit ee53c2d94d
2 changed files with 27 additions and 58 deletions

View file

@ -6031,8 +6031,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
private long memoryUsed() throws InterruptedException {
System.gc();Thread.sleep(200);System.gc();
final Runtime runtime = Runtime.getRuntime();
@ -6234,7 +6232,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
// int a = -142;
// int b = 456L;
// int c = 100000LL;
@ -6345,7 +6342,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
// int a = -142.0;
// int b = 456.1f;
// int c = 100000.99F;
@ -6427,7 +6423,6 @@ public class AST2Tests extends AST2BaseTest {
return (IBasicType)((IASTExpression)((IASTEqualsInitializer)init).getInitializerClause()).getExpressionType();
}
// void test() {
// __DATE__;
// __FILE__;
@ -6440,7 +6435,6 @@ public class AST2Tests extends AST2BaseTest {
parseAndCheckBindings(getAboveComment(), ParserLanguage.C);
}
//
// long double longDouble = 1.0;
// double _double = 1.0;
// float _float= 1.0;
@ -6470,9 +6464,7 @@ public class AST2Tests extends AST2BaseTest {
// var = _int + longDouble;
// var = shortInt + longDouble;
// var = _char + longDouble;
//
// }
//
public void testTypePromotion_long_double() throws Exception {
for (ParserLanguage lang : ParserLanguage.values()) {
IASTTranslationUnit ast = parseAndCheckBindings(getAboveComment(), lang);
@ -6498,7 +6490,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
//
// double _double = 1.0;
// float _float= 1.0;
// long long int longLongInt = 1;
@ -6526,7 +6517,6 @@ public class AST2Tests extends AST2BaseTest {
// var = _char + _double;
//
// }
//
public void testTypePromotion_double() throws Exception {
for (ParserLanguage lang : ParserLanguage.values()) {
IASTTranslationUnit ast = parseAndCheckBindings(getAboveComment(), lang);
@ -6552,7 +6542,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
//
// float _float= 1.0;
// long long int longLongInt = 1;
// long int longInt = 1;
@ -6576,7 +6565,6 @@ public class AST2Tests extends AST2BaseTest {
// var = _char + _float;
//
// }
//
public void testTypePromotion_float() throws Exception {
for (ParserLanguage lang : ParserLanguage.values()) {
IASTTranslationUnit ast = parseAndCheckBindings(getAboveComment(), lang);
@ -6649,7 +6637,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
//
// long long int longLongInt = 1;
// long int longInt = 1;
// int _int = 1;
@ -6669,7 +6656,6 @@ public class AST2Tests extends AST2BaseTest {
// var = _char + longInt;
//
// }
//
public void testTypePromotion_longint() throws Exception {
for (ParserLanguage lang : ParserLanguage.values()) {
IASTTranslationUnit ast = parseAndCheckBindings(getAboveComment(), lang);
@ -6695,7 +6681,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
//
// int _int = 1;
// short int shortInt = 1;
// char _char = 1;
@ -6711,7 +6696,6 @@ public class AST2Tests extends AST2BaseTest {
// var = _char + _int;
//
// }
//
public void testTypePromotion_int() throws Exception {
for (ParserLanguage lang : ParserLanguage.values()) {
IASTTranslationUnit ast = parseAndCheckBindings(getAboveComment(), lang);
@ -6738,7 +6722,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
//
// short int shortInt = 1;
// char _char = 1;
//
@ -6751,7 +6734,6 @@ public class AST2Tests extends AST2BaseTest {
// var = _char + shortInt;
//
// }
//
public void testTypePromotion_short_int() throws Exception {
for (ParserLanguage lang : ParserLanguage.values()) {
IASTTranslationUnit ast = parseAndCheckBindings(getAboveComment(), lang);
@ -6779,7 +6761,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
//
// char _char = 1;
//
// float var;
@ -6787,7 +6768,6 @@ public class AST2Tests extends AST2BaseTest {
// /* The following should all be signed int */
// var = _char + _char;
// }
//
public void testTypePromotion_char() throws Exception {
for (ParserLanguage lang : ParserLanguage.values()) {
IASTTranslationUnit ast = parseAndCheckBindings(getAboveComment(), lang);
@ -6848,8 +6828,6 @@ public class AST2Tests extends AST2BaseTest {
// /* (6) Should be an unsigned long int*/
// var = unsignedLongInt + signedLongInt;
// }
//
//
public void testTypePromotion_signedAndUnsignedInts() throws Exception {
for (ParserLanguage lang : ParserLanguage.values()) {
IASTTranslationUnit ast = parseAndCheckBindings(getAboveComment(), lang);
@ -7015,7 +6993,6 @@ public class AST2Tests extends AST2BaseTest {
assertTrue(t instanceof IEnumeration);
}
// /*Check that sizes are stored correctly in chains of IArrayType*/
//int a[2][3] = {{1,2,3},{4,5,6}};
//int b[3][2] = {{1,2},{3,4},{5,6}};
@ -7059,7 +7036,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
// /* Check that a parameter declared as a typedef'd array
// * is treated as a pointer
// */
@ -7075,9 +7051,6 @@ public class AST2Tests extends AST2BaseTest {
}
}
//
// /* check that enumerator values are evaluated correctly for
// * conditional expressions */
@ -7100,7 +7073,7 @@ public class AST2Tests extends AST2BaseTest {
assertEquals(1, value2.numericalValue().longValue());
}
}
//
// extern void goo();
// struct MyStruct {
// int a;
@ -7111,7 +7084,6 @@ public class AST2Tests extends AST2BaseTest {
// structure.a = 1;
// structure.ptr = goo;
// }
//
public void testBindingsOnFields() throws Exception {
IASTTranslationUnit tu = parse(getAboveComment(), ParserLanguage.C, false);
IASTCompoundStatement bodyStmt = (IASTCompoundStatement)((IASTFunctionDefinition)tu.getDeclarations()[2]).getBody();
@ -7138,12 +7110,9 @@ public class AST2Tests extends AST2BaseTest {
assertEquals(1, ((ICInternalBinding) field2).getDeclarations().length);
}
// /*
// * Check that the type returned by CASTArraySubscriptExpression
// * handles typedefs correctly.
// *
// */
// struct s {
// int a;