diff --git a/core/org.eclipse.cdt.core.tests/ChangeLog b/core/org.eclipse.cdt.core.tests/ChangeLog index f7b51f2b7e8..115c868c382 100644 --- a/core/org.eclipse.cdt.core.tests/ChangeLog +++ b/core/org.eclipse.cdt.core.tests/ChangeLog @@ -1,1412 +1,1415 @@ -2004-02-12 Andrew Niefer - UnCommented CompleteParseASTTest.testBug47628 - Added CompleteParseASTTest.testBug47636 - Added CompleteParseASTTest.testBug45697 - Updated ParserSymbolTableTests & ParserSymbolTableTemplateTests for proper use of const & volatile - Added ParserSymbolTableTests.testbug47636FunctionParameterComparisons_1 - Added ParserSymbolTableTests.testbug47636FunctionParameterComparisons_2 - Added ParserSymbolTableTests.testbug47636FunctionParameterComparisons_3 - Added ParserSymbolTableTests.testbug47636FunctionParameterComparisons_4 - -2004-02-11 John Camelon - Updated tests to accommodate for new Parser class hierarchy and factories. - -2004-02-10 Andrew Niefer - Added new File: ParserSymbolTableTemplateTests.java (contains 30 new tests) - Added new File: FailingTemplateTests.java (contains 5 test stubs for failing cases) - -2004-02-10 John Camelon - Added testBug47682() to QuickParseASTTests.java. - -2004-02-06 Bogdan Gheorghe - Added FunctionMethodPatternTests.testMethodDeclarationWithNoParameters - -2004-02-08 John Camelon - Moved testErrorHandling_1() from failed tests to CompleteParseASTTest. - Moved testBug44340() from failed tests to CompleteParseASTTest. - -2004-02-06 Andrew Niefer - Added CompletionParseTest.testBug51260 - -2004-02-04 John Camelon - Added preliminary SelectionParseTests to test SELECTION_PARSE clients. - Added SelectionParseTests to ParserTestSuite. - -2004-01-30 John Camelon - Added QuickParseASTTest::testBug47752. - -2004-01-28 John Camelon - Added ScannerTestCase::testBug50821(). - -2004-01-27 John Camelon - Renamed ContextualParseTest to CompletionParseTest. - Updated COMPLETION_PARSE clients to use SINGLE_NAME_REFERENCE rather than STATEMENT_START. - -2004-01-27 Andrew Niefer - Added CompleteParseASTTest.testCBoolAsParameter - -2004-01-26 John Camelon - Updated clients to use new Scanner logging service. - Added ScannerTestCase.testBug46402(). - -2004-01-26 Andrew Niefer - Added ParserSymbolTableTest.testLongLong() - Added ParserSymbolTableTest.testComplex() - Added ParserSymbolTableTest.test_Bool() - -2004-01-22 John Camelon - Updated Scanner tests for package updates in the core. - -2004-01-19 John Camelon - Updated ParserSymbolTableTest to accommodate new constructors for COMPLETE_PARSE ASTNodes (line # info). - Updated CModelElementsTest to enable testing for line numbers. - Removed CModelElementsFailedTests.testBug36379() as it is redundant due to CModelElementTests.testCModelElements() is complete. - Removed CModelElementsFailedTests from AutomatedIntegrationSuite as it is empty. - -2004-01-16 Andrew Niefer - Modified CompleteParseASTTest.testUsingClauses - Added ParserSymbolTableTest.testIterator_1 & testIterator_2 - -2004-01-16 Hoda Amer - Modified CModelElementsTest to test for enumerator constant expression - Bug#47552 - -2004-01-15 Andrew Niefer - Moved testBug48307_FriendFunction_1 & testBug48307_FriendFunction_2 to ContextualParseTest - Updated ContextualParseTest now that the order of prefix lookup results is predictable. - -2004-01-15 Hoda Amer - Moved Content Assist testing to the UI.tests plugin - -2004-01-15 John Camelon - Updated references to LookupResult as it was renamed to ILookupResult. - Removed some warnings from parser tests. - Updated Scanner & QuickParseTests to accommodate new errors and signatures. - Added QuickParseASTTests.testBug44370(). - -2004-01-13 John Camelon - Updated ContextualParseTest to accommodate bugfixes 48909 & 49702. - -2004-01-08 Andrew Niefer - Added CompleteParseASTTest.testBug43110_XRef - Added ParserSymbolTableTest.testBug43110_Ellipses - Added ParserSymbolTableTest.testBug43110_EllipsesRanking - Added ParserSymbolTableTest.testBug43110_EllipsesRanking_2 - -2004-01-08 Andrew Niefer - Added CompleteParseASTTest::testBug48307_FriendFunction_1 - Added CompleteParseASTTest::testBug48307_FriendFunction_2 - -2004-01-06 Andrew Niefer - Added ContextualParseTest::testCompletionLookup_LookupKindTHIS - -2004-01-06 John Camelon - Added CompleteParseASTTest::testBug43110() and QuickParseASTTests::testBug43110(). - -2003-12-31 Hoda Amer - Small change to test parameters with initial clause in ITemplateTest - -2003-12-22 Hoda Amer - Temporary disabled completion proposal test until a better test is written. - -2003-12-17 Andrew Niefer - test changes for content assist - added ContextualParseTest.testCompletionLookup_FriendClass_1() - added ContextualParseTest.testCompletionLookup_FriendClass_2() - added ContextualParseTest.testCompletionLookup_ParametersAsLocalVariables() - modified ParserSymbolTableTest.testVisibilityDetermination() - -2003-12-17 Hoda Amer - Small modifications to cope with the new interfaces - -2003-12-15 Andrew Niefer - added ContextualParseTest.testCompletionLookup_Unqualified - added ContextualParseTest.testCompletionLookup_Qualified - added ContextualParseTest.testCompletionLookup_Pointer - -2003-12-12 John Camelon - Updated testBaseCase_SimpleDeclaration() for keyword assertions. - -2003-12-11 John Camelon - Expanded ContextualParseTest::testBaseCase(). - Updated tests to deal with new signatures/exceptions. - -2003-12-11 Alain Magloire - - New test files for the ICPathEntry in core model. - - * model/org/eclipse/cdt/core/model/tests/CPathEntryTest.java - -2003-12-09 Andrew Niefer - added ParserSymbolTableTests.testVisibilityDetermination() - added ParserSymbolTableTests.testPrefixFiltering - -2003-12-09 Hoda Amer - Modified the Completion Proposal test to include case sensitivity - in the order of proposals. - -2003-12-09 John Camelon - Added ContextualParseTest.java and some test cases. - -2003-12-04 John Camelon - Removed some warnings. - Moved testBug39678() from ASTFailedTests to QuickParseASTTests. - -2003-12-03 Andrew Niefer - -modified FailedCompleteParseASTTest.testPMDotStarPointerToMemberFunction_Bug43242 - .testPMArrowStarPointerToMemberFunction_Bug43242 - .testPMDotStar_bug43579 - .testPMArrowStar_bug43579 - -created: FailedCompleteParseASTTest.testBug47926 - CompleteParseASTTest.testQualifiedLookup - ParserSymbolTableTest.testPrefixLookup_Ambiguities - ParserSymbolTableTest.testQualifiedUnqualifiedLookup - -modified resources/search/classDecl.cpp & include.h - -created FunctionMethodPatternTests.testLookupForDefinition - - -2003-11-27 Andrew Niefer - tests for Symbol table prefix lookup - ParserSymbolTableTest.testBug46882 - ParserSymbolTableTest.testPrefixLookup_Unqualified - ParserSymbolTableTest.testPrefixLookup_Qualified - ParserSymbolTableTest.testPrefixLookup_Inheritance - -2003-11-27 Andrew Niefer - add CompleteParseASTTest.testBug47624() - -2003-11-18 Andrew Niefer - update ParserSymbolTableTest to reflect refactoring of Declaration into 4 separate classes. - -2003-11-13 Hoda Amer - Added CompleteParseASTTest::testBug44342(): Failure to dereference function calls after a . or an -> - Moved testErrorHandling_1() to FailedCompleteParseASTTest - Added FailedCompleteParseASTTest::testBug44340():Inline functions fail to resolve references - -2003-11-06 Andrew Niefer - Remove dependancy on cdt.internal.ui.search.CSearchResultCollector in BaseSearchTest and DependencyTests - -2003-11-07 John Camelon - Moved testBug39554() from ASTFailedTests to QuickParseASTTests. - -2003-11-05 John Camelon - Added CompleteParseASTTest::testBug44838(). - Added CompleteParseASTTest::testBug46165(). - Added ScannerTestCase::testBug45551(). - -2003-11-05 John Camelon - Updated parser clients to use new ParserFactory (stand-alone parser work item). - -2003-11-05 John Camelon - Updated parser clients to use new IProblem strategy. - -2003-10-28 Andrew Niefer - Added testBug44510() to CompleteParseASTTest - Added testBug44925() to CompleteParseASTTest - Added testBug44510() to ParserSymbolTableTest - -2003-10-24 John Camelon - Added testBug45476() to ScannerTestCase. - Added testBug45477() to ScannerTestCase. - -2003-10-24 John Camelon - Moved testBug39542() from ASTFailedTests to QuickParseASTTests. - Moved testBug39549() from ASTFailedTests to QuickParseASTTests. - Added testCDesignatedInitializers() to CompleteParseASTTests. - Moved testBug39551A() from ASTFailedTests to QuickParseASTTests. - Moved testBug39551B() from ASTFailedTests to QuickParseASTTests. - Added testCBool() to QuickParseASTTests. - Added testBug39551A(), testBug39551B() and testCBool to CompleteParseTests. - -2003-10-22 Hoda Amer - Added offset checking in CModelElementsTest - -2003-10-21 John Camelon - Moved testBug40007() from ASTFailedTests to QuickParseASTTests. - Added QuickParseASTTests::testBug40759(). - Added QuickParseASTTests::testBug44633(). - Added ScannerTestCase::testBug44305(). - Added QuickParseASTTests::testBug41935(). - Moved testBug39525() from ASTFailedTests to QuickParseASTTests. - Added ScannerTestCase::testBug45287(). - Moved testBug39528() from ASTFailedTests to QuickParseASTTests. - Moved testBug39538() from ASTFailedTests to QuickParseASTTests. - Added QuickParseASTTests::testBug39536(). - Moved testBug39536A() from ASTFailedTests to QuickParseASTTests. - Moved testBug39536B() from ASTFailedTests to QuickParseASTTests. - -2003-10-20 David Inglis - - use project owner ID in plugin class - * build/org/eclipse/cdt/core/build/managed/tests/StandardBuildTests.java - - set gnu elf parser since it can read the debug info. - * model/org/eclipse/cdt/core/model/tests/BinaryTests.java - -2003-10-01 Andrew Niefer - added testBug43951 to CompleteParseASTTest - -2003-10-01 Andrew Niefer - modified OtherPatternTests.testBug42911() and renamed it testBug42911_43988 - -2003-10-01 Andrew Niefer - added testBug43450 to ManagedBuildTests.java - added a user include to plugin.xml - -2003-09-30 Sean Evoy - Fix for bug 41826. - Updated the plugin file so that tool specifications have the new attribute - for header files. The test for the managed builder now insure that those - values are properly read. - * plugin.xml - * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java - -2003-09-30 John Camelon - Updated CompleteParseASTTest::testBug42872() - Moved FailedCompleteParseASTTest::testBug43503() to CompleteParseASTTest::testBug43503A(). - -2003-09-30 Andrew Niefer - added testBug43503_AmbiguousUsing() and testBug43503_UnableToResolveFunction() to - ParserSymbolTableTest - -2003-09-30 Andrew Niefer - Updated OtherPatternTests::testMacroPattern() to test for bug43862 - -2003-09-29 Andrew Niefer - added testBug43062 and testConstructorDestructor to FunctionMethodPatternTests - modified resources/search/classDecl.cpp & include.h to include more operators and a constructor - & destructor - -2003-09-29 Hoda Amer - -Added testBug43679_A() & testBug43679_B() to CompleteParseASTTest - -Renamed FailedCompleteParseASTExpressionTest to FailedCompleteParseASTTest - -Added FailedCompleteParseASTTest::testBug43503() - -2003-09-29 Andrew Niefer - added testBug42911 to OtherPatternTests - -2003-09-29 Andrew Niefer - added testbug43834() to ParserSymbolTableTest - -2003-09-29 John Camelon - Added testErrorHandling_1() to CompleteParseASTTest.java. - -2003-09-26 John Camelon - Added QuickParseASTTests::testBug43644() & testBug43062(). - Moved ASTFailedTests::testBug39531() to QuickParseASTTests. - -2003-09-25 Sean Evoy - Bug 43220 test for the new option type and retrieval methods. - * plugin.xml - * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java - -2003-09-25 Andrew Niefer - -bug43129 - Cannot search for definitions of global variables - -added testbug43129() in OtherPatternTests - * resources/search/include.h - * resources/search/classDecl.cpp - * search/org/eclipse/cdt/core/search/tests/OtherPatternTests.java - -2003-09-25 Bogdan Gheorghe - - separated dependency tests from the indexer tests - - modified the AutomatedIntegrationSuite to include new dependency - tests - - added the following tests: - * testDepTable - * testDepSourceChangeTree - * testDepHeaderChangeTree - * testDepHeaderChangeReindex - * testDepSourceChangeTable - * testDepHeaderChangeTable - -2003-09-25 Hoda Amer - Enabled CompleteParseASTExpressionTest.testPostfixTypenameIdentifier() - -2003-09-25 Andrew Niefer - added testNoResourceSearching() to OtherPatternTests - -2003-09-24 Hoda Amer - Added testNewTypeId(), testCastExpression(), testPostfixDynamicCast(), - testPostfixReinterpretCast(), testPostfixStaticCast(), and testPostfixConstCast() - to CompleteParseASTExpressionTest. - -2003-09-24 Sean Evoy - Changed the implementor of IScannerInfo to answer only absolute paths when asked for - includes paths. As a result, the managed builder test had to be updated to expect paths - in an OS-specific format. - * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java - -2003-09-24 John Camelon - Added testBug43375() to CompleteParseASTTest. - Moved testConditionalExpressionWithReferencesB_Bug43106 from failed tests to passed tests. - Moved testPMDotStar() and testPMArrowStar to failed tests w/defect number 43579. - -2003-09-23 John Camelon - Replaced ASTFailedTests::testBug39504A() with CompleteParseASTTest::testBug39504(). - Moved testPostfixTypeIdExpression2() && testPostfixTypeIdTypeId2() to CompleteParseASTExpressionTest. - Restructured expression reference tests so that the order of arrival will not cause JUnit failures. - -2003-09-23 Andrew Niefer - Added FunctionMethodPatternTests.testBug43498() - -2003-09-23 Hoda Amer - Added CompleteParseASTTest.testBug43373() - Added QuickParseASTTests.testBug43371() - -2003-09-23 Sean Evoy - As part of the fix for critical bug 43292, I had to add functionality to - the build model to remove configurations through an ITarget, and to set, - reset, and flag as default the make command associated with an ITarget. I - have updated the managed build test "testConfigurations" to exercise the - remove functionality. I added a test, "testMakeCommandManipulation" to - exercise the new make command functions in the interface. - * plugin.xml - * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java - -2003-09-22 Bogdan Gheorghe - - modified CompletionProposalsTests, BaseSearchTest - to avoid using isEnabled for the IndexManager - - Reordered the IndexManagerTests suite to allow all - tests to be run - -2003-09-22 Andrew Niefer - - modified resources/cfiles/CompletionProposalsTestStart.cpp - - modified CompletionProposalsTest.testCompletionProposals - - updated calls to SearchEngine.search - -2003-09-19 Sean Evoy - Updated the build test to check the binary parser specification in the - target specification. - * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java - -2003-09-18 Andrew Niefer - - removed testConditionalExpression_Bug43159 from FailedCompleteParseASTExpressionTest - and uncommented it (testConditionalExpression) in CompleteParseASTExpressionTest - - uncommented the following tests in CompleteParseASTExpressionTest : - testPostfixSubscript, testPostfixSubscriptA, testPostfixSubscriptB, - testPostfixSubscriptWithReferences - - updated ParserSymbolTableTests to use new addOperatorExpression function - - added testDerivedReference, testAddCopyConstructor to ParserSymbolTableTests - - fixed warning in ClassDeclarationPatternTests - -2003-09-17 Hoda Amer - Added more success test cases to CompleteParseASTExpressionTest - and more failure test cases to FailedCompleteParseASTExpressionTest - in testing PM_DOTSTAR, PM_ARROWSTAR, CONDITIONALEXPRESSION - -2003-09-16 Andrew Niefer - - modified resources/search/classDecl.cpp & include.h to include some operators - - added testOperators_bug43063_bug42979() to MethodDeclarationPatternTests - - added testParameterREferences to OtherPatternTests - -2003-09-16 Bogdan Gheorghe - Added asserts to all index lookups in IndexManagerTests - Fixed testAddNewFileToIndex - -2003-09-16 Hoda Amer - Added CompleteParseASTExpressionTest.testPrimaryThis() - -2003-09-15 John Camelon - Moved ASTFailedTests::testBug39556() to QuickParseASTTests. - Cleaned up some warnings in parser tests. - -2003-09-15 Andrew Niefer - added testGetConditionalOperand_bug43106 to ParserSymbolTableTests - -2003-09-15 John Camelon - Added CompleteParseASTTest::testBug42979(). - Updated CompleteParseASTTest::testAndrewsExample(). - -2003-09-13 Andrew Niefer - - added testBadParameterInfo to ParserSymbolTableTest - -2003-09-12 Hoda Amer - - Added lots of test cases to CompleteParseASTExpressionTest - -2003-09-12 John Camelon - Created QuickParseASTTests::testBug42985(). - Moved LokiFailures::testBug40419() to QuickParseASTTests. - Deleted LokiFailures as it was empty. - -2003-09-11 Andrew Niefer - Created search/SearchTestSuite - Added SearchTestSuite to AutomatedIntegrationSuite and removed the individual search tests - Added testReferencesInFunction to ClassDeclarationPatternTests - Modified resources/search/classDecl.cpp - Modified testNamespaceReferenceInClassBaseClause, testMacroPattern, testEnumerators, - testEnumeratorReferences in OtherPatternTests to test the Match result strings - -2003-09-11 John Camelon - Added CompleteParseASTTest::testBug42840() & testBug42872(). - Moved testBug39504B(), testBug39505A() & testBug39505B() from failed to QuickParse tests. - -2003-09-10 Sean Evoy - Added a test for resetting the value of a configuration to the defaults defined in the - plugin file. Work completed to resolve [Bug 41412] Restore Default in Managed Build - project's settings Not Working. - * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java - -2003-09-09 Hoda Amer - Moved three failed tests (bugs #42822, #42823, & #42822B) - from FailedCompleteParseASTExpressionTest to CompleteParseASTExpressionTest - -2003-09-09 John Camelon - Updated ScannerTestCase to keep up to date wrt ScannerException updates. - -2003-09-09 Andrew Niefer - Modified resources/search/classDecl.cpp - - to include more function declarations to test parameter matching - - to include an enumerator reference to test enumerators - Added testMethodDeclarationParameterMatching to FunctionMethodPatternTests.java - Added testEnumeratorReferences to OtherPatternTests - -2003-09-09 Hoda Amer - -Seperated the Expression result type test in a new file : completeParseASTExpressionTests. - -Added more test cases for simple types. - -Added FailedCompleteParseASTExpressionTest for failed reference tests. - -2003-09-08 John Camelon - Added CompleteParseASTTest::testThrowStatement(), testScoping(), testEnumeratorReferences(). - Removed LineNumberTest source as it is obsolete. - -2003-09-08 Andrew Niefer - Modified calls to ParserFactory to specify which language to use - Add CC nature to projects in BaseSearchTest & IndexManagerTests - -2003-09-05 Hoda Amer - Added tests to CompleteParseASTTest to test the expression result type - for function calls that reference variables with pointers (bug#42453). - -2003-09-05 John Camelon - Added CompleteParseASTTest::testSimpleIfStatement(), testSimpleWhileStatement(). - testSimpleSwitchStatement(), testSimpleDoStatement(). - -2003-09-05 Andrew Niefer - Added testEnumerators to OtherPatternTests.java - Modified resources/search/classDecl.cpp to include some enumerators - -2003-09-05 John Camelon - Updated CompleteParseASTTest::testSimpleForLoop() - -2003-09-04 John Camelon - Updated ASTFailedTests::testBug39702() to fail more accurately. - Added testSimpleFunctionBody(), testSimpleForLoop() to CompleteParseASTTest.java. - -2003-09-04 Andrew Niefer - Added testBug42541 to CompleParseASTTests.java - -2003-09-04 Hoda Amer - Call to ASTExpression getTypeId() changed to getTypeIdString(). - -2003-09-03 Andrew Niefer - Modified ParserSymbolTableTest.testConstructors to test > 2 constructors - -2003-09-03 John Camelon - Added testBug41445() to CompleteParseASTTests.java. - -2003-09-02 Hoda Amer - Modified CCompletionProposalsTest to complete on a body file - that includes a header file. - -2003-09-02 Andrew Niefer - added ParserSymbolTableTest.testNamespaceAlias() - added ParserSymbolTableTest.testUsingNamespaceAlias() - -2003-08-28 Andrew Niefer - Modified BaseSearchTest.setup to properly include the "include.h" file - -2003-08-28 Hoda Amer - - Added to completeParseASTTest testQualifiedNameReferences(), - testIsConstructor() and testIsDestructor(). - -2003-08-28 John Camelon - Moved bug39535 from failedTests to quickParse success tests. - -2003-08-25 John Camelon - Moved testBug39526() from ASTFailedTests.java to QuickParseASTTests.java. - Moved testBug41520() from FullParseFailedTests.java to CompleteParseASTTest.java - -2003-08-25 John Camelon - Updated TranslationUnitTests to not include K&R testing. - -2003-08-25 John Camelon - Added QuickParseASTTests::testBug39530(). - -2003-08-21 Hoda Amer - Enabled some tests in the IStructureTests, namely: - testGetFields(), testGetField(), testGetMethods(), testGetMethod(), - testIsAbstract(), testGetBaseTypes(), and testGetAccessControl(). - -2003-08-19 Sean Evoy - In order to properly support the indexing feature, the scanner has to - function as well as the version that ships with the toolset if possible. - This is made difficult by the fact that we are trying to be tool-agnostic. - One of the things that the scanner should take into account when it runs - is the "built-in" symbols and search paths that are defined for a compiler - in a given toolchain. While we need to come up with a standard mechanism - for the CDT in the future, the managed build system can provide a work-around - in the near-term. The easiest solution is to add an optional attribute to a - list element that flags the item as a built-in value. When clients like - the indexer query the build model, they will receive the union of the built-in - values and the user-defined values. - - Added built-in information to the existing plugin definition. Also added a - new include path and defined symol for updated test cases. - * plugin.xml - - Updated the test cases to check that built-ins defined in the plugin manifest - are properly read and dealt with during project creation and persisting settings. - * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java - -2003-08-20 Hoda Amer - Added testNewExpressions() to CompleteParseASTTest to test new expression's references. - -2003-08-14 John Camelon - Removed warnings from AutomatedIntegrationSuite.java (removing implicit accessor generation). - -2003-08-14 John Camelon - Added CompleteParseASTTest::testArrayModExpression(), testPointerVariable() & - testExceptionSpecification(). - -2003-08-13 John Camelon - Added testBug41520() to FullParseFailedTests.java. - Added testConstructorChain() to CompleteParseASTTest.java - -2003-08-13 John Camelon - Added testSimpleExpression(), testParameterExpressions() && - testNestedNamespaceExpression() to CompleteParseASTTest.java. - -2003-08-13 Sean Evoy - Renamed the 'AllBuildTest' class to 'ManagedBuildTest' and updated the - integration suite class. - * suite/org/eclipse/cdt/core/suite/AutomatedIntegrationSuite.java - - This class is renamed. It also has a renamed method 'testProjectCreation' - that creates a project the same way the new project wizard does. It uses - the new discovery mechanism to find the scanner info provider. - * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java - - Uses the new discovery mechanism to find the scanner info provider. - * build/org/eclipse/cdt/core/build/managed/tests/StandardBuildTests.java - -2003-08-12 Bogdan Gheorghe - Changed the order of tests in AutomatedIntegrationSuite to have - the indexing tests run last (the last indexing test shuts down - the indexing thread). - -2003-08-12 John Camelon - Added CompleteParseASTTest::testForewardDeclarationWithUsage(). - -2003-08-12 Hoda Amer - Added CompletionProposalsTest to the suit to test the generation - of completion proposals. - -2003-08-12 Bogdan Gheorghe - - Changed testVariableIndexPrefix, testVariableDeclaration to - reflect changes to the var search pattern - -2003-08-11 Andrew Niefer - - Added testMacroPattern to OtherPatternTests - - Changed the function tests to use new function/method pattern - -2003-08-11 Bogdan Gheorghe - - Added testMacros to IndexManagerTests - -2003-08-05 Andrew Niefer - - refactoring Parser Symbol Table function names - - added ParserSymbolTableTest.testConstructors() - -2003-08-01 Andrew Niefer - Added resources/search/header.h - Added ClassDeclarationPatternTests.testHeadersVisitedTwice() - Modified other search tests to reflect ICSearchResultCollector changes - -2003-07-31 Andrew Niefer - Added ParserSymbolTableTest.testForwardClassDeclaration - Added ParserSymbolTableTest.testForwardDeclarationUsedAsFunctionParam - -2003-07-31 Victor Mozgin - Moved testBug39540() from ASTFailedTests.java to QuickParseASTTests.java. - -2003-07-30 Hoda Amer - The CModelElementsTests has the pointer to function test back in its original place - (a variable) - -2003-07-30 Sean Evoy - * plugin.xml: - Updated the attribute names to reflect changes to the ManagedBuildInfo - extension point schema. - -2003-07-30 Victor Mozgin - Moved testBug39532() from ASTFailedTests.java to QuickParseASTTests.java. - -2003-07-29 John Camelon - Updated QuickParseASTTests for pointer to function updates. - Updated CompleteParseASTTests for typedef work. - -2003-07-28 Victor Mozgin - Moved testBug39546() from ASTFailedTests.java to QuickParseASTTests.java. - -2008-07-28 Andrew Niefer - -changes to resources/search/classDecl.cpp - -new search tests: - ClassDeclarationPatternTests.testClassReferenceInFieldType - ClassDeclarationPatternTests.testClassReferences - ClassDeclarationPatternTests.testEnumerationReferenceVisibleByInheritance - ClassDeclarationPatternTests.testGloballyQualifiedItem - ClassDeclarationPatternTests.testTypeReferenceVisibleByUsingDirective - FunctionMethodPatternTests.testMethodDeclaration - FunctionMethodPatternTests.testMethodDeclarationWithParams - OtherPatternTests.testFieldDeclaration - OtherPatternTests.testNamespaceDeclaration - OtherPatternTests.testNamespaceReferenceInClassBaseClause - OtherPatternTests.testNamespaceReferenceInUsingDirective - OtherPatternTests.testVariableDeclaration - -2003-07-28 John Camelon - Added/moved tests as necessary for bugfix 40842 & 40843. - -2003-07-28 Sean Evoy - In order to meet certain internal guidelines and to test the makefile - generator, the build model replied to some answers with hard-coded information. - This patch moves the information into the build model. - - * plugin.xml: - Added information to the target tags to test inheritence and - overridding the make command and clean command attributes. - - * build/org/eclipse/cdt/core/build/managed/tests/AllBuildTests.java: - Added code to test the make command and clean command attributes in - Targets. Also added a test to insure that sub-sub targets inherit settings - properly. - -2003-07-28 Andrew Niefer - This patch creates a new failing test class : FullParseFailedTests. This - is for writing failed tests on the parser doing COMPLETE_PARSE. - -2003-07-28 Victor Mozgin - Moved testBug39537() from ASTFailedTests.java to QuickParseASTTests.java. - -2003-07-27 John Camelon - Fixed failedTests::testBug40714() to fail properly. - -2003-07-25 Bogdan Gheorghe - Added new indexer test for refs - -2003-07-25 Victor Mozgin - Moved testBug39553() from ASTFailedTests.java to QuickParseASTTests.java. - Fixed IIncludeTest.h and IIncludeTests.java with #include macro tests. - -2003-07-24 John Camelon - Updated CompleteParseASTTests for Method/Field updates. - Fixed TortureTest's parser mode switch (was always QuickParsing). - -2003-07-24 Hoda Amer - Moved part of the CModelElementsTest (Templates of Variables ) to the failed tests. - Moved the same test (Templates of Variables) from ITemplateTests to failed tests. - -2003-07-24 Hoda Amer - This patch updates the CModelBuilder to use the AST instead of the DOM. - -2003-07-24 John Camelon - Updated CompleteParseASTTests. - -2003-07-23 Andrew Niefer - -Created search/BaseSearchTest to handle creating projects and setting them up to use the indexer - -removed ClassSpecifierSearchTests, its functionality is now in BaseSearchTest - -modified ClassDeclarationPatternTests to extend BaseSearchTest - -added FunctionMethodPatternTests - -added OtherPatternTests - -modified indexer/IndexManagerTests.testIndexContents - -2003-07-22 John Camelon - Updated CompleteParseASTTests. - -2003-07-21 Bogdan Gheorghe - Added new indexer test for newly added declarations - -2003-07-21 John Camelon - Created CompleteParseASTTest and added it to ParserTestSuite. - -2003-07-18 John Camelon - Updated ParserSymbolTableTests to remove dependencies on parser.ast.full classes. - Updated Parser test suites for updates to ParserFactory. - -2003-07-18 John Camelon - Wrote new tests in QuickParseASTQualifiedNameTest.java and added it to ParserTestSuite's suite. - -2003-07-18 Peter Graves - Removed un-needed file that was using a Java 1.4 reserved keyword (assert) - -2003-07-17 John Camelon - Rewrote the entire DOMTests suite to now be AST tests. - Removed DOMTests, BaseDOMTest, DOMFailedTests after methods were migrated to QuickParseASTTests & ASTFailedTests. - Made sure every parser failed test had a defect number associated with it. - -2003-07-17 Victor Mozgin - Added PerformanceTests.java (not included into AutomatedIntegrationSuite). - Moved testBug39523() from DOMFailedTest.java to PerformanceTests.java. - Moved testBug39550() from DOMFailedTest.java to DOMTests.java. - Moved testBug39552A() and testBug39552B()from DOMFailedTest.java to DOMTests.java. - TortureTest overrides timeout value for a very time-consuming test ('concat1.C'). - -2003-07-15 Victor Mozgin - Moved testBug39349() from DOMFailedTest.java to DOMTests.java. - Moved testBug39544() from DOMFailedTest.java to DOMTests.java. - -2003-07-14 Victor Mozgin - Added failed tests that correspond to recently reported PRs. - -2003-07-11 Bogdan Gheorghe - Added ClassSpecifierSearchTest - -2003-07-08 John Camelon - Updated IScanner, clients & implementations to use IScannerInfo. - -2003-07-07 John Camelon - Update ClassDeclarationPatternTests::testBug39652(). - -2003-07-04 John Camelon - Moved testBug39652() from failed search tests to ClassDeclarationPatternTests. - -2003-07-04 Andrew Niefer - Added new source Folder search - Added search/ClassDeclarationPatternTests::testMatchSimpleDeclaration - Added search/ClassDeclarationPatternTests::testMatchNamespaceNestedDeclaration - Added new resource folder search & containing file classDecl.cpp - Added new failures package ord.eclipse.cdt.core.search.failedTests - Added new failing test PatternsFailedTests::testBug39652 - - * Note that ClassDeclarationPatternTests and PatternsFailedTests both must be run as plugin tests - -2003-07-03 Bogdan Gheorghe - Added IndexManagerTest::testAddNewFileToIndex() - Added IndexManagerTest::testRemoveProjectFromIndex() - Added IndexManagerTest::testRemoveFileFromIndex() - -2003-07-03 Sean Evoy - New test suite that exercises the standard make build system including the new - IScannerInfoListener and IScannerInfoProvider interfaces. - - Changes to the existing managed build test suite include tests of the new - IScannerInfoxxx interface discovery, subscription, and change notification methods. - - * build/org/eclipse/cdt/core/build/managed/tests/StandardBuildTests.java - * build/org/eclipse/cdt/core/build/managed/tests/AllBuildTests.java - -2003-07-02 Victor Mozgin - Added DOMTests::testBug39501(). - Improved filtering of expected failures/inconclusives in TortureTest. - -2003-06-30 John Camelon - Added DOMTests::testAssignmentExpression() - Added PreprocessorConditionalTest to ParserTestSuite. - -2003-06-28 John Camelon - Completed Quickparse expression representation. - Updated ExpressionEvaluation and associated tests. - -2003-06-26 John Camelon - Update IASTExpression. - Move Parser.Backtrack and Parser.EndOfFile to external interface. - -2003-06-25 John Camelon - Added DOMFailedTest::testBug39349(). - Added DOMTests::testBug39348(). - -2003-06-25 John Camelon - Create new interface and support for calculating lineNumber/offset mapping. - Updated IASTClassSpecifier for qualified name query. - Began structuring expressions and declarators in Parser for ISourceElementRequestor. - Updated other packages to use new interfaces. - Updated automatedtests/torture test to use new line number information. - -2003-06-24 John Camelon - Updates for ISourceElementRequestor - elaborated types & enumerations. - -2003-06-23 John Camelon - Factory/constructor signature updates. - -2003-06-17 Victor Mozgin - Added MacroTests.java (invocation in AllCoreTests). - Added MacroTests.c to resources. - -2003-06-17 Sean Evoy - Moved the ManagedBuildInfo extension point from the plugin file in org.eclipse.cdt.ui.tests - Added new options to sub target for include paths and preprocessor symbols - Added test for IManagedBuildPathInfo - * build/org/eclipse/cdt/core/build/managed/tests/AllBuildTests.java - -2003-06-17 Brent Nicolle - Added Interface tests of IStructure.java. - -2003-06-17 Victor Mozgin - Added DeclaratorsTests.java (invocation in AllCoreTests). - Added DeclaratorsTests.cpp to org.eclipse.cdt.core.model.tests.resources. - -2003-06-16 Victor Mozgin - Added testOldKRFunctionDeclarations() to DOMTests. - Added testKRFunctionDeclarations() to TranslationUnitTests. - -2003-06-16 Vladimir Hirsl - Added /build, /parser, /failures and /suite directories to the library. - Copied resources from /model/org.eclipse.cdt.core.model.tests.resources - to /model/org/clipse/cdt/core/model/tests/resources/cmodel. - Added class AISResultPrinter to format test results. - Class AutomatedIntegrationSuite now implements IPlatformRunnable. - -2003-06-14 Victor Mozgin - Moved testBugSingleton192() from LokiFailures to DOMTests. - Added testPointersToMembers() and testPointersToMemberFunctions() to DOMTests. - Added testBug36290() and testBug36931() to DOMTests. - -2003-06-13 John Camelon - Added Class/Base infrastructure to public interfaces & requestor callback. - Moved many internal interfaces to external packages. - Organized imports. - -2003-06-13 Victor Mozgin - Renamed NullParserCallback into NullSourceElementRequester in AutomatedFramework. - -2003-06-13 John Camelon - Merged ParserSymbolTable branch back into HEAD. - -2003-06-12 John Camelon - Get rest of JUnit tests working, will merge back to HEAD branch. - -2003-06-12 John Camelon - Introduction of ASTFactory strategy, some restructuring of packages and interfaces. - -2003-06-11 Victor Mozgin - Old Java TestCase.txt and TestCase2.txt for partioning testing have been replaced with C/C++ files. - Modified AutomatedIntegrationSuite.java so it doesn't produce JUnit warning anymore. - All tests in org.eclipse.cdt.ui.tests should pass now. - -3003-06-11 Peter Graves - Update the test.xml to get the location of org.eclipse.test from a property - if set. If the property is not set, it will default to the old value. - -2003-06-11 Victor Mozgin - Added TortureTest to test CDT C++ parser with GCC testsuites. - GCC testsuites are not included. - -2003-06-10 John Camelon - Futher pursuit of the golden hammer, symbol table integration. - -2003-06-10 Brent Nicolle - Added some Interface tests of (IInclude, IMacro, IStructure). - Made sure all the Test Suites have names in the JUnit hierarchy. - -2003-06-09 John Camelon - First step in replacing IParserCallback with ISourceElementRequestor. - -2003-06-09 Victor Mozgin - Moved testBug36769() from ACEFailedTest.java to DOMTests.java. - Removed ACEFailedTest.java as it is empty now. - Added DOMTests.testBug36769B(). - -2003-06-09 Victor Mozgin - Moved testBug36932() from DOMFailedTest.java to DOMTests.java. - Added DOMTests.testBug36932B() and DOMTests.testBug36932C(). - -2003-06-09 Victor Mozgin - Moved testBug36701() from ScannerFailedTests.java to ScannerTestCase.java. - Renamed it to testBug36701A() and fixed it. - Added ScannerTestCase.testBug36701B(). - -2003-06-07 Victor Mozgin - Moved testBug36766A(), testBug36766B() & testBug36766C() from STLFailedTests.java to DOMTests.java. - Renamed them to testBug36766and36769x(), as they cover both PRs. - Added testBug36766and36769D() - test for templated destructor. - -2003-06-05 John Camelon - Moved testBug23478A() & testBug23478B() from failed tests to TranslationUnitTests.java. - Removed TranslationUnitFailedTests.java as it was empty. - -2003-05-29 Andrew Niefer - Modified tests to support eType & PtrOp changes in core - Added ParserSymbolTableTest::testTemplateParameterAsParent - Added ParserSymbolTableTest::testTemplateInstanceAsParent - Added ParserSymbolTableTest::testTemplateParameterDefaults - Added ParserSymbolTableTest::testTemplateParameterAsFunctionArgument - started ParserSymbolTableTest::incompletetestTemplateSpecialization - -2003-05-26 John Camelon - Rollback PST/Parser integration. - -2003-05-13 Andrew Niefer - Modified ParserSymbolTableTest to use new interface - -2003-05-08 Andrew Niefer - Added ParserSymbolTableTest::testMarkRollback - -2003-05-06 John Camelon - Further integration of SymbolTable into Parser, some refactoring. - -2003-05-05 John Camelon/Andrew Niefer - Added CrossReferenceTests to ParserTestSuite to test symbol-table/DOM interworking. - -2003-05-05 Andrew Niefer - Rewrote ParserSymbolTableTest to reflect structural changes to the symbol table. - -2003-05-01 Andrew Niefer - Updated FractionalAutomatedTest to use threads - Modified ScannerTestCase::testBug36287 - Added ScannerTestCase::testBug37011 - Added ScannerTestCase::testOtherPreprocessorDefines - -2003-04-28 John Camelon - Moved testBug36730() & testBug37019() from DOMFailedTests to DOMTests. - -2003-04-28 Andrew Niefer - Added DOMFailedTest::testBug37019 - Added DOMFailedTest::testBug36932 - Added ScannerFailedTest::testBug37011 - -2003-04-28 John Camelon - Added DOMTests::testOrder(). - -2003-04-28 Peter Graves - * model/org/eclipse/cdt/core/model/tests/BinaryTests: - Updated to remove a few small errors, and deal with some changes - to the core CDT - -2003-04-27 John Camelon - Added testBug36932() to DOMTests. - Moved testBugFunctor758() from LokiFailures to DOMTests. - Moved testBug36704() from DOMFailedTest to DOMTests. - Moved testBug36699() from DOMFailedTest to DOMTests. - Moved testBug36691() from DOMFailedTest to DOMTests. - -2003-04-25 Andrew Niefer - Moved ACEFailedTest::testBug36771 to DOMTests - Moved DOMFailedTest::testBug36714 to DOMTests - Updated ScannerTestCase::testBug36816 - -2003-04-25 John Camelon - Added DOMTests::testBug36852(). - Added DOMTests::testBug36764(). - Moved DOMFailedTests::testBug36702() to DOMTests(). - -2003-04-24 John Camelon - Moved fixed tests from FailedTests to DOMTests. - Added DOMTests::testBug36799(). - Cleaned up tests to reduce amount of code necessary to maintain these things. - -2003-04-24 John Camelon - Moved fixed tests from FailedTests to DOMTests. - Added LokiFailures.java to failed tests directory. - -2003-04-24 Andrew Niefer - Added AutomatedFramework.java - Added FractionalAutomatedTest (which derives from AutomatedFramework) - Refactored AutomatedTest to derive from AutomatdFramework - Added ScannerTestCase.testBug36816 - Added ScannerTestCase.testBug36255 - -2003-04-24 John Camelon - Fixed Java 1.3 compliance issue w/AutomatedTest.java - Fixed False failure in HelloWorld.java. - -2003-04-21 John Camelon - Updated DOMTests::testBug36247(). - Moved testBug36692(), testBug36703(), testBug36708(), testBug36707(), testBug36689() - and testBug36690() from DOMFailedTests to DOMTests and updated them. - -2003-04-20 John Camelon - Added DOMTests::testBug36551(). - Adjusted AutomatedTest to turn on line numbering. - Added DOMFailedTests and 11 failed test cases. - -2003-04-17 Andrew Niefer - Added ScannerTestCase::testBug36695() - Moved ScannerFailedTest::testBug36521 to ScannerTestCase::testBug36521() - Moved ScannerFailedTest::testBug36509 to ScannerTestCase::testBug36509() - Moved ScannerFailedTest::testBug36475 to ScannerTestCase::testBug36475() - Updated ScannerTestCase::testBug36047 - Updated ScannerTestCase::testBug36045 - -2003-04-17 John Camelon - Updated DOMTests::testBug36600(). - Updated LineNumberTest::testDOMLineNos(). - Added DOMTests::testBug36559(). - -2003-04-17 Andrew Niefer - Added AutomatedTest - Added resources.cFiles - Added resources.cppFiles - -2003-04-16 John Camelon - Added DOMTests::testBug36532(). - Added DOMTests::testBug36432(). - Added DOMTests::testBug36594(). - Added DOMTests::testBug36600(). - Added DOMTests::testArrayOfPointerToFunctions(). - -2003-04-15 John Camelon - Added ScannerTestCase::testBug36434(). - Added ScannerTestCase::testMultipleLines(). - Added ParserTestSuite. - Added LineNumberTest. - Updated CModelElementsTests to set the Nature of the C++ project appropriately. - -2003-04-15 Andrew Niefer - Moved ScannerFailedTest::testBug36047 to ScannerTestCase::testBug36047 - Added ScannerFailedTest::testBug36475 - -2003-04-13 John Camelon - Added DOMTests::testPointersToFunctions. - -2003-04-11 John Camelon - Added DOMTests::testBug36247(). - -2003-04-11 Andrew Niefer - Moved ScannerFailedTest::testBug36316 to ScannerTestCase::testBug36316 - Added ScannerFailedTest::testBug36047 - Added ScannerTestCase::testNestedRecursiveDefines - -2003-04-10 John Camelon - Added DOMTests::testBug36237(). - -2003-04-09 John Camelon - Removed all the old Code Model Builder source that was no longer being used (NewModelBuilder.java, etc.). - Moved all the files in parser.util directory to the dom. - Organized imports. - Added DOMTests::testTemplateDeclarationOfMethod(). - Added DOMTests::testBug36250(). - Added DOMTests::testBug36240(). - Added DOMTests::testBug36254(). - -2003-04-09 John Camelon - Updated ScannerTest::testBug36045(). - Added ScannerTest::testBug36287(). - Added DOMTests::testBug36288(). - -2003-04-06 Andrew Niefer - Added ParserSymbolTableTest::testOverloadRanking() - -2003-04-04 Alain Magloire - * src/org/eclipse/cdt/testplugin/util/VerifyDialog.java: - Remove some warnings. - -2003-04-03 John Camelon - Updated ScannerTest::testSimpleIfdef() for bug36019. - Updated ScannerTest::testNumerics() for bug36020. - Added ScannerTest::testBug36045(). - Updated DOMTests::testTemplateDeclaration() for template grammar updates. - -2003-04-01 Andrew Niefer - ParserSymbolTableTest. modifications to using declaration tests to reflect changes in the - symbol table. Also added testUserDefinedConversionSequences() - -2003-04-01 John Camelon - Added testBug35906() to DOMTests. - -2003-03-31 John Camelon - Added testStruct() to DOMTests. - Added test35892()to ScannerTest. - -2003-03-31 Andrew Niefer - In ParserSymbolTableTest, renamed testFunctionResolution_2() to testFunctionResolution_PointersAndBaseClasses(), - and modified to reflect changes in function resolution. - Added testFunctionResolution_TypedefsAndPointers(). - -2003-03-31 John Camelon - Added testWeirdStrings() and testNumerics() to ScannerTestCase. - Added testTemplateSpecialization(), testTemplateDeclaration(), testBug26467(), - testTypedef() and testTemplateInstantiation() to DOMTests. - -2003-03-28 John Camelon - Added testConstructorChain() and testASMDefinition() to DOMTests. - -2003-03-27 Alain Magloire - Changes were done in the Core Model API, the hierarchy is now - ICModel - ICProject - ICContainer - ITranslationUnit - IArchive - IBinary - We adjust the tests. - * model/org/eclipse/cdt/core/model/tests/ArchiveTests.java - * model/org/eclipse/cdt/core/model/tests/BinaryTests.java - * model/org/eclipse/cdt/core/model/tests/TranslationUniTests.java - * model/org/eclipse/cdt/core/model/tests/WorkingCopyTests.java - -2003-03-26 Andrew Niefer - In ParserSymbolTableTest : - updated all tests to reflect TypeInfo changes - Added testFunctionResolution() & testFunctionResolution_2() in - -2003-03-25 John Camelon - Added testDeclSpecifier(), testNamespaceDefinition(), testLinkageSpecification(), - testUsingClauses() and testEnumSpecifier() to DOMTests. - -2003-03-23 John Camelon - Added ptrOperator() test to DOMTests. - Added testFunctionModifiers() test to DOMTests. - Added testArrays() test to DOMTests. - -2003-03-20 Alain Magloire - - Patch from Amer Hoda, tests for the CElement deltas for Translation Units. - * model/org/eclipse/cdt/core/model/tests/ElementDeltaTest.java - * model/org/eclipse/cdt/core/model/tests/resource/WorkingCopyTestStart.h - -2003-03-19 Alain Magloire - Patch from Amer Hoda, introducing a simple test for the core model. - * model/org/eclipse/cdt/core/model/tests/WorkingCopyTests.java - * model/org/eclipse/cdt/core/model/tests/resource/WorkingCopyTestStart.h - -2003-03-18 John Camelon - Updated DOMTests to validate simple case of a function declaration with multiple parameters. - * parser/org/eclipse/cdt/core/parser/tests/DOMTests.java - -2003-03-11 John Camelon - Updated DOMTests for core.internal.parser change of merging DeclarationSpecifier and DeclSpecifier - Organized imports - * parser/org/eclipse/cdt/core/parser/tests/DOMTests.java - * parser/org/eclipse/cdt/core/parser/tests/ParserSymbolTableTest.java - -2003-03-10 John Camelon - Added macro pasting tests - -2003-03-06 Andrew Niefer - Added tests for exercising Namespaces & using directives in new parser's symbol table - -2003-03-04 Doug Schaefer - This is a pretty big patch, but it is the merge of the NewParser1 branch into the HEAD branch. lder "parser") - JUnit tests for testing various pieces (source folder "parser" in cdt.ui.tests. - -2003-01-29 Peter Graves - - Fixed the warnings when accessing static methods - * src/org/eclipse/cdt/testplugin/util/DialogCheck.java: - * src/org/eclipse/cdt/testplugin/CTestPlugin.java - * src/org/eclipse/cdt/testplugin/TestWorkbench.java - * ChangeLog: make all entries have the same formatting - -2002-12-17 Peter Graves - - * plugin.xml,test.xml: Some simple cleanups to remove refrences to the jdt and - to move closer to automated running - -2002-11-27 Alain Magloire - - * model/org/eclipse/cdt/core/model/tests/CModelTests.java: - Use CoreModel.getDefault(). - -2002-10-30 Alain Magloire - - * model/org/eclipse/cdt/core/model/tests/CModelTests.java (testGetNatureID): - The fields and the methods use in this test was removed from the CoreModel class. - (testHasNature): The method use in this case was refactor in the classes - CProjectNature and CCProjectNature, fix the test. - -2002-10-18 Peter Graves - - src/org/eclipse/cdt/testplugin/CProjectHelper.jada - Cleanup of the CProjectHelper file to remove unused imports, commeted out code etc. - -======= -2003-04-21 Andrew Niefer - Added DOMFailedTests::testBug36713() - Added DOMFailedTests::testBug36714() - Added DOMFailedTests::testBug36717() - Added DOMFailedTests::testBug36730() - -2003-04-21 Andrew Niefer - Added ScannerTestCase::testBug36695() - Moved ScannerFailedTest::testBug36521 to ScannerTestCase::testBug36521() - Moved ScannerFailedTest::testBug36509 to ScannerTestCase::testBug36509() - Moved ScannerFailedTest::testBug36475 to ScannerTestCase::testBug36475() - Updated ScannerTestCase::testBug36047 - Updated ScannerTestCase::testBug36045 - -2003-04-20 John Camelon - Added DOMTests::testBug36551(). - Adjusted AutomatedTest to turn on line numbering. - Added DOMFailedTests and 11 failed test cases. - -2003-04-17 John Camelon - Updated DOMTests::testBug36600(). - Updated LineNumberTest::testDOMLineNos(). - Added DOMTests::testBug36559(). - -2003-04-17 Andrew Niefer - Added AutomatedTest - Added resources.cFiles - Added resources.cppFiles - -2003-04-16 John Camelon - Added DOMTests::testBug36532(). - Added DOMTests::testBug36432(). - Added DOMTests::testBug36594(). - Added DOMTests::testBug36600(). - Added DOMTests::testArrayOfPointerToFunctions(). - -2003-04-15 John Camelon - Added ScannerTestCase::testBug36434(). - Added ScannerTestCase::testMultipleLines(). - Added ParserTestSuite. - Added LineNumberTest. - Updated CModelElementsTests to set the Nature of the C++ project appropriately. - -2003-04-15 Andrew Niefer - Moved ScannerFailedTest::testBug36047 to ScannerTestCase::testBug36047 - Added ScannerFailedTest::testBug36475 - -2003-04-13 John Camelon - Added DOMTests::testPointersToFunctions. - -2003-04-11 John Camelon - Added DOMTests::testBug36247(). - -2003-04-11 Andrew Niefer - Moved ScannerFailedTest::testBug36316 to ScannerTestCase::testBug36316 - Added ScannerFailedTest::testBug36047 - Added ScannerTestCase::testNestedRecursiveDefines - -2003-04-10 John Camelon - Added DOMTests::testBug36237(). - -2003-04-09 John Camelon - Removed all the old Code Model Builder source that was no longer being used (NewModelBuilder.java, etc.). - Moved all the files in parser.util directory to the dom. - Organized imports. - Added DOMTests::testTemplateDeclarationOfMethod(). - Added DOMTests::testBug36250(). - Added DOMTests::testBug36240(). - Added DOMTests::testBug36254(). - -2003-04-09 John Camelon - Updated ScannerTest::testBug36045(). - Added ScannerTest::testBug36287(). - Added DOMTests::testBug36288(). - -2003-04-06 Andrew Niefer - Added ParserSymbolTableTest::testOverloadRanking() - -2003-04-04 Alain Magloire - * src/org/eclipse/cdt/testplugin/util/VerifyDialog.java: - Remove some warnings. - -2003-04-03 John Camelon - Updated ScannerTest::testSimpleIfdef() for bug36019. - Updated ScannerTest::testNumerics() for bug36020. - Added ScannerTest::testBug36045(). - Updated DOMTests::testTemplateDeclaration() for template grammar updates. - -2003-04-01 Andrew Niefer - ParserSymbolTableTest. modifications to using declaration tests to reflect changes in the - symbol table. Also added testUserDefinedConversionSequences() - -2003-04-01 John Camelon - Added testBug35906() to DOMTests. - -2003-03-31 John Camelon - Added testStruct() to DOMTests. - Added test35892()to ScannerTest. - -2003-03-31 Andrew Niefer - In ParserSymbolTableTest, renamed testFunctionResolution_2() to testFunctionResolution_PointersAndBaseClasses(), - and modified to reflect changes in function resolution. - Added testFunctionResolution_TypedefsAndPointers(). - -2003-03-31 John Camelon - Added testWeirdStrings() and testNumerics() to ScannerTestCase. - Added testTemplateSpecialization(), testTemplateDeclaration(), testBug26467(), - testTypedef() and testTemplateInstantiation() to DOMTests. - -2003-03-28 John Camelon - Added testConstructorChain() and testASMDefinition() to DOMTests. - -2003-03-27 Alain Magloire - Changes were done in the Core Model API, the hierarchy is now - ICModel - ICProject - ICContainer - ITranslationUnit - IArchive - IBinary - We adjust the tests. - * model/org/eclipse/cdt/core/model/tests/ArchiveTests.java - * model/org/eclipse/cdt/core/model/tests/BinaryTests.java - * model/org/eclipse/cdt/core/model/tests/TranslationUniTests.java - * model/org/eclipse/cdt/core/model/tests/WorkingCopyTests.java - -2003-03-26 Andrew Niefer - In ParserSymbolTableTest : - updated all tests to reflect TypeInfo changes - Added testFunctionResolution() & testFunctionResolution_2() in - -2003-03-25 John Camelon - Added testDeclSpecifier(), testNamespaceDefinition(), testLinkageSpecification(), - testUsingClauses() and testEnumSpecifier() to DOMTests. - -2003-03-23 John Camelon - Added ptrOperator() test to DOMTests. - Added testFunctionModifiers() test to DOMTests. - Added testArrays() test to DOMTests. - -2003-03-20 Alain Magloire - - Patch from Amer Hoda, tests for the CElement deltas for Translation Units. - * model/org/eclipse/cdt/core/model/tests/ElementDeltaTest.java - * model/org/eclipse/cdt/core/model/tests/resource/WorkingCopyTestStart.h - -2003-03-19 Alain Magloire - Patch from Amer Hoda, introducing a simple test for the core model. - * model/org/eclipse/cdt/core/model/tests/WorkingCopyTests.java - * model/org/eclipse/cdt/core/model/tests/resource/WorkingCopyTestStart.h - -2003-03-18 John Camelon - Updated DOMTests to validate simple case of a function declaration with multiple parameters. - * parser/org/eclipse/cdt/core/parser/tests/DOMTests.java - -2003-03-11 John Camelon - Updated DOMTests for core.internal.parser change of merging DeclarationSpecifier and DeclSpecifier - Organized imports - * parser/org/eclipse/cdt/core/parser/tests/DOMTests.java - * parser/org/eclipse/cdt/core/parser/tests/ParserSymbolTableTest.java - -2003-03-10 John Camelon - Added macro pasting tests - -2003-03-06 Andrew Niefer - Added tests for exercising Namespaces & using directives in new parser's symbol table - -2003-03-04 Doug Schaefer - This is a pretty big patch, but it is the merge of the NewParser1 branch into the HEAD branch. lder "parser") - JUnit tests for testing various pieces (source folder "parser" in cdt.ui.tests. - -2003-01-29 Peter Graves - - Fixed the warnings when accessing static methods - * src/org/eclipse/cdt/testplugin/util/DialogCheck.java: - * src/org/eclipse/cdt/testplugin/CTestPlugin.java - * src/org/eclipse/cdt/testplugin/TestWorkbench.java - * ChangeLog: make all entries have the same formatting - -2002-12-17 Peter Graves - - * plugin.xml,test.xml: Some simple cleanups to remove refrences to the jdt and - to move closer to automated running - -2002-11-27 Alain Magloire - - * model/org/eclipse/cdt/core/model/tests/CModelTests.java: - Use CoreModel.getDefault(). - -2002-10-30 Alain Magloire - - * model/org/eclipse/cdt/core/model/tests/CModelTests.java (testGetNatureID): - The fields and the methods use in this test was removed from the CoreModel class. - (testHasNature): The method use in this case was refactor in the classes - CProjectNature and CCProjectNature, fix the test. - -2002-10-18 Peter Graves - - src/org/eclipse/cdt/testplugin/CProjectHelper.jada - Cleanup of the CProjectHelper file to remove unused imports, commeted out code etc. - +2004-02-13 Andrew Niefer + updated tests using search to handle InterruptedExcpetion + +2004-02-12 Andrew Niefer + UnCommented CompleteParseASTTest.testBug47628 + Added CompleteParseASTTest.testBug47636 + Added CompleteParseASTTest.testBug45697 + Updated ParserSymbolTableTests & ParserSymbolTableTemplateTests for proper use of const & volatile + Added ParserSymbolTableTests.testbug47636FunctionParameterComparisons_1 + Added ParserSymbolTableTests.testbug47636FunctionParameterComparisons_2 + Added ParserSymbolTableTests.testbug47636FunctionParameterComparisons_3 + Added ParserSymbolTableTests.testbug47636FunctionParameterComparisons_4 + +2004-02-11 John Camelon + Updated tests to accommodate for new Parser class hierarchy and factories. + +2004-02-10 Andrew Niefer + Added new File: ParserSymbolTableTemplateTests.java (contains 30 new tests) + Added new File: FailingTemplateTests.java (contains 5 test stubs for failing cases) + +2004-02-10 John Camelon + Added testBug47682() to QuickParseASTTests.java. + +2004-02-06 Bogdan Gheorghe + Added FunctionMethodPatternTests.testMethodDeclarationWithNoParameters + +2004-02-08 John Camelon + Moved testErrorHandling_1() from failed tests to CompleteParseASTTest. + Moved testBug44340() from failed tests to CompleteParseASTTest. + +2004-02-06 Andrew Niefer + Added CompletionParseTest.testBug51260 + +2004-02-04 John Camelon + Added preliminary SelectionParseTests to test SELECTION_PARSE clients. + Added SelectionParseTests to ParserTestSuite. + +2004-01-30 John Camelon + Added QuickParseASTTest::testBug47752. + +2004-01-28 John Camelon + Added ScannerTestCase::testBug50821(). + +2004-01-27 John Camelon + Renamed ContextualParseTest to CompletionParseTest. + Updated COMPLETION_PARSE clients to use SINGLE_NAME_REFERENCE rather than STATEMENT_START. + +2004-01-27 Andrew Niefer + Added CompleteParseASTTest.testCBoolAsParameter + +2004-01-26 John Camelon + Updated clients to use new Scanner logging service. + Added ScannerTestCase.testBug46402(). + +2004-01-26 Andrew Niefer + Added ParserSymbolTableTest.testLongLong() + Added ParserSymbolTableTest.testComplex() + Added ParserSymbolTableTest.test_Bool() + +2004-01-22 John Camelon + Updated Scanner tests for package updates in the core. + +2004-01-19 John Camelon + Updated ParserSymbolTableTest to accommodate new constructors for COMPLETE_PARSE ASTNodes (line # info). + Updated CModelElementsTest to enable testing for line numbers. + Removed CModelElementsFailedTests.testBug36379() as it is redundant due to CModelElementTests.testCModelElements() is complete. + Removed CModelElementsFailedTests from AutomatedIntegrationSuite as it is empty. + +2004-01-16 Andrew Niefer + Modified CompleteParseASTTest.testUsingClauses + Added ParserSymbolTableTest.testIterator_1 & testIterator_2 + +2004-01-16 Hoda Amer + Modified CModelElementsTest to test for enumerator constant expression + Bug#47552 + +2004-01-15 Andrew Niefer + Moved testBug48307_FriendFunction_1 & testBug48307_FriendFunction_2 to ContextualParseTest + Updated ContextualParseTest now that the order of prefix lookup results is predictable. + +2004-01-15 Hoda Amer + Moved Content Assist testing to the UI.tests plugin + +2004-01-15 John Camelon + Updated references to LookupResult as it was renamed to ILookupResult. + Removed some warnings from parser tests. + Updated Scanner & QuickParseTests to accommodate new errors and signatures. + Added QuickParseASTTests.testBug44370(). + +2004-01-13 John Camelon + Updated ContextualParseTest to accommodate bugfixes 48909 & 49702. + +2004-01-08 Andrew Niefer + Added CompleteParseASTTest.testBug43110_XRef + Added ParserSymbolTableTest.testBug43110_Ellipses + Added ParserSymbolTableTest.testBug43110_EllipsesRanking + Added ParserSymbolTableTest.testBug43110_EllipsesRanking_2 + +2004-01-08 Andrew Niefer + Added CompleteParseASTTest::testBug48307_FriendFunction_1 + Added CompleteParseASTTest::testBug48307_FriendFunction_2 + +2004-01-06 Andrew Niefer + Added ContextualParseTest::testCompletionLookup_LookupKindTHIS + +2004-01-06 John Camelon + Added CompleteParseASTTest::testBug43110() and QuickParseASTTests::testBug43110(). + +2003-12-31 Hoda Amer + Small change to test parameters with initial clause in ITemplateTest + +2003-12-22 Hoda Amer + Temporary disabled completion proposal test until a better test is written. + +2003-12-17 Andrew Niefer + test changes for content assist + added ContextualParseTest.testCompletionLookup_FriendClass_1() + added ContextualParseTest.testCompletionLookup_FriendClass_2() + added ContextualParseTest.testCompletionLookup_ParametersAsLocalVariables() + modified ParserSymbolTableTest.testVisibilityDetermination() + +2003-12-17 Hoda Amer + Small modifications to cope with the new interfaces + +2003-12-15 Andrew Niefer + added ContextualParseTest.testCompletionLookup_Unqualified + added ContextualParseTest.testCompletionLookup_Qualified + added ContextualParseTest.testCompletionLookup_Pointer + +2003-12-12 John Camelon + Updated testBaseCase_SimpleDeclaration() for keyword assertions. + +2003-12-11 John Camelon + Expanded ContextualParseTest::testBaseCase(). + Updated tests to deal with new signatures/exceptions. + +2003-12-11 Alain Magloire + + New test files for the ICPathEntry in core model. + + * model/org/eclipse/cdt/core/model/tests/CPathEntryTest.java + +2003-12-09 Andrew Niefer + added ParserSymbolTableTests.testVisibilityDetermination() + added ParserSymbolTableTests.testPrefixFiltering + +2003-12-09 Hoda Amer + Modified the Completion Proposal test to include case sensitivity + in the order of proposals. + +2003-12-09 John Camelon + Added ContextualParseTest.java and some test cases. + +2003-12-04 John Camelon + Removed some warnings. + Moved testBug39678() from ASTFailedTests to QuickParseASTTests. + +2003-12-03 Andrew Niefer + -modified FailedCompleteParseASTTest.testPMDotStarPointerToMemberFunction_Bug43242 + .testPMArrowStarPointerToMemberFunction_Bug43242 + .testPMDotStar_bug43579 + .testPMArrowStar_bug43579 + -created: FailedCompleteParseASTTest.testBug47926 + CompleteParseASTTest.testQualifiedLookup + ParserSymbolTableTest.testPrefixLookup_Ambiguities + ParserSymbolTableTest.testQualifiedUnqualifiedLookup + -modified resources/search/classDecl.cpp & include.h + -created FunctionMethodPatternTests.testLookupForDefinition + + +2003-11-27 Andrew Niefer + tests for Symbol table prefix lookup + ParserSymbolTableTest.testBug46882 + ParserSymbolTableTest.testPrefixLookup_Unqualified + ParserSymbolTableTest.testPrefixLookup_Qualified + ParserSymbolTableTest.testPrefixLookup_Inheritance + +2003-11-27 Andrew Niefer + add CompleteParseASTTest.testBug47624() + +2003-11-18 Andrew Niefer + update ParserSymbolTableTest to reflect refactoring of Declaration into 4 separate classes. + +2003-11-13 Hoda Amer + Added CompleteParseASTTest::testBug44342(): Failure to dereference function calls after a . or an -> + Moved testErrorHandling_1() to FailedCompleteParseASTTest + Added FailedCompleteParseASTTest::testBug44340():Inline functions fail to resolve references + +2003-11-06 Andrew Niefer + Remove dependancy on cdt.internal.ui.search.CSearchResultCollector in BaseSearchTest and DependencyTests + +2003-11-07 John Camelon + Moved testBug39554() from ASTFailedTests to QuickParseASTTests. + +2003-11-05 John Camelon + Added CompleteParseASTTest::testBug44838(). + Added CompleteParseASTTest::testBug46165(). + Added ScannerTestCase::testBug45551(). + +2003-11-05 John Camelon + Updated parser clients to use new ParserFactory (stand-alone parser work item). + +2003-11-05 John Camelon + Updated parser clients to use new IProblem strategy. + +2003-10-28 Andrew Niefer + Added testBug44510() to CompleteParseASTTest + Added testBug44925() to CompleteParseASTTest + Added testBug44510() to ParserSymbolTableTest + +2003-10-24 John Camelon + Added testBug45476() to ScannerTestCase. + Added testBug45477() to ScannerTestCase. + +2003-10-24 John Camelon + Moved testBug39542() from ASTFailedTests to QuickParseASTTests. + Moved testBug39549() from ASTFailedTests to QuickParseASTTests. + Added testCDesignatedInitializers() to CompleteParseASTTests. + Moved testBug39551A() from ASTFailedTests to QuickParseASTTests. + Moved testBug39551B() from ASTFailedTests to QuickParseASTTests. + Added testCBool() to QuickParseASTTests. + Added testBug39551A(), testBug39551B() and testCBool to CompleteParseTests. + +2003-10-22 Hoda Amer + Added offset checking in CModelElementsTest + +2003-10-21 John Camelon + Moved testBug40007() from ASTFailedTests to QuickParseASTTests. + Added QuickParseASTTests::testBug40759(). + Added QuickParseASTTests::testBug44633(). + Added ScannerTestCase::testBug44305(). + Added QuickParseASTTests::testBug41935(). + Moved testBug39525() from ASTFailedTests to QuickParseASTTests. + Added ScannerTestCase::testBug45287(). + Moved testBug39528() from ASTFailedTests to QuickParseASTTests. + Moved testBug39538() from ASTFailedTests to QuickParseASTTests. + Added QuickParseASTTests::testBug39536(). + Moved testBug39536A() from ASTFailedTests to QuickParseASTTests. + Moved testBug39536B() from ASTFailedTests to QuickParseASTTests. + +2003-10-20 David Inglis + + use project owner ID in plugin class + * build/org/eclipse/cdt/core/build/managed/tests/StandardBuildTests.java + + set gnu elf parser since it can read the debug info. + * model/org/eclipse/cdt/core/model/tests/BinaryTests.java + +2003-10-01 Andrew Niefer + added testBug43951 to CompleteParseASTTest + +2003-10-01 Andrew Niefer + modified OtherPatternTests.testBug42911() and renamed it testBug42911_43988 + +2003-10-01 Andrew Niefer + added testBug43450 to ManagedBuildTests.java + added a user include to plugin.xml + +2003-09-30 Sean Evoy + Fix for bug 41826. + Updated the plugin file so that tool specifications have the new attribute + for header files. The test for the managed builder now insure that those + values are properly read. + * plugin.xml + * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java + +2003-09-30 John Camelon + Updated CompleteParseASTTest::testBug42872() + Moved FailedCompleteParseASTTest::testBug43503() to CompleteParseASTTest::testBug43503A(). + +2003-09-30 Andrew Niefer + added testBug43503_AmbiguousUsing() and testBug43503_UnableToResolveFunction() to + ParserSymbolTableTest + +2003-09-30 Andrew Niefer + Updated OtherPatternTests::testMacroPattern() to test for bug43862 + +2003-09-29 Andrew Niefer + added testBug43062 and testConstructorDestructor to FunctionMethodPatternTests + modified resources/search/classDecl.cpp & include.h to include more operators and a constructor + & destructor + +2003-09-29 Hoda Amer + -Added testBug43679_A() & testBug43679_B() to CompleteParseASTTest + -Renamed FailedCompleteParseASTExpressionTest to FailedCompleteParseASTTest + -Added FailedCompleteParseASTTest::testBug43503() + +2003-09-29 Andrew Niefer + added testBug42911 to OtherPatternTests + +2003-09-29 Andrew Niefer + added testbug43834() to ParserSymbolTableTest + +2003-09-29 John Camelon + Added testErrorHandling_1() to CompleteParseASTTest.java. + +2003-09-26 John Camelon + Added QuickParseASTTests::testBug43644() & testBug43062(). + Moved ASTFailedTests::testBug39531() to QuickParseASTTests. + +2003-09-25 Sean Evoy + Bug 43220 test for the new option type and retrieval methods. + * plugin.xml + * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java + +2003-09-25 Andrew Niefer + -bug43129 - Cannot search for definitions of global variables + -added testbug43129() in OtherPatternTests + * resources/search/include.h + * resources/search/classDecl.cpp + * search/org/eclipse/cdt/core/search/tests/OtherPatternTests.java + +2003-09-25 Bogdan Gheorghe + - separated dependency tests from the indexer tests + - modified the AutomatedIntegrationSuite to include new dependency + tests + - added the following tests: + * testDepTable + * testDepSourceChangeTree + * testDepHeaderChangeTree + * testDepHeaderChangeReindex + * testDepSourceChangeTable + * testDepHeaderChangeTable + +2003-09-25 Hoda Amer + Enabled CompleteParseASTExpressionTest.testPostfixTypenameIdentifier() + +2003-09-25 Andrew Niefer + added testNoResourceSearching() to OtherPatternTests + +2003-09-24 Hoda Amer + Added testNewTypeId(), testCastExpression(), testPostfixDynamicCast(), + testPostfixReinterpretCast(), testPostfixStaticCast(), and testPostfixConstCast() + to CompleteParseASTExpressionTest. + +2003-09-24 Sean Evoy + Changed the implementor of IScannerInfo to answer only absolute paths when asked for + includes paths. As a result, the managed builder test had to be updated to expect paths + in an OS-specific format. + * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java + +2003-09-24 John Camelon + Added testBug43375() to CompleteParseASTTest. + Moved testConditionalExpressionWithReferencesB_Bug43106 from failed tests to passed tests. + Moved testPMDotStar() and testPMArrowStar to failed tests w/defect number 43579. + +2003-09-23 John Camelon + Replaced ASTFailedTests::testBug39504A() with CompleteParseASTTest::testBug39504(). + Moved testPostfixTypeIdExpression2() && testPostfixTypeIdTypeId2() to CompleteParseASTExpressionTest. + Restructured expression reference tests so that the order of arrival will not cause JUnit failures. + +2003-09-23 Andrew Niefer + Added FunctionMethodPatternTests.testBug43498() + +2003-09-23 Hoda Amer + Added CompleteParseASTTest.testBug43373() + Added QuickParseASTTests.testBug43371() + +2003-09-23 Sean Evoy + As part of the fix for critical bug 43292, I had to add functionality to + the build model to remove configurations through an ITarget, and to set, + reset, and flag as default the make command associated with an ITarget. I + have updated the managed build test "testConfigurations" to exercise the + remove functionality. I added a test, "testMakeCommandManipulation" to + exercise the new make command functions in the interface. + * plugin.xml + * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java + +2003-09-22 Bogdan Gheorghe + - modified CompletionProposalsTests, BaseSearchTest + to avoid using isEnabled for the IndexManager + - Reordered the IndexManagerTests suite to allow all + tests to be run + +2003-09-22 Andrew Niefer + - modified resources/cfiles/CompletionProposalsTestStart.cpp + - modified CompletionProposalsTest.testCompletionProposals + - updated calls to SearchEngine.search + +2003-09-19 Sean Evoy + Updated the build test to check the binary parser specification in the + target specification. + * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java + +2003-09-18 Andrew Niefer + - removed testConditionalExpression_Bug43159 from FailedCompleteParseASTExpressionTest + and uncommented it (testConditionalExpression) in CompleteParseASTExpressionTest + - uncommented the following tests in CompleteParseASTExpressionTest : + testPostfixSubscript, testPostfixSubscriptA, testPostfixSubscriptB, + testPostfixSubscriptWithReferences + - updated ParserSymbolTableTests to use new addOperatorExpression function + - added testDerivedReference, testAddCopyConstructor to ParserSymbolTableTests + - fixed warning in ClassDeclarationPatternTests + +2003-09-17 Hoda Amer + Added more success test cases to CompleteParseASTExpressionTest + and more failure test cases to FailedCompleteParseASTExpressionTest + in testing PM_DOTSTAR, PM_ARROWSTAR, CONDITIONALEXPRESSION + +2003-09-16 Andrew Niefer + - modified resources/search/classDecl.cpp & include.h to include some operators + - added testOperators_bug43063_bug42979() to MethodDeclarationPatternTests + - added testParameterREferences to OtherPatternTests + +2003-09-16 Bogdan Gheorghe + Added asserts to all index lookups in IndexManagerTests + Fixed testAddNewFileToIndex + +2003-09-16 Hoda Amer + Added CompleteParseASTExpressionTest.testPrimaryThis() + +2003-09-15 John Camelon + Moved ASTFailedTests::testBug39556() to QuickParseASTTests. + Cleaned up some warnings in parser tests. + +2003-09-15 Andrew Niefer + added testGetConditionalOperand_bug43106 to ParserSymbolTableTests + +2003-09-15 John Camelon + Added CompleteParseASTTest::testBug42979(). + Updated CompleteParseASTTest::testAndrewsExample(). + +2003-09-13 Andrew Niefer + - added testBadParameterInfo to ParserSymbolTableTest + +2003-09-12 Hoda Amer + - Added lots of test cases to CompleteParseASTExpressionTest + +2003-09-12 John Camelon + Created QuickParseASTTests::testBug42985(). + Moved LokiFailures::testBug40419() to QuickParseASTTests. + Deleted LokiFailures as it was empty. + +2003-09-11 Andrew Niefer + Created search/SearchTestSuite + Added SearchTestSuite to AutomatedIntegrationSuite and removed the individual search tests + Added testReferencesInFunction to ClassDeclarationPatternTests + Modified resources/search/classDecl.cpp + Modified testNamespaceReferenceInClassBaseClause, testMacroPattern, testEnumerators, + testEnumeratorReferences in OtherPatternTests to test the Match result strings + +2003-09-11 John Camelon + Added CompleteParseASTTest::testBug42840() & testBug42872(). + Moved testBug39504B(), testBug39505A() & testBug39505B() from failed to QuickParse tests. + +2003-09-10 Sean Evoy + Added a test for resetting the value of a configuration to the defaults defined in the + plugin file. Work completed to resolve [Bug 41412] Restore Default in Managed Build + project's settings Not Working. + * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java + +2003-09-09 Hoda Amer + Moved three failed tests (bugs #42822, #42823, & #42822B) + from FailedCompleteParseASTExpressionTest to CompleteParseASTExpressionTest + +2003-09-09 John Camelon + Updated ScannerTestCase to keep up to date wrt ScannerException updates. + +2003-09-09 Andrew Niefer + Modified resources/search/classDecl.cpp + - to include more function declarations to test parameter matching + - to include an enumerator reference to test enumerators + Added testMethodDeclarationParameterMatching to FunctionMethodPatternTests.java + Added testEnumeratorReferences to OtherPatternTests + +2003-09-09 Hoda Amer + -Seperated the Expression result type test in a new file : completeParseASTExpressionTests. + -Added more test cases for simple types. + -Added FailedCompleteParseASTExpressionTest for failed reference tests. + +2003-09-08 John Camelon + Added CompleteParseASTTest::testThrowStatement(), testScoping(), testEnumeratorReferences(). + Removed LineNumberTest source as it is obsolete. + +2003-09-08 Andrew Niefer + Modified calls to ParserFactory to specify which language to use + Add CC nature to projects in BaseSearchTest & IndexManagerTests + +2003-09-05 Hoda Amer + Added tests to CompleteParseASTTest to test the expression result type + for function calls that reference variables with pointers (bug#42453). + +2003-09-05 John Camelon + Added CompleteParseASTTest::testSimpleIfStatement(), testSimpleWhileStatement(). + testSimpleSwitchStatement(), testSimpleDoStatement(). + +2003-09-05 Andrew Niefer + Added testEnumerators to OtherPatternTests.java + Modified resources/search/classDecl.cpp to include some enumerators + +2003-09-05 John Camelon + Updated CompleteParseASTTest::testSimpleForLoop() + +2003-09-04 John Camelon + Updated ASTFailedTests::testBug39702() to fail more accurately. + Added testSimpleFunctionBody(), testSimpleForLoop() to CompleteParseASTTest.java. + +2003-09-04 Andrew Niefer + Added testBug42541 to CompleParseASTTests.java + +2003-09-04 Hoda Amer + Call to ASTExpression getTypeId() changed to getTypeIdString(). + +2003-09-03 Andrew Niefer + Modified ParserSymbolTableTest.testConstructors to test > 2 constructors + +2003-09-03 John Camelon + Added testBug41445() to CompleteParseASTTests.java. + +2003-09-02 Hoda Amer + Modified CCompletionProposalsTest to complete on a body file + that includes a header file. + +2003-09-02 Andrew Niefer + added ParserSymbolTableTest.testNamespaceAlias() + added ParserSymbolTableTest.testUsingNamespaceAlias() + +2003-08-28 Andrew Niefer + Modified BaseSearchTest.setup to properly include the "include.h" file + +2003-08-28 Hoda Amer + - Added to completeParseASTTest testQualifiedNameReferences(), + testIsConstructor() and testIsDestructor(). + +2003-08-28 John Camelon + Moved bug39535 from failedTests to quickParse success tests. + +2003-08-25 John Camelon + Moved testBug39526() from ASTFailedTests.java to QuickParseASTTests.java. + Moved testBug41520() from FullParseFailedTests.java to CompleteParseASTTest.java + +2003-08-25 John Camelon + Updated TranslationUnitTests to not include K&R testing. + +2003-08-25 John Camelon + Added QuickParseASTTests::testBug39530(). + +2003-08-21 Hoda Amer + Enabled some tests in the IStructureTests, namely: + testGetFields(), testGetField(), testGetMethods(), testGetMethod(), + testIsAbstract(), testGetBaseTypes(), and testGetAccessControl(). + +2003-08-19 Sean Evoy + In order to properly support the indexing feature, the scanner has to + function as well as the version that ships with the toolset if possible. + This is made difficult by the fact that we are trying to be tool-agnostic. + One of the things that the scanner should take into account when it runs + is the "built-in" symbols and search paths that are defined for a compiler + in a given toolchain. While we need to come up with a standard mechanism + for the CDT in the future, the managed build system can provide a work-around + in the near-term. The easiest solution is to add an optional attribute to a + list element that flags the item as a built-in value. When clients like + the indexer query the build model, they will receive the union of the built-in + values and the user-defined values. + + Added built-in information to the existing plugin definition. Also added a + new include path and defined symol for updated test cases. + * plugin.xml + + Updated the test cases to check that built-ins defined in the plugin manifest + are properly read and dealt with during project creation and persisting settings. + * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java + +2003-08-20 Hoda Amer + Added testNewExpressions() to CompleteParseASTTest to test new expression's references. + +2003-08-14 John Camelon + Removed warnings from AutomatedIntegrationSuite.java (removing implicit accessor generation). + +2003-08-14 John Camelon + Added CompleteParseASTTest::testArrayModExpression(), testPointerVariable() & + testExceptionSpecification(). + +2003-08-13 John Camelon + Added testBug41520() to FullParseFailedTests.java. + Added testConstructorChain() to CompleteParseASTTest.java + +2003-08-13 John Camelon + Added testSimpleExpression(), testParameterExpressions() && + testNestedNamespaceExpression() to CompleteParseASTTest.java. + +2003-08-13 Sean Evoy + Renamed the 'AllBuildTest' class to 'ManagedBuildTest' and updated the + integration suite class. + * suite/org/eclipse/cdt/core/suite/AutomatedIntegrationSuite.java + + This class is renamed. It also has a renamed method 'testProjectCreation' + that creates a project the same way the new project wizard does. It uses + the new discovery mechanism to find the scanner info provider. + * build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java + + Uses the new discovery mechanism to find the scanner info provider. + * build/org/eclipse/cdt/core/build/managed/tests/StandardBuildTests.java + +2003-08-12 Bogdan Gheorghe + Changed the order of tests in AutomatedIntegrationSuite to have + the indexing tests run last (the last indexing test shuts down + the indexing thread). + +2003-08-12 John Camelon + Added CompleteParseASTTest::testForewardDeclarationWithUsage(). + +2003-08-12 Hoda Amer + Added CompletionProposalsTest to the suit to test the generation + of completion proposals. + +2003-08-12 Bogdan Gheorghe + - Changed testVariableIndexPrefix, testVariableDeclaration to + reflect changes to the var search pattern + +2003-08-11 Andrew Niefer + - Added testMacroPattern to OtherPatternTests + - Changed the function tests to use new function/method pattern + +2003-08-11 Bogdan Gheorghe + - Added testMacros to IndexManagerTests + +2003-08-05 Andrew Niefer + - refactoring Parser Symbol Table function names + - added ParserSymbolTableTest.testConstructors() + +2003-08-01 Andrew Niefer + Added resources/search/header.h + Added ClassDeclarationPatternTests.testHeadersVisitedTwice() + Modified other search tests to reflect ICSearchResultCollector changes + +2003-07-31 Andrew Niefer + Added ParserSymbolTableTest.testForwardClassDeclaration + Added ParserSymbolTableTest.testForwardDeclarationUsedAsFunctionParam + +2003-07-31 Victor Mozgin + Moved testBug39540() from ASTFailedTests.java to QuickParseASTTests.java. + +2003-07-30 Hoda Amer + The CModelElementsTests has the pointer to function test back in its original place + (a variable) + +2003-07-30 Sean Evoy + * plugin.xml: + Updated the attribute names to reflect changes to the ManagedBuildInfo + extension point schema. + +2003-07-30 Victor Mozgin + Moved testBug39532() from ASTFailedTests.java to QuickParseASTTests.java. + +2003-07-29 John Camelon + Updated QuickParseASTTests for pointer to function updates. + Updated CompleteParseASTTests for typedef work. + +2003-07-28 Victor Mozgin + Moved testBug39546() from ASTFailedTests.java to QuickParseASTTests.java. + +2008-07-28 Andrew Niefer + -changes to resources/search/classDecl.cpp + -new search tests: + ClassDeclarationPatternTests.testClassReferenceInFieldType + ClassDeclarationPatternTests.testClassReferences + ClassDeclarationPatternTests.testEnumerationReferenceVisibleByInheritance + ClassDeclarationPatternTests.testGloballyQualifiedItem + ClassDeclarationPatternTests.testTypeReferenceVisibleByUsingDirective + FunctionMethodPatternTests.testMethodDeclaration + FunctionMethodPatternTests.testMethodDeclarationWithParams + OtherPatternTests.testFieldDeclaration + OtherPatternTests.testNamespaceDeclaration + OtherPatternTests.testNamespaceReferenceInClassBaseClause + OtherPatternTests.testNamespaceReferenceInUsingDirective + OtherPatternTests.testVariableDeclaration + +2003-07-28 John Camelon + Added/moved tests as necessary for bugfix 40842 & 40843. + +2003-07-28 Sean Evoy + In order to meet certain internal guidelines and to test the makefile + generator, the build model replied to some answers with hard-coded information. + This patch moves the information into the build model. + + * plugin.xml: + Added information to the target tags to test inheritence and + overridding the make command and clean command attributes. + + * build/org/eclipse/cdt/core/build/managed/tests/AllBuildTests.java: + Added code to test the make command and clean command attributes in + Targets. Also added a test to insure that sub-sub targets inherit settings + properly. + +2003-07-28 Andrew Niefer + This patch creates a new failing test class : FullParseFailedTests. This + is for writing failed tests on the parser doing COMPLETE_PARSE. + +2003-07-28 Victor Mozgin + Moved testBug39537() from ASTFailedTests.java to QuickParseASTTests.java. + +2003-07-27 John Camelon + Fixed failedTests::testBug40714() to fail properly. + +2003-07-25 Bogdan Gheorghe + Added new indexer test for refs + +2003-07-25 Victor Mozgin + Moved testBug39553() from ASTFailedTests.java to QuickParseASTTests.java. + Fixed IIncludeTest.h and IIncludeTests.java with #include macro tests. + +2003-07-24 John Camelon + Updated CompleteParseASTTests for Method/Field updates. + Fixed TortureTest's parser mode switch (was always QuickParsing). + +2003-07-24 Hoda Amer + Moved part of the CModelElementsTest (Templates of Variables ) to the failed tests. + Moved the same test (Templates of Variables) from ITemplateTests to failed tests. + +2003-07-24 Hoda Amer + This patch updates the CModelBuilder to use the AST instead of the DOM. + +2003-07-24 John Camelon + Updated CompleteParseASTTests. + +2003-07-23 Andrew Niefer + -Created search/BaseSearchTest to handle creating projects and setting them up to use the indexer + -removed ClassSpecifierSearchTests, its functionality is now in BaseSearchTest + -modified ClassDeclarationPatternTests to extend BaseSearchTest + -added FunctionMethodPatternTests + -added OtherPatternTests + -modified indexer/IndexManagerTests.testIndexContents + +2003-07-22 John Camelon + Updated CompleteParseASTTests. + +2003-07-21 Bogdan Gheorghe + Added new indexer test for newly added declarations + +2003-07-21 John Camelon + Created CompleteParseASTTest and added it to ParserTestSuite. + +2003-07-18 John Camelon + Updated ParserSymbolTableTests to remove dependencies on parser.ast.full classes. + Updated Parser test suites for updates to ParserFactory. + +2003-07-18 John Camelon + Wrote new tests in QuickParseASTQualifiedNameTest.java and added it to ParserTestSuite's suite. + +2003-07-18 Peter Graves + Removed un-needed file that was using a Java 1.4 reserved keyword (assert) + +2003-07-17 John Camelon + Rewrote the entire DOMTests suite to now be AST tests. + Removed DOMTests, BaseDOMTest, DOMFailedTests after methods were migrated to QuickParseASTTests & ASTFailedTests. + Made sure every parser failed test had a defect number associated with it. + +2003-07-17 Victor Mozgin + Added PerformanceTests.java (not included into AutomatedIntegrationSuite). + Moved testBug39523() from DOMFailedTest.java to PerformanceTests.java. + Moved testBug39550() from DOMFailedTest.java to DOMTests.java. + Moved testBug39552A() and testBug39552B()from DOMFailedTest.java to DOMTests.java. + TortureTest overrides timeout value for a very time-consuming test ('concat1.C'). + +2003-07-15 Victor Mozgin + Moved testBug39349() from DOMFailedTest.java to DOMTests.java. + Moved testBug39544() from DOMFailedTest.java to DOMTests.java. + +2003-07-14 Victor Mozgin + Added failed tests that correspond to recently reported PRs. + +2003-07-11 Bogdan Gheorghe + Added ClassSpecifierSearchTest + +2003-07-08 John Camelon + Updated IScanner, clients & implementations to use IScannerInfo. + +2003-07-07 John Camelon + Update ClassDeclarationPatternTests::testBug39652(). + +2003-07-04 John Camelon + Moved testBug39652() from failed search tests to ClassDeclarationPatternTests. + +2003-07-04 Andrew Niefer + Added new source Folder search + Added search/ClassDeclarationPatternTests::testMatchSimpleDeclaration + Added search/ClassDeclarationPatternTests::testMatchNamespaceNestedDeclaration + Added new resource folder search & containing file classDecl.cpp + Added new failures package ord.eclipse.cdt.core.search.failedTests + Added new failing test PatternsFailedTests::testBug39652 + + * Note that ClassDeclarationPatternTests and PatternsFailedTests both must be run as plugin tests + +2003-07-03 Bogdan Gheorghe + Added IndexManagerTest::testAddNewFileToIndex() + Added IndexManagerTest::testRemoveProjectFromIndex() + Added IndexManagerTest::testRemoveFileFromIndex() + +2003-07-03 Sean Evoy + New test suite that exercises the standard make build system including the new + IScannerInfoListener and IScannerInfoProvider interfaces. + + Changes to the existing managed build test suite include tests of the new + IScannerInfoxxx interface discovery, subscription, and change notification methods. + + * build/org/eclipse/cdt/core/build/managed/tests/StandardBuildTests.java + * build/org/eclipse/cdt/core/build/managed/tests/AllBuildTests.java + +2003-07-02 Victor Mozgin + Added DOMTests::testBug39501(). + Improved filtering of expected failures/inconclusives in TortureTest. + +2003-06-30 John Camelon + Added DOMTests::testAssignmentExpression() + Added PreprocessorConditionalTest to ParserTestSuite. + +2003-06-28 John Camelon + Completed Quickparse expression representation. + Updated ExpressionEvaluation and associated tests. + +2003-06-26 John Camelon + Update IASTExpression. + Move Parser.Backtrack and Parser.EndOfFile to external interface. + +2003-06-25 John Camelon + Added DOMFailedTest::testBug39349(). + Added DOMTests::testBug39348(). + +2003-06-25 John Camelon + Create new interface and support for calculating lineNumber/offset mapping. + Updated IASTClassSpecifier for qualified name query. + Began structuring expressions and declarators in Parser for ISourceElementRequestor. + Updated other packages to use new interfaces. + Updated automatedtests/torture test to use new line number information. + +2003-06-24 John Camelon + Updates for ISourceElementRequestor - elaborated types & enumerations. + +2003-06-23 John Camelon + Factory/constructor signature updates. + +2003-06-17 Victor Mozgin + Added MacroTests.java (invocation in AllCoreTests). + Added MacroTests.c to resources. + +2003-06-17 Sean Evoy + Moved the ManagedBuildInfo extension point from the plugin file in org.eclipse.cdt.ui.tests + Added new options to sub target for include paths and preprocessor symbols + Added test for IManagedBuildPathInfo + * build/org/eclipse/cdt/core/build/managed/tests/AllBuildTests.java + +2003-06-17 Brent Nicolle + Added Interface tests of IStructure.java. + +2003-06-17 Victor Mozgin + Added DeclaratorsTests.java (invocation in AllCoreTests). + Added DeclaratorsTests.cpp to org.eclipse.cdt.core.model.tests.resources. + +2003-06-16 Victor Mozgin + Added testOldKRFunctionDeclarations() to DOMTests. + Added testKRFunctionDeclarations() to TranslationUnitTests. + +2003-06-16 Vladimir Hirsl + Added /build, /parser, /failures and /suite directories to the library. + Copied resources from /model/org.eclipse.cdt.core.model.tests.resources + to /model/org/clipse/cdt/core/model/tests/resources/cmodel. + Added class AISResultPrinter to format test results. + Class AutomatedIntegrationSuite now implements IPlatformRunnable. + +2003-06-14 Victor Mozgin + Moved testBugSingleton192() from LokiFailures to DOMTests. + Added testPointersToMembers() and testPointersToMemberFunctions() to DOMTests. + Added testBug36290() and testBug36931() to DOMTests. + +2003-06-13 John Camelon + Added Class/Base infrastructure to public interfaces & requestor callback. + Moved many internal interfaces to external packages. + Organized imports. + +2003-06-13 Victor Mozgin + Renamed NullParserCallback into NullSourceElementRequester in AutomatedFramework. + +2003-06-13 John Camelon + Merged ParserSymbolTable branch back into HEAD. + +2003-06-12 John Camelon + Get rest of JUnit tests working, will merge back to HEAD branch. + +2003-06-12 John Camelon + Introduction of ASTFactory strategy, some restructuring of packages and interfaces. + +2003-06-11 Victor Mozgin + Old Java TestCase.txt and TestCase2.txt for partioning testing have been replaced with C/C++ files. + Modified AutomatedIntegrationSuite.java so it doesn't produce JUnit warning anymore. + All tests in org.eclipse.cdt.ui.tests should pass now. + +3003-06-11 Peter Graves + Update the test.xml to get the location of org.eclipse.test from a property + if set. If the property is not set, it will default to the old value. + +2003-06-11 Victor Mozgin + Added TortureTest to test CDT C++ parser with GCC testsuites. + GCC testsuites are not included. + +2003-06-10 John Camelon + Futher pursuit of the golden hammer, symbol table integration. + +2003-06-10 Brent Nicolle + Added some Interface tests of (IInclude, IMacro, IStructure). + Made sure all the Test Suites have names in the JUnit hierarchy. + +2003-06-09 John Camelon + First step in replacing IParserCallback with ISourceElementRequestor. + +2003-06-09 Victor Mozgin + Moved testBug36769() from ACEFailedTest.java to DOMTests.java. + Removed ACEFailedTest.java as it is empty now. + Added DOMTests.testBug36769B(). + +2003-06-09 Victor Mozgin + Moved testBug36932() from DOMFailedTest.java to DOMTests.java. + Added DOMTests.testBug36932B() and DOMTests.testBug36932C(). + +2003-06-09 Victor Mozgin + Moved testBug36701() from ScannerFailedTests.java to ScannerTestCase.java. + Renamed it to testBug36701A() and fixed it. + Added ScannerTestCase.testBug36701B(). + +2003-06-07 Victor Mozgin + Moved testBug36766A(), testBug36766B() & testBug36766C() from STLFailedTests.java to DOMTests.java. + Renamed them to testBug36766and36769x(), as they cover both PRs. + Added testBug36766and36769D() - test for templated destructor. + +2003-06-05 John Camelon + Moved testBug23478A() & testBug23478B() from failed tests to TranslationUnitTests.java. + Removed TranslationUnitFailedTests.java as it was empty. + +2003-05-29 Andrew Niefer + Modified tests to support eType & PtrOp changes in core + Added ParserSymbolTableTest::testTemplateParameterAsParent + Added ParserSymbolTableTest::testTemplateInstanceAsParent + Added ParserSymbolTableTest::testTemplateParameterDefaults + Added ParserSymbolTableTest::testTemplateParameterAsFunctionArgument + started ParserSymbolTableTest::incompletetestTemplateSpecialization + +2003-05-26 John Camelon + Rollback PST/Parser integration. + +2003-05-13 Andrew Niefer + Modified ParserSymbolTableTest to use new interface + +2003-05-08 Andrew Niefer + Added ParserSymbolTableTest::testMarkRollback + +2003-05-06 John Camelon + Further integration of SymbolTable into Parser, some refactoring. + +2003-05-05 John Camelon/Andrew Niefer + Added CrossReferenceTests to ParserTestSuite to test symbol-table/DOM interworking. + +2003-05-05 Andrew Niefer + Rewrote ParserSymbolTableTest to reflect structural changes to the symbol table. + +2003-05-01 Andrew Niefer + Updated FractionalAutomatedTest to use threads + Modified ScannerTestCase::testBug36287 + Added ScannerTestCase::testBug37011 + Added ScannerTestCase::testOtherPreprocessorDefines + +2003-04-28 John Camelon + Moved testBug36730() & testBug37019() from DOMFailedTests to DOMTests. + +2003-04-28 Andrew Niefer + Added DOMFailedTest::testBug37019 + Added DOMFailedTest::testBug36932 + Added ScannerFailedTest::testBug37011 + +2003-04-28 John Camelon + Added DOMTests::testOrder(). + +2003-04-28 Peter Graves + * model/org/eclipse/cdt/core/model/tests/BinaryTests: + Updated to remove a few small errors, and deal with some changes + to the core CDT + +2003-04-27 John Camelon + Added testBug36932() to DOMTests. + Moved testBugFunctor758() from LokiFailures to DOMTests. + Moved testBug36704() from DOMFailedTest to DOMTests. + Moved testBug36699() from DOMFailedTest to DOMTests. + Moved testBug36691() from DOMFailedTest to DOMTests. + +2003-04-25 Andrew Niefer + Moved ACEFailedTest::testBug36771 to DOMTests + Moved DOMFailedTest::testBug36714 to DOMTests + Updated ScannerTestCase::testBug36816 + +2003-04-25 John Camelon + Added DOMTests::testBug36852(). + Added DOMTests::testBug36764(). + Moved DOMFailedTests::testBug36702() to DOMTests(). + +2003-04-24 John Camelon + Moved fixed tests from FailedTests to DOMTests. + Added DOMTests::testBug36799(). + Cleaned up tests to reduce amount of code necessary to maintain these things. + +2003-04-24 John Camelon + Moved fixed tests from FailedTests to DOMTests. + Added LokiFailures.java to failed tests directory. + +2003-04-24 Andrew Niefer + Added AutomatedFramework.java + Added FractionalAutomatedTest (which derives from AutomatedFramework) + Refactored AutomatedTest to derive from AutomatdFramework + Added ScannerTestCase.testBug36816 + Added ScannerTestCase.testBug36255 + +2003-04-24 John Camelon + Fixed Java 1.3 compliance issue w/AutomatedTest.java + Fixed False failure in HelloWorld.java. + +2003-04-21 John Camelon + Updated DOMTests::testBug36247(). + Moved testBug36692(), testBug36703(), testBug36708(), testBug36707(), testBug36689() + and testBug36690() from DOMFailedTests to DOMTests and updated them. + +2003-04-20 John Camelon + Added DOMTests::testBug36551(). + Adjusted AutomatedTest to turn on line numbering. + Added DOMFailedTests and 11 failed test cases. + +2003-04-17 Andrew Niefer + Added ScannerTestCase::testBug36695() + Moved ScannerFailedTest::testBug36521 to ScannerTestCase::testBug36521() + Moved ScannerFailedTest::testBug36509 to ScannerTestCase::testBug36509() + Moved ScannerFailedTest::testBug36475 to ScannerTestCase::testBug36475() + Updated ScannerTestCase::testBug36047 + Updated ScannerTestCase::testBug36045 + +2003-04-17 John Camelon + Updated DOMTests::testBug36600(). + Updated LineNumberTest::testDOMLineNos(). + Added DOMTests::testBug36559(). + +2003-04-17 Andrew Niefer + Added AutomatedTest + Added resources.cFiles + Added resources.cppFiles + +2003-04-16 John Camelon + Added DOMTests::testBug36532(). + Added DOMTests::testBug36432(). + Added DOMTests::testBug36594(). + Added DOMTests::testBug36600(). + Added DOMTests::testArrayOfPointerToFunctions(). + +2003-04-15 John Camelon + Added ScannerTestCase::testBug36434(). + Added ScannerTestCase::testMultipleLines(). + Added ParserTestSuite. + Added LineNumberTest. + Updated CModelElementsTests to set the Nature of the C++ project appropriately. + +2003-04-15 Andrew Niefer + Moved ScannerFailedTest::testBug36047 to ScannerTestCase::testBug36047 + Added ScannerFailedTest::testBug36475 + +2003-04-13 John Camelon + Added DOMTests::testPointersToFunctions. + +2003-04-11 John Camelon + Added DOMTests::testBug36247(). + +2003-04-11 Andrew Niefer + Moved ScannerFailedTest::testBug36316 to ScannerTestCase::testBug36316 + Added ScannerFailedTest::testBug36047 + Added ScannerTestCase::testNestedRecursiveDefines + +2003-04-10 John Camelon + Added DOMTests::testBug36237(). + +2003-04-09 John Camelon + Removed all the old Code Model Builder source that was no longer being used (NewModelBuilder.java, etc.). + Moved all the files in parser.util directory to the dom. + Organized imports. + Added DOMTests::testTemplateDeclarationOfMethod(). + Added DOMTests::testBug36250(). + Added DOMTests::testBug36240(). + Added DOMTests::testBug36254(). + +2003-04-09 John Camelon + Updated ScannerTest::testBug36045(). + Added ScannerTest::testBug36287(). + Added DOMTests::testBug36288(). + +2003-04-06 Andrew Niefer + Added ParserSymbolTableTest::testOverloadRanking() + +2003-04-04 Alain Magloire + * src/org/eclipse/cdt/testplugin/util/VerifyDialog.java: + Remove some warnings. + +2003-04-03 John Camelon + Updated ScannerTest::testSimpleIfdef() for bug36019. + Updated ScannerTest::testNumerics() for bug36020. + Added ScannerTest::testBug36045(). + Updated DOMTests::testTemplateDeclaration() for template grammar updates. + +2003-04-01 Andrew Niefer + ParserSymbolTableTest. modifications to using declaration tests to reflect changes in the + symbol table. Also added testUserDefinedConversionSequences() + +2003-04-01 John Camelon + Added testBug35906() to DOMTests. + +2003-03-31 John Camelon + Added testStruct() to DOMTests. + Added test35892()to ScannerTest. + +2003-03-31 Andrew Niefer + In ParserSymbolTableTest, renamed testFunctionResolution_2() to testFunctionResolution_PointersAndBaseClasses(), + and modified to reflect changes in function resolution. + Added testFunctionResolution_TypedefsAndPointers(). + +2003-03-31 John Camelon + Added testWeirdStrings() and testNumerics() to ScannerTestCase. + Added testTemplateSpecialization(), testTemplateDeclaration(), testBug26467(), + testTypedef() and testTemplateInstantiation() to DOMTests. + +2003-03-28 John Camelon + Added testConstructorChain() and testASMDefinition() to DOMTests. + +2003-03-27 Alain Magloire + Changes were done in the Core Model API, the hierarchy is now + ICModel + ICProject + ICContainer + ITranslationUnit + IArchive + IBinary + We adjust the tests. + * model/org/eclipse/cdt/core/model/tests/ArchiveTests.java + * model/org/eclipse/cdt/core/model/tests/BinaryTests.java + * model/org/eclipse/cdt/core/model/tests/TranslationUniTests.java + * model/org/eclipse/cdt/core/model/tests/WorkingCopyTests.java + +2003-03-26 Andrew Niefer + In ParserSymbolTableTest : + updated all tests to reflect TypeInfo changes + Added testFunctionResolution() & testFunctionResolution_2() in + +2003-03-25 John Camelon + Added testDeclSpecifier(), testNamespaceDefinition(), testLinkageSpecification(), + testUsingClauses() and testEnumSpecifier() to DOMTests. + +2003-03-23 John Camelon + Added ptrOperator() test to DOMTests. + Added testFunctionModifiers() test to DOMTests. + Added testArrays() test to DOMTests. + +2003-03-20 Alain Magloire + + Patch from Amer Hoda, tests for the CElement deltas for Translation Units. + * model/org/eclipse/cdt/core/model/tests/ElementDeltaTest.java + * model/org/eclipse/cdt/core/model/tests/resource/WorkingCopyTestStart.h + +2003-03-19 Alain Magloire + Patch from Amer Hoda, introducing a simple test for the core model. + * model/org/eclipse/cdt/core/model/tests/WorkingCopyTests.java + * model/org/eclipse/cdt/core/model/tests/resource/WorkingCopyTestStart.h + +2003-03-18 John Camelon + Updated DOMTests to validate simple case of a function declaration with multiple parameters. + * parser/org/eclipse/cdt/core/parser/tests/DOMTests.java + +2003-03-11 John Camelon + Updated DOMTests for core.internal.parser change of merging DeclarationSpecifier and DeclSpecifier + Organized imports + * parser/org/eclipse/cdt/core/parser/tests/DOMTests.java + * parser/org/eclipse/cdt/core/parser/tests/ParserSymbolTableTest.java + +2003-03-10 John Camelon + Added macro pasting tests + +2003-03-06 Andrew Niefer + Added tests for exercising Namespaces & using directives in new parser's symbol table + +2003-03-04 Doug Schaefer + This is a pretty big patch, but it is the merge of the NewParser1 branch into the HEAD branch. lder "parser") + JUnit tests for testing various pieces (source folder "parser" in cdt.ui.tests. + +2003-01-29 Peter Graves + + Fixed the warnings when accessing static methods + * src/org/eclipse/cdt/testplugin/util/DialogCheck.java: + * src/org/eclipse/cdt/testplugin/CTestPlugin.java + * src/org/eclipse/cdt/testplugin/TestWorkbench.java + * ChangeLog: make all entries have the same formatting + +2002-12-17 Peter Graves + + * plugin.xml,test.xml: Some simple cleanups to remove refrences to the jdt and + to move closer to automated running + +2002-11-27 Alain Magloire + + * model/org/eclipse/cdt/core/model/tests/CModelTests.java: + Use CoreModel.getDefault(). + +2002-10-30 Alain Magloire + + * model/org/eclipse/cdt/core/model/tests/CModelTests.java (testGetNatureID): + The fields and the methods use in this test was removed from the CoreModel class. + (testHasNature): The method use in this case was refactor in the classes + CProjectNature and CCProjectNature, fix the test. + +2002-10-18 Peter Graves + + src/org/eclipse/cdt/testplugin/CProjectHelper.jada + Cleanup of the CProjectHelper file to remove unused imports, commeted out code etc. + +======= +2003-04-21 Andrew Niefer + Added DOMFailedTests::testBug36713() + Added DOMFailedTests::testBug36714() + Added DOMFailedTests::testBug36717() + Added DOMFailedTests::testBug36730() + +2003-04-21 Andrew Niefer + Added ScannerTestCase::testBug36695() + Moved ScannerFailedTest::testBug36521 to ScannerTestCase::testBug36521() + Moved ScannerFailedTest::testBug36509 to ScannerTestCase::testBug36509() + Moved ScannerFailedTest::testBug36475 to ScannerTestCase::testBug36475() + Updated ScannerTestCase::testBug36047 + Updated ScannerTestCase::testBug36045 + +2003-04-20 John Camelon + Added DOMTests::testBug36551(). + Adjusted AutomatedTest to turn on line numbering. + Added DOMFailedTests and 11 failed test cases. + +2003-04-17 John Camelon + Updated DOMTests::testBug36600(). + Updated LineNumberTest::testDOMLineNos(). + Added DOMTests::testBug36559(). + +2003-04-17 Andrew Niefer + Added AutomatedTest + Added resources.cFiles + Added resources.cppFiles + +2003-04-16 John Camelon + Added DOMTests::testBug36532(). + Added DOMTests::testBug36432(). + Added DOMTests::testBug36594(). + Added DOMTests::testBug36600(). + Added DOMTests::testArrayOfPointerToFunctions(). + +2003-04-15 John Camelon + Added ScannerTestCase::testBug36434(). + Added ScannerTestCase::testMultipleLines(). + Added ParserTestSuite. + Added LineNumberTest. + Updated CModelElementsTests to set the Nature of the C++ project appropriately. + +2003-04-15 Andrew Niefer + Moved ScannerFailedTest::testBug36047 to ScannerTestCase::testBug36047 + Added ScannerFailedTest::testBug36475 + +2003-04-13 John Camelon + Added DOMTests::testPointersToFunctions. + +2003-04-11 John Camelon + Added DOMTests::testBug36247(). + +2003-04-11 Andrew Niefer + Moved ScannerFailedTest::testBug36316 to ScannerTestCase::testBug36316 + Added ScannerFailedTest::testBug36047 + Added ScannerTestCase::testNestedRecursiveDefines + +2003-04-10 John Camelon + Added DOMTests::testBug36237(). + +2003-04-09 John Camelon + Removed all the old Code Model Builder source that was no longer being used (NewModelBuilder.java, etc.). + Moved all the files in parser.util directory to the dom. + Organized imports. + Added DOMTests::testTemplateDeclarationOfMethod(). + Added DOMTests::testBug36250(). + Added DOMTests::testBug36240(). + Added DOMTests::testBug36254(). + +2003-04-09 John Camelon + Updated ScannerTest::testBug36045(). + Added ScannerTest::testBug36287(). + Added DOMTests::testBug36288(). + +2003-04-06 Andrew Niefer + Added ParserSymbolTableTest::testOverloadRanking() + +2003-04-04 Alain Magloire + * src/org/eclipse/cdt/testplugin/util/VerifyDialog.java: + Remove some warnings. + +2003-04-03 John Camelon + Updated ScannerTest::testSimpleIfdef() for bug36019. + Updated ScannerTest::testNumerics() for bug36020. + Added ScannerTest::testBug36045(). + Updated DOMTests::testTemplateDeclaration() for template grammar updates. + +2003-04-01 Andrew Niefer + ParserSymbolTableTest. modifications to using declaration tests to reflect changes in the + symbol table. Also added testUserDefinedConversionSequences() + +2003-04-01 John Camelon + Added testBug35906() to DOMTests. + +2003-03-31 John Camelon + Added testStruct() to DOMTests. + Added test35892()to ScannerTest. + +2003-03-31 Andrew Niefer + In ParserSymbolTableTest, renamed testFunctionResolution_2() to testFunctionResolution_PointersAndBaseClasses(), + and modified to reflect changes in function resolution. + Added testFunctionResolution_TypedefsAndPointers(). + +2003-03-31 John Camelon + Added testWeirdStrings() and testNumerics() to ScannerTestCase. + Added testTemplateSpecialization(), testTemplateDeclaration(), testBug26467(), + testTypedef() and testTemplateInstantiation() to DOMTests. + +2003-03-28 John Camelon + Added testConstructorChain() and testASMDefinition() to DOMTests. + +2003-03-27 Alain Magloire + Changes were done in the Core Model API, the hierarchy is now + ICModel + ICProject + ICContainer + ITranslationUnit + IArchive + IBinary + We adjust the tests. + * model/org/eclipse/cdt/core/model/tests/ArchiveTests.java + * model/org/eclipse/cdt/core/model/tests/BinaryTests.java + * model/org/eclipse/cdt/core/model/tests/TranslationUniTests.java + * model/org/eclipse/cdt/core/model/tests/WorkingCopyTests.java + +2003-03-26 Andrew Niefer + In ParserSymbolTableTest : + updated all tests to reflect TypeInfo changes + Added testFunctionResolution() & testFunctionResolution_2() in + +2003-03-25 John Camelon + Added testDeclSpecifier(), testNamespaceDefinition(), testLinkageSpecification(), + testUsingClauses() and testEnumSpecifier() to DOMTests. + +2003-03-23 John Camelon + Added ptrOperator() test to DOMTests. + Added testFunctionModifiers() test to DOMTests. + Added testArrays() test to DOMTests. + +2003-03-20 Alain Magloire + + Patch from Amer Hoda, tests for the CElement deltas for Translation Units. + * model/org/eclipse/cdt/core/model/tests/ElementDeltaTest.java + * model/org/eclipse/cdt/core/model/tests/resource/WorkingCopyTestStart.h + +2003-03-19 Alain Magloire + Patch from Amer Hoda, introducing a simple test for the core model. + * model/org/eclipse/cdt/core/model/tests/WorkingCopyTests.java + * model/org/eclipse/cdt/core/model/tests/resource/WorkingCopyTestStart.h + +2003-03-18 John Camelon + Updated DOMTests to validate simple case of a function declaration with multiple parameters. + * parser/org/eclipse/cdt/core/parser/tests/DOMTests.java + +2003-03-11 John Camelon + Updated DOMTests for core.internal.parser change of merging DeclarationSpecifier and DeclSpecifier + Organized imports + * parser/org/eclipse/cdt/core/parser/tests/DOMTests.java + * parser/org/eclipse/cdt/core/parser/tests/ParserSymbolTableTest.java + +2003-03-10 John Camelon + Added macro pasting tests + +2003-03-06 Andrew Niefer + Added tests for exercising Namespaces & using directives in new parser's symbol table + +2003-03-04 Doug Schaefer + This is a pretty big patch, but it is the merge of the NewParser1 branch into the HEAD branch. lder "parser") + JUnit tests for testing various pieces (source folder "parser" in cdt.ui.tests. + +2003-01-29 Peter Graves + + Fixed the warnings when accessing static methods + * src/org/eclipse/cdt/testplugin/util/DialogCheck.java: + * src/org/eclipse/cdt/testplugin/CTestPlugin.java + * src/org/eclipse/cdt/testplugin/TestWorkbench.java + * ChangeLog: make all entries have the same formatting + +2002-12-17 Peter Graves + + * plugin.xml,test.xml: Some simple cleanups to remove refrences to the jdt and + to move closer to automated running + +2002-11-27 Alain Magloire + + * model/org/eclipse/cdt/core/model/tests/CModelTests.java: + Use CoreModel.getDefault(). + +2002-10-30 Alain Magloire + + * model/org/eclipse/cdt/core/model/tests/CModelTests.java (testGetNatureID): + The fields and the methods use in this test was removed from the CoreModel class. + (testHasNature): The method use in this case was refactor in the classes + CProjectNature and CCProjectNature, fix the test. + +2002-10-18 Peter Graves + + src/org/eclipse/cdt/testplugin/CProjectHelper.jada + Cleanup of the CProjectHelper file to remove unused imports, commeted out code etc. + diff --git a/core/org.eclipse.cdt.core.tests/indexer/org/eclipse/cdt/core/indexer/tests/DependencyTests.java b/core/org.eclipse.cdt.core.tests/indexer/org/eclipse/cdt/core/indexer/tests/DependencyTests.java index 35b65f3a1d2..8c6c8ec5c77 100644 --- a/core/org.eclipse.cdt.core.tests/indexer/org/eclipse/cdt/core/indexer/tests/DependencyTests.java +++ b/core/org.eclipse.cdt.core.tests/indexer/org/eclipse/cdt/core/indexer/tests/DependencyTests.java @@ -650,9 +650,12 @@ import org.eclipse.core.runtime.Platform; } } - protected void search(IWorkspace workspace, ICSearchPattern pattern, ICSearchScope scope, ICSearchResultCollector collector) { - searchEngine.search( workspace, pattern, scope, collector, false ); - } + protected void search(IWorkspace workspace, ICSearchPattern pattern, ICSearchScope scope, ICSearchResultCollector collector) { + try { + searchEngine.search( workspace, pattern, scope, collector, false ); + } catch (InterruptedException e) { + } + } /* * Utils diff --git a/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/BaseSearchTest.java b/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/BaseSearchTest.java index 488e80e3faa..6c2de725b04 100644 --- a/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/BaseSearchTest.java +++ b/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/BaseSearchTest.java @@ -122,7 +122,11 @@ public class BaseSearchTest extends TestCase implements ICSearchConstants { } protected void search(IWorkspace workspace, ICSearchPattern pattern, ICSearchScope scope, ICSearchResultCollector collector) { - searchEngine.search( workspace, pattern, scope, collector, false ); + try { + searchEngine.search( workspace, pattern, scope, collector, false ); + } catch (InterruptedException e) { + + } } } diff --git a/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/ClassDeclarationPatternTests.java b/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/ClassDeclarationPatternTests.java index 4d017bfd66e..9b1946d5cb0 100644 --- a/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/ClassDeclarationPatternTests.java +++ b/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/ClassDeclarationPatternTests.java @@ -19,10 +19,10 @@ import java.util.Set; import org.eclipse.cdt.core.search.ICSearchConstants; import org.eclipse.cdt.core.search.ICSearchPattern; import org.eclipse.cdt.core.search.IMatch; +import org.eclipse.cdt.core.search.OrPattern; import org.eclipse.cdt.core.search.SearchEngine; import org.eclipse.cdt.internal.core.CharOperation; import org.eclipse.cdt.internal.core.search.matching.ClassDeclarationPattern; -import org.eclipse.cdt.internal.core.search.matching.OrPattern; /** diff --git a/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/OtherPatternTests.java b/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/OtherPatternTests.java index 065c316370e..e8fc0c7840f 100644 --- a/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/OtherPatternTests.java +++ b/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/OtherPatternTests.java @@ -22,13 +22,13 @@ import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.search.BasicSearchMatch; import org.eclipse.cdt.core.search.ICSearchPattern; import org.eclipse.cdt.core.search.IMatch; +import org.eclipse.cdt.core.search.OrPattern; import org.eclipse.cdt.core.search.SearchEngine; import org.eclipse.cdt.internal.core.CharOperation; import org.eclipse.cdt.internal.core.search.AcceptMatchOperation; import org.eclipse.cdt.internal.core.search.matching.FieldDeclarationPattern; import org.eclipse.cdt.internal.core.search.matching.MatchLocator; import org.eclipse.cdt.internal.core.search.matching.NamespaceDeclarationPattern; -import org.eclipse.cdt.internal.core.search.matching.OrPattern; import org.eclipse.cdt.testplugin.CTestPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.Path; @@ -327,7 +327,10 @@ public class OtherPatternTests extends BaseSearchTest { ArrayList matchesList = new ArrayList(); MatchLocator matchLocator = new MatchLocator( pattern, resultCollector, scope, monitor ); - matchLocator.locateMatches( new String [] { path }, workspace, null, matchesList); + try { + matchLocator.locateMatches( new String [] { path }, workspace, null, matchesList); + } catch (InterruptedException e1) { + } AcceptMatchOperation acceptMatchOp = new AcceptMatchOperation(resultCollector, matchesList); try { diff --git a/core/org.eclipse.cdt.core/search/ChangeLog b/core/org.eclipse.cdt.core/search/ChangeLog index 4e4dadd37a2..36f82d454a2 100644 --- a/core/org.eclipse.cdt.core/search/ChangeLog +++ b/core/org.eclipse.cdt.core/search/ChangeLog @@ -1,280 +1,286 @@ -2004-02-13 Bogdan Gheorghe - - Added error handling to MatchLocator.locateMatches to handle possible - parser failures. - -2004-02-06 Bogdan Gheorghe - - - Modified CSearchPattern.scanforParameters. If no parameters are passed in - as part of a function/method search, void is assigned as a parameter type. - - - Modified MethodDeclarationPattern to check for void parameter types - -2004-02-05 Alain Magloire - PR 51221 - Reformat Patch from Bogdan base on Thomas Fletcher original patch - In a nutshell, it moves the search operation into a runnable which - can be passed to a progress dialog. - - * search/org/eclipse/cdt/core/search/BasicSearchResultCollector.java - -2004-01-26 John Camelon - Updated clients to use new Scanner logging service. - -2003-10-23 Bogdan Gheorghe - - - Added AcceptMatchOperation to get around Bug 45324. The search - operation is no longer a WorkspaceModifyOperation (which used to - lock the workspace for the duration of search). Instead, we now - lock the workspace only when we tag the resources with markers. - - - Modified SearchEngine : we now receive a list of matches - from the search that we pass into the AcceptMatchOperation. - - - Modified MatchLocator to add matches to passed in list instead - of reporting them right away - - - Modified JobManager: -added in jobToIgnore parm to unblock dependency - jobs - - -2003-10-06 Bogdan Gheorghe - - added createCFileSearchScope() to SearchEngine.java to improve - code complete performance - -2003-10-01 Andrew Niefer - - fix bug 44026 by checking scope before reporting match in MatchLocator.report - -2003-10-01 Andrew Niefer - - fix BasicSearchMatch.equals() for bug43988 - -2003-09-30 Bogdan Gheorghe - - changed logging in JobManager to use new ICLogConstants - -2003-09-30 Andrew Niefer - -fix bug43862 - Cannot find macro delcarations using all occurences. - * modified CSearchPattern.createMacroPattern - -2003-09-29 Andrew Niefer - - fix bug 43062 outline is confused on operator methods containing spaces - - modify CSearchPattern.scanForNames to use same naming convention as TokenDuple.toString() - - modify MatchLocator.report to use IASTOffsetableNamedElement.getNameEndOffset() - -2003-09-29 Andrew Niefer - -bug42911 - Search: cannot find beyond use of data member - - fix NPE's in BasicSearchMatch.equals & hashCode - -2003-09-29 Andrew Niefer - -fix NPE if IScannerInfoProvider returns null IScannerInfo - -2003-09-25 Andrew Niefer - - bug43129 - Cannot search for definitions of global variables - - check definitions for variables, fields, enumerators and namespaces - - handle enter/exitLinkageSpecification - * search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java - * search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java - -2003-09-25 Bogdan Gheorghe - - added SearchFor INCLUDE in ICSearchConstants - - added acceptIncludeDeclaration to IIndexSearchRequestor - - modified PathCollector to acceptIncludeDeclarations - - modified CSearchPattern to create an IncludePattern - - added IncludePattern.java - -2003-09-25 Andrew Niefer - - partial fix for 43664 Modify Matchlocator to not try and create a link if we have no - resource, instead just use the path - -2003-09-23 Andrew Niefer - fix bug 43498 Search with ? fails on first letter of second word - -modifications to CSearchPattern.scanForNames() - -add getSimpleName to MethodDeclarationPattern - -2003-09-19 Andrew Niefer - fix bug 43327 Code Complete finds local variables - - modified MatchLocator to not report local declarations when boolean is set - - modified SearchEngine.search to take an additional parameter "excludeLocalDeclarations" - -2003-09-15 Andrew Niefer - - modify CSearchPattern to handle escaping wildcards (bug43063) - - modify enterFunctionBody and enterMethodBody to fix bug42979 - - search for Parameter References - -2003-09-13 Andrew Niefer - -Searching for Typedefs: (bug42902) - - modified setElementInfo in BasicSearchResultCollector - - added TYPEDEF to ICSearchConstants - - modified CSearchPattern & ClassDeclarationPattern - - implemented acceptTypedef* in MatchLocator - - modified BasicSearchMatch to implement Comparable - -2003-09-11 Andrew Niefer - - Modified ICSearchResultCollector.createMatch to not take a parent parameter - - modified BasicSearchResultCollector to create the parent string from the fully qualified name of the node - - modified MatchLocator to keep track of most recent declaration for reporting purposes - - modified MatchLocator.report to use the most recent declaration - -2003-09-09 Andrew Niefer - pattern matching on function parameters: - - modified scanForParameters in CSearchPattern - - added getParamString in CSearchPattern - - modified matchLevel in MethodDeclarationPattern - - Enumeration references - - modified acceptEnumeratorReference in MatchLocator - -2003-09-05 Andrew Niefer - - fix searching for enumerators - -2003-09-03 Andrew Niefer - - added CLASS_STRUCT to the SearchFor constants - - Modified CSearchPattern to handle CLASS_STRUCT - -2003-08-26 Bogdan Gheorghe - - Added debug tracing statements to SearchEngine - - Modified scanForNames in CSearchPattern to treat append - a token after "~" to allow for destructors search - - Added scope checking to MatchLocator - - Added debug trace statements to MatchLocator - -2003-08-20 Bogdan Gheorghe - - Changed matching and reporting functions to handle nodes - of type IElaboratedTypeSpecifier - -2003-08-12 Bogdan Gheorghe - - Rolled field and variable search patterns into one pattern, in - order to allow for qualified var searches - -2003-08-11 Andrew Niefer - - Added Macro ICSearchConstant - - Added acceptMacro to IIndexSearchRequestor and PathCollector - - Added MacroDeclaration Pattern - - Rolled method and function patterns into one method pattern - - Added WorkingCopy support to search - -2003-08-08 Bogdan Gheorghe - - Added CreateSearchScope to create a search scope out of - CElements - - Filled out CSearchScope to enable: - - adding a project to scope, include referenced projects - - adding individual CElements to scope - -2003-08-08 Andrew Niefer - - add function parameter information to search results - -2003-08-06 Andrew Niefer - - Create OrPattern which matches for search if any of its constituent patterns matches - - modified MatchLocator to support the OrPattern - - searching for All occurences now uses the OrPattern - -2003-08-01 Andrew Niefer - - Modified BasicSearchResultCollector to only accept matches it has not already seen - - fixed bug in finding a resource when entering includes - -2003-07-29 Andrew Niefer - Refactoring Search result collection: - - Modified ICSearchResultCollector - - Modified IMatch - - Modified MatchLocator to reflect changes in ICSearchResultCollector - - Created BasicSearchMatch implements IMatch - - Created BasicSearchResultCollector implements ICSearchResultCollector - -2003-07-28 Andrew Niefer - - added abstract CSearchPattern.resetIndexInfo fix bug with searching with globally - qualified names - - fixed bug in CSearchPattern.matchQualifications to do with globally qualified names - - fixed bug in CSearchPattern.createFunctionPattern to do with parameter lists. - -2003-07-25 Bogdan Gheorghe - - Added refs to PathCollector - - Filled in feedIndexRequestor for the new search patterns - - Fixed the FunctionDeclarationPattern to work with no parms - -2003-07-24 Andrew Niefer - - Implemented decodeIndexEntry & matchIndexEntry for all patterns - - changed MatchLocator to use a COMPLETE_PARSE. - -2003-07-23 Andrew Niefer - -Changed ICSearchPattern.matchLevel to take a ISourceElementCallbackDelegate - -Changed ICSearchResultCollector.createMatch to take a ISourceElementCallbackDelegate - -first implementations of: - -CSearchPattern.createFunctionPattern - -CSearchPattern.createVariablePattern - -CSearchPattern.createMethodPattern - -preliminary matching for remaining patterns - -handling of remaining parser callbacks - -generating index Prefixes for the patterns - -2003-07-14 Andrew Niefer - -Modified SearchFor instances in ICSearchConstants to more closely match what we are searching for - -added IMatch interface, it represents matches found by the search engine, implementors can store - whatever information they like, see ICSearchResultCollector::createMatch - -added createMatch to the ICSearchResultCollector interface, the result collector is responsible for - implementing IMatch to store whatever data they want out of the AST nodes. - -added skeleton patterns: - search/org/eclipse/cdt/internal/core/search/matching/FieldDeclarationPattern.java - search/org/eclipse/cdt/internal/core/search/matching/FunctionDeclarationPattern.java - search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java - search/org/eclipse/cdt/internal/core/search/matching/NamespaceDeclarationPattern.java - search/org/eclipse/cdt/internal/core/search/matching/VariableDeclarationPattern.java - -added beginnings of CSearchPattern::create*Pattern functions - -modifications to MatchLocator to keep track of current scope - -added CSearchPattern::matchQualifications - -2003-07-10 Bogdan Gheorghe - Provided implementation for ICSearchScope.java, CSearchScope.java - - Hooked up new CWorkspaceScope, PathCollector, PatternSearchJob in SearchEngine.java - - Provided implementation for PatternSearchJob.java - PatternSearchJob is where the first part - of the search occurs - using an IndexSelector to filter the indexes, it gets the indexes from - the IndexManager and then uses the passed in pattern to find the index matched. Once it finds - an index match it adds the file path to the PathCollector. - - Modified CSearchPattern - added support to find index entries. - - Modified ClassDeclarationPattern - added support to decode, match and report - index entries. - - - Added: - * search/org/eclipse/cdt/internal/core/search/CWorkspaceScope.java - * search/org/eclipse/cdt/internal/core/search/IIndexSearchRequestor.java - * search/org/eclipse/cdt/internal/core/search/IndexSelector.java - * search/org/eclipse/cdt/internal/core/search/PathCollector.java - - Modified: - * search/org/eclipse/cdt/core/search/ICSearchScope.java - * search/org/eclipse/cdt/core/search/SearchEngine.java - * search/org/eclipse/cdt/internal/core/search/CSearchScope.java - * search/org/eclipse/cdt/internal/core/search/PatternSearchJob.java - * search/org/eclipse/cdt/internal/core/search/matching/ClassDeclarationPattern.java - * search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java - -2003-07-04 Andrew Niefer - Modified ICSearchConstants to use new nested classes SearchFor and LimitTo instead of int - for stronger type safety - - Updated MatchLocator to invoke parser to do actual search. - -2003-06-27 Andrew Niefer - Modified: - search/org.eclipse.cdt.core.search.matching/MatchLocator.java - - enter/exitInclusion - - enterClassSpecifier - search/org.eclipse.cdt.core.search.matching/CSearchPattern.java - - createClassPattern - - matchesName - search/org.eclipse.cdt.core.search.matching/ClassDeclarationPattern.java - - matchLevel - search/org.eclipse.cdt.core.search/ICSearchPattern.java - search/org.eclipse.cdt.core.search/ICSearchResultCollector.java - search/org.eclipse.cdt.core.search/SearchEngine.java - -2003-06-25 Bogdan Gheorghe - Modified: - * search/org/eclipse/cdt/core/search/ICSearchConstants.java - * search/org/eclipse/cdt/internal/core/search/Utils.java - - moved to index/org/eclipse/cdt/internal/core/search/Utils.java - * search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java - * search/org/eclipse/cdt/internal/core/search/processing/IJob.java +2004-02-16 Andrew Niefer + fixed a couple of warnings + moved OrPattern from org.eclipse.cdt.internal.core.search.matching to org.eclipse.cdt.core.search + changed SearchEngine.search & MatchLocator.locateMatches to throw InterruptedException when cancelled + updates calls to search to handle InterruptedException + +2004-02-13 Bogdan Gheorghe + - Added error handling to MatchLocator.locateMatches to handle possible + parser failures. + +2004-02-06 Bogdan Gheorghe + + - Modified CSearchPattern.scanforParameters. If no parameters are passed in + as part of a function/method search, void is assigned as a parameter type. + + - Modified MethodDeclarationPattern to check for void parameter types + +2004-02-05 Alain Magloire + PR 51221 + Reformat Patch from Bogdan base on Thomas Fletcher original patch + In a nutshell, it moves the search operation into a runnable which + can be passed to a progress dialog. + + * search/org/eclipse/cdt/core/search/BasicSearchResultCollector.java + +2004-01-26 John Camelon + Updated clients to use new Scanner logging service. + +2003-10-23 Bogdan Gheorghe + + - Added AcceptMatchOperation to get around Bug 45324. The search + operation is no longer a WorkspaceModifyOperation (which used to + lock the workspace for the duration of search). Instead, we now + lock the workspace only when we tag the resources with markers. + + - Modified SearchEngine : we now receive a list of matches + from the search that we pass into the AcceptMatchOperation. + + - Modified MatchLocator to add matches to passed in list instead + of reporting them right away + + - Modified JobManager: -added in jobToIgnore parm to unblock dependency + jobs + + +2003-10-06 Bogdan Gheorghe + - added createCFileSearchScope() to SearchEngine.java to improve + code complete performance + +2003-10-01 Andrew Niefer + - fix bug 44026 by checking scope before reporting match in MatchLocator.report + +2003-10-01 Andrew Niefer + - fix BasicSearchMatch.equals() for bug43988 + +2003-09-30 Bogdan Gheorghe + - changed logging in JobManager to use new ICLogConstants + +2003-09-30 Andrew Niefer + -fix bug43862 - Cannot find macro delcarations using all occurences. + * modified CSearchPattern.createMacroPattern + +2003-09-29 Andrew Niefer + - fix bug 43062 outline is confused on operator methods containing spaces + - modify CSearchPattern.scanForNames to use same naming convention as TokenDuple.toString() + - modify MatchLocator.report to use IASTOffsetableNamedElement.getNameEndOffset() + +2003-09-29 Andrew Niefer + -bug42911 - Search: cannot find beyond use of data member + - fix NPE's in BasicSearchMatch.equals & hashCode + +2003-09-29 Andrew Niefer + -fix NPE if IScannerInfoProvider returns null IScannerInfo + +2003-09-25 Andrew Niefer + - bug43129 - Cannot search for definitions of global variables + - check definitions for variables, fields, enumerators and namespaces + - handle enter/exitLinkageSpecification + * search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java + * search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java + +2003-09-25 Bogdan Gheorghe + - added SearchFor INCLUDE in ICSearchConstants + - added acceptIncludeDeclaration to IIndexSearchRequestor + - modified PathCollector to acceptIncludeDeclarations + - modified CSearchPattern to create an IncludePattern + - added IncludePattern.java + +2003-09-25 Andrew Niefer + - partial fix for 43664 Modify Matchlocator to not try and create a link if we have no + resource, instead just use the path + +2003-09-23 Andrew Niefer + fix bug 43498 Search with ? fails on first letter of second word + -modifications to CSearchPattern.scanForNames() + -add getSimpleName to MethodDeclarationPattern + +2003-09-19 Andrew Niefer + fix bug 43327 Code Complete finds local variables + - modified MatchLocator to not report local declarations when boolean is set + - modified SearchEngine.search to take an additional parameter "excludeLocalDeclarations" + +2003-09-15 Andrew Niefer + - modify CSearchPattern to handle escaping wildcards (bug43063) + - modify enterFunctionBody and enterMethodBody to fix bug42979 + - search for Parameter References + +2003-09-13 Andrew Niefer + -Searching for Typedefs: (bug42902) + - modified setElementInfo in BasicSearchResultCollector + - added TYPEDEF to ICSearchConstants + - modified CSearchPattern & ClassDeclarationPattern + - implemented acceptTypedef* in MatchLocator + - modified BasicSearchMatch to implement Comparable + +2003-09-11 Andrew Niefer + - Modified ICSearchResultCollector.createMatch to not take a parent parameter + - modified BasicSearchResultCollector to create the parent string from the fully qualified name of the node + - modified MatchLocator to keep track of most recent declaration for reporting purposes + - modified MatchLocator.report to use the most recent declaration + +2003-09-09 Andrew Niefer + pattern matching on function parameters: + - modified scanForParameters in CSearchPattern + - added getParamString in CSearchPattern + - modified matchLevel in MethodDeclarationPattern + + Enumeration references + - modified acceptEnumeratorReference in MatchLocator + +2003-09-05 Andrew Niefer + - fix searching for enumerators + +2003-09-03 Andrew Niefer + - added CLASS_STRUCT to the SearchFor constants + - Modified CSearchPattern to handle CLASS_STRUCT + +2003-08-26 Bogdan Gheorghe + - Added debug tracing statements to SearchEngine + - Modified scanForNames in CSearchPattern to treat append + a token after "~" to allow for destructors search + - Added scope checking to MatchLocator + - Added debug trace statements to MatchLocator + +2003-08-20 Bogdan Gheorghe + - Changed matching and reporting functions to handle nodes + of type IElaboratedTypeSpecifier + +2003-08-12 Bogdan Gheorghe + - Rolled field and variable search patterns into one pattern, in + order to allow for qualified var searches + +2003-08-11 Andrew Niefer + - Added Macro ICSearchConstant + - Added acceptMacro to IIndexSearchRequestor and PathCollector + - Added MacroDeclaration Pattern + - Rolled method and function patterns into one method pattern + - Added WorkingCopy support to search + +2003-08-08 Bogdan Gheorghe + - Added CreateSearchScope to create a search scope out of + CElements + - Filled out CSearchScope to enable: + - adding a project to scope, include referenced projects + - adding individual CElements to scope + +2003-08-08 Andrew Niefer + - add function parameter information to search results + +2003-08-06 Andrew Niefer + - Create OrPattern which matches for search if any of its constituent patterns matches + - modified MatchLocator to support the OrPattern + - searching for All occurences now uses the OrPattern + +2003-08-01 Andrew Niefer + - Modified BasicSearchResultCollector to only accept matches it has not already seen + - fixed bug in finding a resource when entering includes + +2003-07-29 Andrew Niefer + Refactoring Search result collection: + - Modified ICSearchResultCollector + - Modified IMatch + - Modified MatchLocator to reflect changes in ICSearchResultCollector + - Created BasicSearchMatch implements IMatch + - Created BasicSearchResultCollector implements ICSearchResultCollector + +2003-07-28 Andrew Niefer + - added abstract CSearchPattern.resetIndexInfo fix bug with searching with globally + qualified names + - fixed bug in CSearchPattern.matchQualifications to do with globally qualified names + - fixed bug in CSearchPattern.createFunctionPattern to do with parameter lists. + +2003-07-25 Bogdan Gheorghe + - Added refs to PathCollector + - Filled in feedIndexRequestor for the new search patterns + - Fixed the FunctionDeclarationPattern to work with no parms + +2003-07-24 Andrew Niefer + - Implemented decodeIndexEntry & matchIndexEntry for all patterns + - changed MatchLocator to use a COMPLETE_PARSE. + +2003-07-23 Andrew Niefer + -Changed ICSearchPattern.matchLevel to take a ISourceElementCallbackDelegate + -Changed ICSearchResultCollector.createMatch to take a ISourceElementCallbackDelegate + -first implementations of: + -CSearchPattern.createFunctionPattern + -CSearchPattern.createVariablePattern + -CSearchPattern.createMethodPattern + -preliminary matching for remaining patterns + -handling of remaining parser callbacks + -generating index Prefixes for the patterns + +2003-07-14 Andrew Niefer + -Modified SearchFor instances in ICSearchConstants to more closely match what we are searching for + -added IMatch interface, it represents matches found by the search engine, implementors can store + whatever information they like, see ICSearchResultCollector::createMatch + -added createMatch to the ICSearchResultCollector interface, the result collector is responsible for + implementing IMatch to store whatever data they want out of the AST nodes. + -added skeleton patterns: + search/org/eclipse/cdt/internal/core/search/matching/FieldDeclarationPattern.java + search/org/eclipse/cdt/internal/core/search/matching/FunctionDeclarationPattern.java + search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java + search/org/eclipse/cdt/internal/core/search/matching/NamespaceDeclarationPattern.java + search/org/eclipse/cdt/internal/core/search/matching/VariableDeclarationPattern.java + -added beginnings of CSearchPattern::create*Pattern functions + -modifications to MatchLocator to keep track of current scope + -added CSearchPattern::matchQualifications + +2003-07-10 Bogdan Gheorghe + Provided implementation for ICSearchScope.java, CSearchScope.java + + Hooked up new CWorkspaceScope, PathCollector, PatternSearchJob in SearchEngine.java + + Provided implementation for PatternSearchJob.java - PatternSearchJob is where the first part + of the search occurs - using an IndexSelector to filter the indexes, it gets the indexes from + the IndexManager and then uses the passed in pattern to find the index matched. Once it finds + an index match it adds the file path to the PathCollector. + + Modified CSearchPattern - added support to find index entries. + + Modified ClassDeclarationPattern - added support to decode, match and report + index entries. + + + Added: + * search/org/eclipse/cdt/internal/core/search/CWorkspaceScope.java + * search/org/eclipse/cdt/internal/core/search/IIndexSearchRequestor.java + * search/org/eclipse/cdt/internal/core/search/IndexSelector.java + * search/org/eclipse/cdt/internal/core/search/PathCollector.java + + Modified: + * search/org/eclipse/cdt/core/search/ICSearchScope.java + * search/org/eclipse/cdt/core/search/SearchEngine.java + * search/org/eclipse/cdt/internal/core/search/CSearchScope.java + * search/org/eclipse/cdt/internal/core/search/PatternSearchJob.java + * search/org/eclipse/cdt/internal/core/search/matching/ClassDeclarationPattern.java + * search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java + +2003-07-04 Andrew Niefer + Modified ICSearchConstants to use new nested classes SearchFor and LimitTo instead of int + for stronger type safety + + Updated MatchLocator to invoke parser to do actual search. + +2003-06-27 Andrew Niefer + Modified: + search/org.eclipse.cdt.core.search.matching/MatchLocator.java + - enter/exitInclusion + - enterClassSpecifier + search/org.eclipse.cdt.core.search.matching/CSearchPattern.java + - createClassPattern + - matchesName + search/org.eclipse.cdt.core.search.matching/ClassDeclarationPattern.java + - matchLevel + search/org.eclipse.cdt.core.search/ICSearchPattern.java + search/org.eclipse.cdt.core.search/ICSearchResultCollector.java + search/org.eclipse.cdt.core.search/SearchEngine.java + +2003-06-25 Bogdan Gheorghe + Modified: + * search/org/eclipse/cdt/core/search/ICSearchConstants.java + * search/org/eclipse/cdt/internal/core/search/Utils.java + - moved to index/org/eclipse/cdt/internal/core/search/Utils.java + * search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java + * search/org/eclipse/cdt/internal/core/search/processing/IJob.java * search/org/eclipse/cdt/internal/core/search/processing/JobManager.java \ No newline at end of file diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/BasicSearchMatch.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/BasicSearchMatch.java index d641881c6e3..9dbdaaa6244 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/BasicSearchMatch.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/BasicSearchMatch.java @@ -59,8 +59,6 @@ public class BasicSearchMatch implements IMatch, Comparable { } BasicSearchMatch match = (BasicSearchMatch)obj; - IPath path = getLocation(); - if( startOffset != match.getStartOffset() || endOffset != match.getEndOffset() ) return false; diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/OrPattern.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/OrPattern.java similarity index 95% rename from core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/OrPattern.java rename to core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/OrPattern.java index 5a35d8b60c1..50904bb9c92 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/OrPattern.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/OrPattern.java @@ -11,18 +11,17 @@ /* * Created on Aug 6, 2003 */ -package org.eclipse.cdt.internal.core.search.matching; +package org.eclipse.cdt.core.search; import java.io.IOException; import java.util.Iterator; import java.util.LinkedList; import org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate; -import org.eclipse.cdt.core.search.ICSearchPattern; -import org.eclipse.cdt.core.search.ICSearchScope; import org.eclipse.cdt.internal.core.index.IEntryResult; import org.eclipse.cdt.internal.core.index.impl.IndexInput; import org.eclipse.cdt.internal.core.search.IIndexSearchRequestor; +import org.eclipse.cdt.internal.core.search.matching.CSearchPattern; import org.eclipse.core.runtime.IProgressMonitor; diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/SearchEngine.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/SearchEngine.java index 2097b16f057..08fa954f610 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/SearchEngine.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/SearchEngine.java @@ -36,7 +36,6 @@ import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.SubProgressMonitor; @@ -109,7 +108,6 @@ public class SearchEngine implements ICSearchConstants{ */ public static ICSearchScope createCFileSearchScope(IFile sourceFile, ArrayList elements) { CSearchScope scope = new CSearchScope(); - HashSet visitedProjects = new HashSet(2); if (sourceFile != null){ //Add the source file and project @@ -155,7 +153,7 @@ public class SearchEngine implements ICSearchConstants{ * @param _scope * @param _collector */ - public void search(IWorkspace workspace, ICSearchPattern pattern, ICSearchScope scope, ICSearchResultCollector collector, boolean excludeLocalDeclarations) { + public void search(IWorkspace workspace, ICSearchPattern pattern, ICSearchScope scope, ICSearchResultCollector collector, boolean excludeLocalDeclarations) throws InterruptedException { if( VERBOSE ) { System.out.println("Searching for " + pattern + " in " + scope); //$NON-NLS-1$//$NON-NLS-2$ } @@ -199,7 +197,7 @@ public class SearchEngine implements ICSearchConstants{ matchLocator.setShouldExcludeLocalDeclarations( excludeLocalDeclarations ); if( progressMonitor != null && progressMonitor.isCanceled() ) - throw new OperationCanceledException(); + throw new InterruptedException(); //TODO: BOG Filter Working Copies... matchLocator.locateMatches( pathCollector.getPaths(), workspace, this.workingCopies, matches); diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java index 389c8411d23..12156c9abbc 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java @@ -45,6 +45,7 @@ import org.eclipse.cdt.core.parser.ast.IASTFunction; import org.eclipse.cdt.core.parser.ast.IASTParameterDeclaration; import org.eclipse.cdt.core.parser.ast.IASTSimpleTypeSpecifier; import org.eclipse.cdt.core.parser.ast.IASTTypeSpecifier; +import org.eclipse.cdt.core.search.*; import org.eclipse.cdt.core.search.ICSearchConstants; import org.eclipse.cdt.core.search.ICSearchPattern; import org.eclipse.cdt.core.search.ICSearchScope; diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/FieldDeclarationPattern.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/FieldDeclarationPattern.java index 493321c4adb..c9562755777 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/FieldDeclarationPattern.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/FieldDeclarationPattern.java @@ -189,7 +189,6 @@ public class FieldDeclarationPattern extends CSearchPattern { private char [][] decodedQualifications; private char [] simpleName; private char [] decodedSimpleName; - private char decodedType; private SearchFor searchFor; } diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/IncludePattern.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/IncludePattern.java index 76af4bb8d2c..2431316d753 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/IncludePattern.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/IncludePattern.java @@ -41,7 +41,6 @@ public class IncludePattern extends CSearchPattern { */ protected void decodeIndexEntry(IEntryResult entryResult) { char[] word = entryResult.getWord(); - int size = word.length; int firstSlash = CharOperation.indexOf( SEPARATOR, word, 0 ); diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MacroDeclarationPattern.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MacroDeclarationPattern.java index 893b5c630ae..8839b57e473 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MacroDeclarationPattern.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MacroDeclarationPattern.java @@ -86,7 +86,6 @@ public class MacroDeclarationPattern extends CSearchPattern { */ protected void decodeIndexEntry(IEntryResult entryResult) { char[] word = entryResult.getWord(); - int size = word.length; int firstSlash = CharOperation.indexOf( SEPARATOR, word, 0 ); diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java index 5c49552797d..53efa1227c3 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java @@ -89,7 +89,6 @@ import org.eclipse.core.resources.IWorkspaceRoot; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.core.runtime.Path; @@ -335,7 +334,7 @@ public class MatchLocator implements ISourceElementRequestor, ICSearchConstants } - public void locateMatches( String [] paths, IWorkspace workspace, IWorkingCopy[] workingCopies,ArrayList matches ){ + public void locateMatches( String [] paths, IWorkspace workspace, IWorkingCopy[] workingCopies,ArrayList matches ) throws InterruptedException{ matchStorage = matches; workspaceRoot = (workspace != null) ? workspace.getRoot() : null; @@ -368,7 +367,7 @@ public class MatchLocator implements ISourceElementRequestor, ICSearchConstants for( int i = 0; i < length; i++ ){ if( progressMonitor != null ) { if( progressMonitor.isCanceled() ){ - throw new OperationCanceledException(); + throw new InterruptedException(); } else { progressMonitor.worked( 1 ); } @@ -482,7 +481,7 @@ public class MatchLocator implements ISourceElementRequestor, ICSearchConstants if( node instanceof IASTReference ){ IASTReference reference = (IASTReference) node; offset = reference.getOffset(); - end = offset + reference.getName().length();; + end = offset + reference.getName().length(); if (VERBOSE) MatchLocator.verbose("Report Match: " + reference.getName()); } else if( node instanceof IASTOffsetableNamedElement ){ @@ -491,7 +490,7 @@ public class MatchLocator implements ISourceElementRequestor, ICSearchConstants : offsetableElement.getStartingOffset(); end = offsetableElement.getNameEndOffset(); if( end == 0 ){ - end = offset + offsetableElement.getName().length();; + end = offset + offsetableElement.getName().length(); } if (VERBOSE) diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog index 4265d20ee38..4673a49fae6 100644 --- a/core/org.eclipse.cdt.ui/ChangeLog +++ b/core/org.eclipse.cdt.ui/ChangeLog @@ -1,3 +1,6 @@ +2004-02-13 Andrew Niefer + Updated calls to search to handle InterruptedException + 2004-02-16 Alain Magloire Use ITextEditor instead of CEditor. diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenDeclarationsAction.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenDeclarationsAction.java index 9812114d6da..3001c73c13f 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenDeclarationsAction.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenDeclarationsAction.java @@ -16,8 +16,8 @@ import org.eclipse.cdt.core.search.BasicSearchResultCollector; import org.eclipse.cdt.core.search.ICSearchConstants; import org.eclipse.cdt.core.search.ICSearchScope; import org.eclipse.cdt.core.search.IMatch; +import org.eclipse.cdt.core.search.OrPattern; import org.eclipse.cdt.core.search.SearchEngine; -import org.eclipse.cdt.internal.core.search.matching.OrPattern; import org.eclipse.cdt.internal.ui.dialogs.ElementListSelectionDialog; import org.eclipse.cdt.internal.ui.util.EditorUtility; import org.eclipse.cdt.ui.CSearchResultLabelProvider; @@ -124,55 +124,59 @@ public class OpenDeclarationsAction extends Action implements IUpdate { * @see IAction#actionPerformed */ public void run() { - final String selectedText = getSelectedStringFromEditor(); + final String selectedText = getSelectedStringFromEditor(); + + if(selectedText == null) { + return; + } + + final ArrayList elementsFound = new ArrayList(); - if(selectedText == null) { - return; - } - - final ArrayList elementsFound = new ArrayList(); - - IRunnableWithProgress runnable = new IRunnableWithProgress() { - public void run(IProgressMonitor monitor) { - BasicSearchResultCollector resultCollector = new BasicSearchResultCollector(monitor); - IWorkingCopyManager fManager = CUIPlugin.getDefault().getWorkingCopyManager(); - ITranslationUnit unit = fManager.getWorkingCopy(fEditor.getEditorInput()); + IRunnableWithProgress runnable = new IRunnableWithProgress() + { + public void run(IProgressMonitor monitor) { + BasicSearchResultCollector resultCollector = new BasicSearchResultCollector(monitor); + IWorkingCopyManager fManager = CUIPlugin.getDefault().getWorkingCopyManager(); + ITranslationUnit unit = fManager.getWorkingCopy(fEditor.getEditorInput()); ICElement[] projectScopeElement = new ICElement[1]; projectScopeElement[0] = unit.getCProject();//(ICElement)currentScope.getCProject(); ICSearchScope scope = SearchEngine.createCSearchScope(projectScopeElement, true); OrPattern orPattern = new OrPattern(); // search for global variables, functions, classes, structs, unions, enums and macros - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.VAR, ICSearchConstants.DECLARATIONS, true )); - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.FUNCTION, ICSearchConstants.DECLARATIONS, true )); - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.METHOD, ICSearchConstants.DECLARATIONS, true )); - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.TYPE, ICSearchConstants.DECLARATIONS, true )); - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.ENUM, ICSearchConstants.DECLARATIONS, true )); - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.FIELD, ICSearchConstants.DECLARATIONS, true )); - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.NAMESPACE, ICSearchConstants.DECLARATIONS, true )); - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.MACRO, ICSearchConstants.DECLARATIONS, true )); - orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.TYPEDEF, ICSearchConstants.DECLARATIONS, true )); - searchEngine.search(CUIPlugin.getWorkspace(), orPattern, scope, resultCollector, true); - elementsFound.addAll(resultCollector.getSearchResults()); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.VAR, ICSearchConstants.DECLARATIONS, true )); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.FUNCTION, ICSearchConstants.DECLARATIONS, true )); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.METHOD, ICSearchConstants.DECLARATIONS, true )); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.TYPE, ICSearchConstants.DECLARATIONS, true )); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.ENUM, ICSearchConstants.DECLARATIONS, true )); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.FIELD, ICSearchConstants.DECLARATIONS, true )); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.NAMESPACE, ICSearchConstants.DECLARATIONS, true )); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.MACRO, ICSearchConstants.DECLARATIONS, true )); + orPattern.addPattern(SearchEngine.createSearchPattern( selectedText, ICSearchConstants.TYPEDEF, ICSearchConstants.DECLARATIONS, true )); + try { + searchEngine.search(CUIPlugin.getWorkspace(), orPattern, scope, resultCollector, true); + } catch (InterruptedException e) { + } + elementsFound.addAll(resultCollector.getSearchResults()); } - }; + }; - try { - ProgressMonitorDialog progressMonitor = new ProgressMonitorDialog(getShell()); - progressMonitor.run(true, true, runnable); - - if (elementsFound.isEmpty() == true) { - return; - } - - IMatch selected= selectCElement(elementsFound, getShell(), fDialogTitle, fDialogMessage); - if (selected != null) { - open(selected); - return; - } - } catch(Exception x) { - CUIPlugin.getDefault().log(x); - } + try { + ProgressMonitorDialog progressMonitor = new ProgressMonitorDialog(getShell()); + progressMonitor.run(true, true, runnable); + + if (elementsFound.isEmpty() == true) { + return; + } + + IMatch selected= selectCElement(elementsFound, getShell(), fDialogTitle, fDialogMessage); + if (selected != null) { + open(selected); + return; + } + } catch(Exception x) { + CUIPlugin.getDefault().log(x); + } } protected Shell getShell() { diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchOperation.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchOperation.java index c0f000fa335..b7d4840e020 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchOperation.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchOperation.java @@ -12,8 +12,8 @@ package org.eclipse.cdt.internal.ui.opentype; import org.eclipse.cdt.core.search.ICSearchConstants; import org.eclipse.cdt.core.search.ICSearchScope; +import org.eclipse.cdt.core.search.OrPattern; import org.eclipse.cdt.core.search.SearchEngine; -import org.eclipse.cdt.internal.core.search.matching.OrPattern; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.OperationCanceledException; diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchOperation.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchOperation.java index 79f62ccf2b1..5b773a03977 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchOperation.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchOperation.java @@ -20,16 +20,14 @@ import java.util.List; import org.eclipse.cdt.core.search.ICSearchConstants; import org.eclipse.cdt.core.search.ICSearchPattern; import org.eclipse.cdt.core.search.ICSearchScope; +import org.eclipse.cdt.core.search.OrPattern; import org.eclipse.cdt.core.search.SearchEngine; -import org.eclipse.cdt.internal.core.search.matching.OrPattern; import org.eclipse.cdt.internal.ui.CPluginImages; import org.eclipse.cdt.ui.CUIPlugin; import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.actions.WorkspaceModifyOperation; /** * @author aniefer @@ -78,9 +76,10 @@ public class CSearchOperation implements IRunnableWithProgress,ICSearchConstants pattern = SearchEngine.createSearchPattern( _stringPattern, (SearchFor)iter.next(), _limitTo, _caseSensitive ); } - engine.search( _workspace, pattern, _scope, _collector, false ); - - + try { + engine.search( _workspace, pattern, _scope, _collector, false ); + } catch (InterruptedException e) { + } } /** diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor.java index 6f083d7f57f..cc1b8d3d821 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor.java @@ -20,8 +20,8 @@ import org.eclipse.cdt.core.search.BasicSearchMatch; import org.eclipse.cdt.core.search.BasicSearchResultCollector; import org.eclipse.cdt.core.search.ICSearchConstants; import org.eclipse.cdt.core.search.ICSearchScope; +import org.eclipse.cdt.core.search.OrPattern; import org.eclipse.cdt.core.search.SearchEngine; -import org.eclipse.cdt.internal.core.search.matching.OrPattern; import org.eclipse.cdt.internal.corext.template.ContextType; import org.eclipse.cdt.internal.corext.template.ContextTypeRegistry; import org.eclipse.cdt.internal.corext.template.ITemplateEditor; @@ -546,7 +546,10 @@ public class CCompletionProcessor implements IContentAssistProcessor { orPattern.addPattern(SearchEngine.createSearchPattern( searchPrefix, ICSearchConstants.FUNCTION, ICSearchConstants.DECLARATIONS, false )); } - searchEngine.search(CUIPlugin.getWorkspace(), orPattern, scope, searchResultCollector, true); + try { + searchEngine.search(CUIPlugin.getWorkspace(), orPattern, scope, searchResultCollector, true); + } catch (InterruptedException e) { + } elementsFound.addAll(searchResultCollector.getSearchResults()); sendResultsToCollector(elementsFound.iterator(), offset, length, prefix ); diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java index 5214dd4a3ef..41542484138 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java @@ -449,7 +449,10 @@ public class NewClassWizardPage extends WizardPage implements Listener { elements[0] = cProject; ICSearchScope scope = SearchEngine.createCSearchScope(elements, true); - searchEngine.search(CUIPlugin.getWorkspace(), pattern, scope, resultCollector, false); + try { + searchEngine.search(CUIPlugin.getWorkspace(), pattern, scope, resultCollector, false); + } catch (InterruptedException e) { + } elementsFound.addAll(resultCollector.getSearchResults()); }