From aefea16bcfb008eac224ffef5c0a2bf701cdbf45 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Fri, 28 Dec 2012 14:06:56 -0800 Subject: [PATCH] Fixed compilation errors. --- .../cdt/core/lrparser/tests/LRTests.java | 36 +++++++++---------- .../cdt/core/parser/upc/tests/UPCTests.java | 26 +++++++------- 2 files changed, 29 insertions(+), 33 deletions(-) diff --git a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java index f9b5f4ce6f4..a4a50ba7034 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java +++ b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java @@ -54,17 +54,17 @@ public class LRTests extends AST2Tests { @Override public void testTypenameInExpression() throws Exception {} @Override - public void testParamWithFunctionType_Bug84242() throws Exception {} + public void testParamWithFunctionType_84242() throws Exception {} @Override - public void testParamWithFunctionTypeCpp_Bug84242() throws Exception {} + public void testParamWithFunctionTypeCpp_84242() throws Exception {} @Override - public void testFunctionReturningPtrToArray_Bug216609() throws Exception {} + public void testFunctionReturningPtrToArray_216609() throws Exception {} @Override public void testNestedFunctionDeclarators() throws Exception {} @Override public void testConstantExpressionBinding() throws Exception {} @Override - public void testAmbiguousDeclaration_Bug259373() throws Exception {} + public void testAmbiguousDeclaration_259373() throws Exception {} @Override public void testSizeofFunctionType_252243() throws Exception {} @Override @@ -76,7 +76,7 @@ public class LRTests extends AST2Tests { @Override public void testEmptyTrailingMacro_303152() throws Exception {} @Override // not applicable to lr parser memory usage. - public void testLargeTrivialAggregateInitializer_Bug253690() throws Exception{} + public void testLargeTrivialAggregateInitializer_253690() throws Exception{} @Override protected IASTTranslationUnit parse( String code, ParserLanguage lang, boolean useGNUExtensions, boolean expectNoProblems ) throws ParserException { @@ -162,10 +162,10 @@ public class LRTests extends AST2Tests { * it would be easy to fix this bug. */ @Override - public void testScalabilityOfLargeTrivialInitializer_Bug253690() { } - public void _testScalabilityOfLargeTrivialInitializer_Bug253690() throws Exception { + public void testScalabilityOfLargeTrivialInitializer_253690() { } + public void _testScalabilityOfLargeTrivialInitializer_253690() throws Exception { - super.testScalabilityOfLargeTrivialInitializer_Bug253690(); + super.testScalabilityOfLargeTrivialInitializer_253690(); } @@ -175,9 +175,9 @@ public class LRTests extends AST2Tests { * difficult so defer it to the future. */ @Override - public void testBinaryVsCastAmbiguities_Bug237057() { } - public void _testBinaryVsCastAmbiguities_Bug237057() throws Exception { - super.testBinaryVsCastAmbiguities_Bug237057(); + public void testBinaryVsCastAmbiguities_237057() { } + public void _testBinaryVsCastAmbiguities_237057() throws Exception { + super.testBinaryVsCastAmbiguities_237057(); } @@ -187,19 +187,17 @@ public class LRTests extends AST2Tests { * difficult so defer it to the future. */ @Override - public void testCastVsFunctionCallAmbiguities_Bug237057() { } - public void _testCastVsFunctionCallAmbiguities_Bug237057() throws Exception { - super.testCastVsFunctionCallAmbiguities_Bug237057(); + public void testCastVsFunctionCallAmbiguities_237057() { } + public void _testCastVsFunctionCallAmbiguities_237057() throws Exception { + super.testCastVsFunctionCallAmbiguities_237057(); } - /* The LR parser generates the AST for switch statements * differently than the DOM parser. */ @Override - public void testCaseRange_Bug211882() { } - public void _testCaseRange_Bug211882() throws Exception { - super.testCaseRange_Bug211882(); + public void testCaseRange_211882() { } + public void _testCaseRange_211882() throws Exception { + super.testCaseRange_211882(); } - } diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCTests.java index 0a884e39a3f..f176d04c50f 100644 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCTests.java +++ b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCTests.java @@ -41,29 +41,29 @@ public class UPCTests extends LRTests { @Override public void testBug191450_attributesInBetweenPointers() throws Exception {} @Override - public void testOmittedPositiveExpression_Bug212905() throws Exception {} + public void testOmittedPositiveExpression_212905() throws Exception {} @Override - public void testRedefinedGCCKeywords_Bug226112() throws Exception {} + public void testRedefinedGCCKeywords_226112() throws Exception {} @Override - public void testASMLabels_Bug226121() throws Exception {} + public void testASMLabels_226121() throws Exception {} @Override - public void testCompoundStatementExpression_Bug226274() throws Exception {} + public void testCompoundStatementExpression_226274() throws Exception {} @Override - public void testTypeofUnaryExpression_Bug226492() throws Exception {} + public void testTypeofUnaryExpression_226492() throws Exception {} @Override - public void testTypeofExpression_Bug226492() throws Exception {} + public void testTypeofExpression_226492() throws Exception {} @Override - public void testTypeofExpressionWithAttribute_Bug226492() throws Exception {} + public void testTypeofExpressionWithAttribute_226492() throws Exception {} @Override - public void testAttributeInElaboratedTypeSpecifier_Bug227085() throws Exception {} + public void testAttributeInElaboratedTypeSpecifier_227085() throws Exception {} @Override - public void testRedefinePtrdiff_Bug230895() throws Exception {} + public void testRedefinePtrdiff_230895() throws Exception {} @Override - public void testDeclspecInEnumSpecifier_bug241203() throws Exception {} + public void testDeclspecInEnumSpecifier_241203() throws Exception {} @Override - public void testBuiltinTypesCompatible_bug241570() throws Exception {} + public void testBuiltinTypesCompatible_241570() throws Exception {} @Override - public void testThreadLocalVariables_Bug260387() throws Exception {} + public void testThreadLocalVariables_260387() throws Exception {} @Override public void testVaArgWithFunctionPtr_311030() throws Exception {} @Override @@ -71,10 +71,8 @@ public class UPCTests extends LRTests { @Override public void testPtrDiffRecursion_317004() throws Exception {} - @Override protected ILanguage getCLanguage() { return UPCLanguage.getDefault(); } - }