From 1196d4a5fff47e2f64c738491da55af86c65901d Mon Sep 17 00:00:00 2001 From: Hoda Amer Date: Thu, 15 Jan 2004 18:06:14 +0000 Subject: [PATCH] Content Assist Work : Moved logging and testing to the UI side of CDT --- core/org.eclipse.cdt.core.tests/ChangeLog | 2667 +++++++++-------- .../tests/CompletionProposalsTest.java | 159 - .../core/model/tests/ElementDeltaTests.java | 2 +- .../core/model/tests/WorkingCopyTests.java | 2 +- .../cfiles/CompletionProposalsTestStart.cpp | 24 - .../cfiles/CompletionProposalsTestStart.h | 11 - .../core/suite/AutomatedIntegrationSuite.java | 2 - core/org.eclipse.cdt.core/.options | 3 - core/org.eclipse.cdt.core/ChangeLog | 3 + .../cdt/core/model/ITranslationUnit.java | 1 - .../core/model/IWorkingCopy.java | 4 +- .../internal/core/model/CModelManager.java | 1 + .../core/model/IDebugLogConstants.java | 2 - .../internal/core/model/TranslationUnit.java | 1 + .../eclipse/cdt/internal/core/model/Util.java | 4 - .../cdt/internal/core/model/WorkingCopy.java | 12 +- .../parser/ChangeLog-parser | 1902 ++++++------ .../eclipse/cdt/core/parser/ast/IASTNode.java | 2 +- .../internal/core/parser/pst/TypeFilter.java | 4 +- .../internal/core/parser/util/ASTUtil.java | 14 +- .../eclipse/cdt/core/search/SearchEngine.java | 2 +- .../core/search/matching/MatchLocator.java | 2 +- .../src/org/eclipse/cdt/core/CCorePlugin.java | 5 +- core/org.eclipse.cdt.ui.tests/.classpath | 21 +- core/org.eclipse.cdt.ui.tests/.project | 1 + core/org.eclipse.cdt.ui.tests/ChangeLog | 5 + core/org.eclipse.cdt.ui.tests/plugin.xml | 2 + .../contentassist/CompletionTestStart.h | 30 + .../contentassist/CompletionTestStart1.cpp | 6 + .../contentassist/CompletionTestStart2.cpp | 7 + .../contentassist/CompletionTestStart3.cpp | 3 + .../eclipse/cdt/ui/tests/AutomatedSuite.java | 8 +- .../CompletionProposalsTest.java | 200 ++ .../CompletionProposalsTest1.java | 125 + .../CompletionProposalsTest2.java | 113 + .../CompletionProposalsTest3.java | 118 + core/org.eclipse.cdt.ui/.options | 5 + core/org.eclipse.cdt.ui/ChangeLog | 3 + .../ui/editor/CContentOutlinePage.java | 2 +- .../internal/ui/editor/CDocumentProvider.java | 2 +- .../cdt/internal/ui/editor/CEditor.java | 2 +- .../ui/editor/WorkingCopyManager.java | 2 +- .../ui/text/CReconcilingStrategy.java | 2 +- .../contentassist/CCompletionProcessor.java | 27 +- .../text/contentassist/CompletionEngine.java | 225 +- .../cdt/internal/ui/util/EditorUtility.java | 2 +- .../internal/ui/util/IDebugLogConstants.java | 30 + .../eclipse/cdt/internal/ui/util/Util.java | 50 + .../src/org/eclipse/cdt/ui/CUIPlugin.java | 16 +- .../eclipse/cdt/ui/IWorkingCopyManager.java | 2 +- .../cdt/ui/IWorkingCopyManagerExtension.java | 2 +- .../cdt/ui/wizards/NewClassWizardPage.java | 2 +- 52 files changed, 3184 insertions(+), 2658 deletions(-) delete mode 100644 core/org.eclipse.cdt.core.tests/model/org/eclipse/cdt/core/codeassist/tests/CompletionProposalsTest.java delete mode 100644 core/org.eclipse.cdt.core.tests/resources/cfiles/CompletionProposalsTestStart.cpp delete mode 100644 core/org.eclipse.cdt.core.tests/resources/cfiles/CompletionProposalsTestStart.h rename core/org.eclipse.cdt.core/model/org/eclipse/cdt/{internal => }/core/model/IWorkingCopy.java (97%) create mode 100644 core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart.h create mode 100644 core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart1.cpp create mode 100644 core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart2.cpp create mode 100644 core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart3.cpp create mode 100644 core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsTest.java create mode 100644 core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsTest1.java create mode 100644 core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsTest2.java create mode 100644 core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsTest3.java create mode 100644 core/org.eclipse.cdt.ui/.options create mode 100644 core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/IDebugLogConstants.java create mode 100644 core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/Util.java diff --git a/core/org.eclipse.cdt.core.tests/ChangeLog b/core/org.eclipse.cdt.core.tests/ChangeLog index 342f95b0c49..0240bc89fa2 100644 --- a/core/org.eclipse.cdt.core.tests/ChangeLog +++ b/core/org.eclipse.cdt.core.tests/ChangeLog @@ -1,1332 +1,1335 @@ -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-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/model/org/eclipse/cdt/core/codeassist/tests/CompletionProposalsTest.java b/core/org.eclipse.cdt.core.tests/model/org/eclipse/cdt/core/codeassist/tests/CompletionProposalsTest.java deleted file mode 100644 index 90084750afc..00000000000 --- a/core/org.eclipse.cdt.core.tests/model/org/eclipse/cdt/core/codeassist/tests/CompletionProposalsTest.java +++ /dev/null @@ -1,159 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001 Rational Software Corp. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * Rational Software - initial implementation - ******************************************************************************/ -package org.eclipse.cdt.core.codeassist.tests; -import java.io.FileInputStream; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -import org.eclipse.cdt.core.CCProjectNature; -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.model.CModelException; -import org.eclipse.cdt.core.model.ICProject; -import org.eclipse.cdt.internal.core.model.IWorkingCopy; -import org.eclipse.cdt.internal.core.model.TranslationUnit; -import org.eclipse.cdt.internal.core.search.indexing.IndexManager; -import org.eclipse.cdt.internal.ui.text.contentassist.CCompletionProcessor; -import org.eclipse.cdt.testplugin.CProjectHelper; -import org.eclipse.core.internal.resources.ResourceException; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IProjectDescription; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.core.runtime.Path; -import org.eclipse.jface.text.Document; -import org.eclipse.jface.text.contentassist.ICompletionProposal; - -/** - * @author hamer - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class CompletionProposalsTest extends TestCase{ - private final static long MAGIC_NUMBER = 1000; - private ICProject fCProject; - private IFile headerFile; - private IFile bodyFile; - private NullProgressMonitor monitor; - - public static Test suite() { - TestSuite suite= new TestSuite(CompletionProposalsTest.class.getName()); - suite.addTest(new CompletionProposalsTest("testCompletionProposals")); - return suite; - } - - public CompletionProposalsTest(String name) { - super(name); - } - - protected void setUp() throws Exception { - monitor = new NullProgressMonitor(); - String pluginRoot=org.eclipse.core.runtime.Platform.getPlugin("org.eclipse.cdt.core.tests").find(new Path("/")).getFile(); - - fCProject= CProjectHelper.createCProject("TestProject1", "bin"); - bodyFile = fCProject.getProject().getFile("CompletionProposalsTestStart.cpp"); - headerFile = fCProject.getProject().getFile("CompletionProposalsTestStart.h"); - if ((!headerFile.exists()) || (!bodyFile.exists())) { - try{ - FileInputStream bodyFileIn = new FileInputStream(pluginRoot+ "resources/cfiles/CompletionProposalsTestStart.cpp"); - bodyFile.create(bodyFileIn,false, monitor); - FileInputStream headerFileIn = new FileInputStream(pluginRoot+ "resources/cfiles/CompletionProposalsTestStart.h"); - headerFile.create(headerFileIn,false, monitor); - } catch (CoreException e) { - e.printStackTrace(); - } - } - if (!fCProject.getProject().hasNature(CCProjectNature.CC_NATURE_ID)) { - addNatureToProject(fCProject.getProject(), CCProjectNature.CC_NATURE_ID, null); - } - - // use the new indexer - IndexManager indexManager = CCorePlugin.getDefault().getCoreModel().getIndexManager(); - indexManager.reset(); - - } - - private static void addNatureToProject(IProject proj, String natureId, IProgressMonitor monitor) throws CoreException { - IProjectDescription description = proj.getDescription(); - String[] prevNatures= description.getNatureIds(); - String[] newNatures= new String[prevNatures.length + 1]; - System.arraycopy(prevNatures, 0, newNatures, 0, prevNatures.length); - newNatures[prevNatures.length]= natureId; - description.setNatureIds(newNatures); - proj.setDescription(description, monitor); - } - - protected void tearDown() { - try{ - CProjectHelper.delete(fCProject); - } - catch (ResourceException e) {} - catch (CoreException e) {} - } - - public void testCompletionProposals(){ - try{ - TranslationUnit headerTu = new TranslationUnit(fCProject, headerFile); - TranslationUnit tu = new TranslationUnit(fCProject, bodyFile); - String buffer = tu.getBuffer().getContents(); - Document document = new Document(buffer); - int pos = buffer.indexOf(" a ") + 2; - CCompletionProcessor completionProcessor = new CCompletionProcessor(null); - IWorkingCopy wc = null; - try{ - wc = tu.getWorkingCopy(); - }catch (CModelException e){ - fail("Failed to get working copy"); - } - ICompletionProposal[] results = completionProcessor.evalProposals(document, pos, wc, null); - try { - Thread.sleep(MAGIC_NUMBER); - } catch (InterruptedException e1) { - fail( "Bogdan's hack did not suffice"); - } - -// assertEquals(results.length, 8); - for (int i = 0; i.c source file). diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IWorkingCopy.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/IWorkingCopy.java similarity index 97% rename from core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IWorkingCopy.java rename to core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/IWorkingCopy.java index b54ea2c3e60..2faf98049f4 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IWorkingCopy.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/IWorkingCopy.java @@ -1,4 +1,4 @@ -package org.eclipse.cdt.internal.core.model; +package org.eclipse.cdt.core.model; /********************************************************************** * Copyright (c) 2002,2003 Rational Software Corporation and others. @@ -12,8 +12,6 @@ package org.eclipse.cdt.internal.core.model; ***********************************************************************/ -import org.eclipse.cdt.core.model.CModelException; -import org.eclipse.cdt.core.model.ITranslationUnit; import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.IProgressMonitor; diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java index 080f830872b..d1b940b3e91 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java @@ -18,6 +18,7 @@ import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.CProjectNature; import org.eclipse.cdt.core.IBinaryParser; import org.eclipse.cdt.core.IBinaryParser.IBinaryFile; +import org.eclipse.cdt.core.model.*; import org.eclipse.cdt.core.model.CModelException; import org.eclipse.cdt.core.model.ElementChangedEvent; import org.eclipse.cdt.core.model.IArchive; diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IDebugLogConstants.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IDebugLogConstants.java index ff791844b2c..a380620755b 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IDebugLogConstants.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IDebugLogConstants.java @@ -23,6 +23,4 @@ public interface IDebugLogConstants { public static final DebugLogConstant PARSER = new DebugLogConstant( 1 ); public static final DebugLogConstant MODEL = new DebugLogConstant ( 2 ); - public static final DebugLogConstant CONTENTASSIST = new DebugLogConstant ( 3 ); - } diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java index 4282ee1bf41..66aedd0fe0d 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java @@ -11,6 +11,7 @@ import java.util.Iterator; import java.util.Map; import org.eclipse.cdt.core.CCorePlugin; +import org.eclipse.cdt.core.model.*; import org.eclipse.cdt.core.model.CModelException; import org.eclipse.cdt.core.model.IBuffer; import org.eclipse.cdt.core.model.ICElement; diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Util.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Util.java index 7a84ab46711..c5b5885de5d 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Util.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Util.java @@ -26,7 +26,6 @@ public class Util implements ICLogConstants { public static boolean VERBOSE_PARSER = false; public static boolean VERBOSE_MODEL = false; - public static boolean VERBOSE_CONTENTASSIST = false; private Util() { } @@ -218,9 +217,6 @@ public class Util implements ICLogConstants { else if (client.equals(IDebugLogConstants.MODEL)){ return VERBOSE_MODEL; } - else if (client.equals(IDebugLogConstants.CONTENTASSIST)){ - return VERBOSE_CONTENTASSIST; - } return false; } diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/WorkingCopy.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/WorkingCopy.java index 8a87ebfe378..3c0104703cb 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/WorkingCopy.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/WorkingCopy.java @@ -66,7 +66,7 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { } /** - * @see org.eclipse.cdt.internal.core.model.IWorkingCopy#commit(boolean, org.eclipse.core.runtime.IProgressMonitor) + * @see org.eclipse.cdt.core.model.IWorkingCopy#commit(boolean, org.eclipse.core.runtime.IProgressMonitor) */ public void commit(boolean force, IProgressMonitor monitor) throws CModelException { @@ -106,7 +106,7 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { } /** - * @see org.eclipse.cdt.internal.core.model.IWorkingCopy#destroy() + * @see org.eclipse.cdt.core.model.IWorkingCopy#destroy() */ public void destroy() { if (--this.useCount > 0) { @@ -171,7 +171,7 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { } /** - * @see org.eclipse.cdt.internal.core.model.IWorkingCopy#getOriginalElement() + * @see org.eclipse.cdt.core.model.IWorkingCopy#getOriginalElement() */ public ITranslationUnit getOriginalElement() { return new TranslationUnit(getParent(), getFile()); @@ -281,7 +281,7 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { /** - * @see org.eclipse.cdt.internal.core.model.IWorkingCopy#reconcile() + * @see org.eclipse.cdt.core.model.IWorkingCopy#reconcile() */ public IMarker[] reconcile() throws CModelException { reconcile(false, null); @@ -289,7 +289,7 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { } /** - * @see org.eclipse.cdt.internal.core.model.IWorkingCopy#reconcile(boolean, org.eclipse.core.runtime.IProgressMonitor) + * @see org.eclipse.cdt.core.model.IWorkingCopy#reconcile(boolean, org.eclipse.core.runtime.IProgressMonitor) */ public boolean reconcile(boolean forceProblemDetection, IProgressMonitor monitor) throws CModelException { @@ -343,7 +343,7 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { return somethingChanged; } /** - * @see org.eclipse.cdt.internal.core.model.IWorkingCopy#restore() + * @see org.eclipse.cdt.core.model.IWorkingCopy#restore() */ public void restore() throws CModelException{ if (this.useCount == 0) throw newNotPresentException(); //was destroyed diff --git a/core/org.eclipse.cdt.core/parser/ChangeLog-parser b/core/org.eclipse.cdt.core/parser/ChangeLog-parser index a1f86ba285d..ebc0b755c83 100644 --- a/core/org.eclipse.cdt.core/parser/ChangeLog-parser +++ b/core/org.eclipse.cdt.core/parser/ChangeLog-parser @@ -1,950 +1,952 @@ -2004-01-15 John Camelon - Renamed IASTNode.LookupResult IASTNode.ILookupResult. - Introduced new ParseError exception for contextual parse() methods. - Renamed ParserFactoryException ParserFactoryError. - Replaced ParserNotImplementedException with a variant of ParseError. - Updated IScanner & IParser to not reference OffsetLimitReachedException explicitly. - Renamed ParserMode.CONTEXTUAL_PARSE to COMPLETION_PARSE. - Cleaned up IMacroDescriptor and made Scanner definitions table consistent. - Added IScanner.getDefinitions() to return the entire Map of definitions to a client. - Removed most of the warnings from parser source directory. - Removed the unused SyntaxErrorException. - Provided partial fix for Bug 44370 IASTMacro requires more information for clients. - -2004-01-12 John Camelon - Fixed bug 48909 - Wrong completion node after a . or an -> - Fixed bug 49702 - Wrong completion kind sent in const/dest and code blocks - Added new CompletionKind - STATEMENT_START to indicate the beginning of a statement line. - -2004-01-08 Andrew Niefer - fixing bug 43110 - Parser support needed for functions with ellipses - Added IParameterizedSymbol.setHasVariableArgs() & hasVariableArgs() - Modified ParserSymbolTable.resolveFunction & reduceToViable - Modified CompleteParseASTFactory.createMethod & createFunction - -2004-01-08 Andrew Niefer - Fixing 48307 - PST: Friendship needs to be handled better - Added IDerivableContainerSymbol.lookupFunctionForFriendship. - Modified IASTFactory.createMethod to take an ITokenDuple for the method name. - Added LookupType.FORFRIENDSHIP and use it in LookupElement. - Modified CompleteParseASTFactory.createMethod to handle friend functions. - -2004-01-06 Andrew Niefer - For Content Assist, support lookup using LookupKind.THIS (lookup in the class of the this pointer ) - Fix bug where forward declared method/functions appeared twice in the content assist lookup results. - -2004-01-06 John Camelon - Renamed IToken::tELIPSE to IToken::tELLIPSIS - Partially fixed Bug 43110 : Parser support needed for functions with ellipses - -2004-01-05 John Camelon - Removed warnings. - Moved StructuralParseCallback from model to parser directory to facilitate building the parser standalone. - -2003-12-31 Hoda Amer - - Changed ASTUtil.getType to include parameter initializer clause in returned string. - -2003-12-22 Hoda Amer - Content Assist Work : Returned the results size of the IASTNode lookup - to help in determining the scope relevance - - Added the variable type to a search match result to be compatible with the - results found by the completion engine - -2003-12-17 Andrew Niefer - Content Assist work: - - change parser & symbol table to handle handle friend classes - - change visibility filtering to check for friendship - - fix finding function parameters in prefix lookup - -2003-12-17 Hoda Amer - Content Assist work : Integrated with Parser and Symbol table modifications - -2003-12-15 Andrew Niefer - Changed IASTNode.lookup to take the context as a parameter - created ASTNode to implement IASTNode, ASTSymbolOwner extends it. - Set Completion Scope for statements - Set Completion context for . and -> expressions - -2003-12-15 Hoda Amer - Fixed [Bug 47234] new ParserMode required for a better CModel : - - Added a core plugin preference to build the CModel in Structural mode - - Added StructuralParseCallBack class - - Added lists of declarations to AST Scopes in the complete AST - -2003-12-12 John Camelon - Added preliminary keyword support into IASTCompletionNode::getKeywords(). - Refactored parser to put keyword string literals in one utility class. - -2003-12-11 John Camelon - Added OffsetLimitReachedException and restructured Parser exceptions. - Continued support for code assist/selection search parser. - Ensured all source in parser/ have copyright notices. - -2003-12-09 Andrew Niefer - -created TypeFilter to support support filtering of what kind of symbols to find (for prefix lookup 48306) - -added IContainerSymbol.isVisible for bug 48294 - -2003-12-09 Hoda Amer - Modified IASTCompletionNode.CompletionKind - modified IASTNode.LookupKind - Changed IASTScope to extend IASTNode - -2003-15-09 John Camelon - Fixed Bug 47234 : new ParserMode required for a better CModel - Updated IASTCompletionNode to include a scope as well as a context. - Begun parser updates to support code assist & selection search. - -2003-12-05 John Camelon - Broke the Parser up into separate classes per ParserMode. - -2003-12-04 John Camelon - Removed some warnings. - Fixed Bug 39678 : Scanner doesn't support concatenation of different-type string literals (GCC) - Refactored ScannerContext to use constructors rather than initializers. - Refactored IScannerContext to use enumeration-esque kinds. - Added code assist/selection search support to Scanner. - -2003-12-03 Andrew Niefer - - Symbol table - modify prefix lookup handling of ambiguities - - fix up qualified lookup - - add IContainerSymbol.lookupMethodForDefinition - - Parser - modify Complete parse AST factory to use the correct lookups in different situations - - Created a LookupType enum to specify what kind of lookup is needed (Qualified, unqualified, for definition) - - -2003-11-27 Andrew Niefer - fix bug 47264: Parse fails when using struct s foo; and int s; in function bodies - -2003-11-18 Andrew Niefer - Refactor PST: Split Declaration into 4 classes : ContainerSymbol, DerivableContainerSymbol, ParameterizedContainerSymbol, - SpecializedSymbol. Move these along with BasicSymbol & TemplateInstance to no longer be nested in ParserSymbolTable. - -2003-11-13 Hoda Amer - Changed the getExpressionResultType() in the complete factory to return - an object of type ExpressionResult. - Solved bug#44342: Failure to dereference function calls after a . or an -> - -2003-11-07 John Camelon - Fixed Bug 39554 : _Pragma directive is not supported (ANSI C99) - -2003-11-06 John Camelon - Removed one last remainder of core.model.Util in parser to unbreak 2.0 build. - -2003-11-05 John Camelon - Fixed Bug 44838 : exception when resolving parameter references in a constructor - Fixed Bug 46165 : fields referenced in constructor chains are not called back upon - Fixed Bug 45551 : Macro replacement in #include directives - -2003-11-05 John Camelon - Cleaned up the ParserFactory interface to check for validity of input arguments. - Moved NullSourceElementRequestor and ScannerInfo to public interface as requested. - Restructured code so that no Eclipse/CDT source outside the parser source directory is used. - Updated parser clients to use new ParserFactory (stand-alone parser work item). - -2003-11-05 John Camelon - Removed warnings from parser source tree. - Removed preliminary task tags support to clean up parser interfaces and implementation. - Added preliminary IProblem support to - -2003-11-03 John Camelon - Added in preliminary interface for code completion mode. - -2003-10-28 Andrew Niefer - Fixed Bug 44925 : Search: Elaborated type specifier - Patially fixed Bug 44510 : C/C++ Search gives wrong results - -2003-10-24 John Camelon - Fixed Bug 45476 : preprocessor macro "defined" not handled correctly - Fixed Bug 45477 : macro redefines prevent further parsing - -2003-10-24 John Camelon - Fixed Bug 39542 : Parser fails on 'struct' parameter types - Fixed Bug 39549 : Designated initializers are not supported (ANSI C99) - Fixed Bug 39551 : Complex and imaginary numbers are not supported (ANSI C99) - -2003-10-21 John Camelon - Fixed Bug 40007 : Parser reports success when it fails - Fixed Bug 44305 : Scanner/preprocessor fails on conditionals using hexidecimal - Fixed Bug 41935 : parser provides wrong name on namespace aliases - Fixed Bug 39525 : Parser fails on expressions that take address of overloaded operators - Fixed Bug 45287 : Scanner does not accept character sequence literals - Fixed Bug 36550 : Error recovery with unterminated string is weak - Fixed Bug 41063 : Remove unused K&R C support from ANSI Parser - Fixed Bug 39528 : Function try-blocks are not supported by the parser (ANSI C++) - Fixed Bug 39538 : Parser fails on explicit instantiation of templated operators - Fixed Bug 39536 : Parser fails on templated constructors/conversion operators - Refactored Scanner to make it easier to debug. - -2003-10-01 John Camelon - Fixed Bug 43987 : Search results: Declaration of class not highlighted when selected - Fixed Bug 43997 : Search results: selection includes preceding whitespace - Fixed Bug 44034 : Scanner failure on #undef - -2003-10-01 Andrew Niefer - bug43951 - search on ctor declarations returns definition too. - PST changes: - - modify lookupConstructor to copy the constructor list before resolving on it - - modify checkUserDefinedConversionSequence the same way - - modify isValidFunctionOverload to check for forward declarations - -2003-10-01 Bogdan Gheorghe - Modified CDT log dump in Parser.fetchToken to include error message - -2003-10-01 Andrew Niefer - bug43450 - Scanner needs to handle include paths that contain quotes - -2003-09-30 Bogdan Gheorghe - Added CDT log dump in Parser.fetchToken to catch HandleInclusion failures - -2003-09-30 John Camelon - Fixed Bug 43503 : Search:f_SD_01 cannot be found in ManyClasses20 Project - Fixed Bug 43680 : Fix Parser Error Handling - -2003-09-30 Hoda Amer - -Solution to [Bug 43053] require reference cleanup for expressions - Added purgeReferences() at the end of ASTExpression::acceptElement() - -2003-09-30 Andrew Niefer - PST changes for bug 43503 - parser needs to know the different between ambiguous functions - and no functions when no parameter information is provided - - throw r_UnableToResolveFunction if we have more than 1 function and no parameter info was given - - handle this case in addUsingDeclaration. - * note that r_UnableToResolveFunction doesn't necessarily mean ambiguous if we had enough information - -2003-09-29 Hoda Amer - Solution to bug#43679 : Exceptions in indexer - -2003-09-29 Andrew Niefer - fixed bug 43834 : Empty Parameter list and parameter list taking one void do not match - -2003-09-29 John Camelon - Continued work on Bug 43062 : Outline is confused on operator methods containing spaces - Partial fix for Bug 43680 : Fix Parser Error Handling - -2003-09-26 John Camelon - Fixed Bug 43644 : 6 triangle icons appearing in outline viewer when typing an error - Fixed Bug 43062 : Outline is confused on operator methods containing spaces - Fixed Bug 39531 : Problems with type conversion operators - -2003-09-25 Hoda Amer - - Last part of solution to bug#42453: Expression result types not computed - Added the handling of POSTFIX_TYPENAME_IDENTIFIER - Completed bug#43221: POSTFIX_TYPENAME_IDENTIFIER not implemented - - Solution to bug#43644 : 6 triangle icons appearing in outline viewer when typing ... - -2003-09-24 Hoda Amer - Partial solution to bug#42453: Expression result types not computed - Added the handling of the NEW_TYPEID, CASTEXPRESSION, POSTFIX_DYNAMIC_CAST, - POSTFIX_REINTERPRET_CAST, POSTFIX_STATIC_CAST, and POSTFIX_CONST_CAST - -2003-09-25 John Camelon - Partial fix for Bug 43221 : POSTFIX_TYPENAME_IDENTIFIER not implemented - -2003-09-24 John Camelon - Fixed Bug 43106 : Symbol Table support needed to resolve types - Fixed Bug 43375 : isExtern not returning true for extern declarations - -2003-09-23 John Camelon - Fixed Bug 43084 : need to restructure TypeId to allow dynamic_cast<> type expression references. - Fixed Bug 39504 : sizeof-expressions are not handled properly - -2003-09-23 Hoda Amer - Solution to bug#43373: No reference to static member in definition - Solution to bug#43371: constructor incorrectly marked private - -2003-09-18 Andrew Niefer - - modified Symbol table interfaces to use Lists & Maps instead of LinkedList and HashMap - - fixed warnings in ParserSymbolTable - - fixed bug43106 - Symbol Table support needed to resolve types - - fixed bug43156 - require ability to add implicit inheritance copy constructor - - fixed bug43159 - TypeInfo.equals() not working properly - - fixed bug43238 - Postfix_Subscript expressions confuse function resolution - -2003-09-16 Andrew Niefer - - added setThrowExceptionOnBadCharacterRead to IScanner to help with wildcard bug43063 - -2003-09-17 Hoda Amer - In completeParseASTFactory.getExpressionResultType(): Added the support - for expression types: PM_DOTSTAR, PM_ARROWSTAR, CONDITIONALEXPRESSION - -2003-09-16 John Camelon - Implement CompleteParse IASTFunction::previouslyDeclared(). - -2003-09-16 Hoda Amer - In completeParseASTFactory.getExpressionResultType(): Added the support - for expression type PRIMARY_THIS. - In createMethod(): changed the scope of a method definition to point to - the parent class. - -2003-09-15 John Camelon - Fixed Bug 39556 : 'restrict' qualifier is not supported (ANSI C99) - Fixed Bug 43126 : ISourceElementRequestor.acceptParameterReference accesses internal class - Fixed Bug 43062 : Outline is confused on operator methods containing spaces - Cleaned up some warnings in the parser. - -2003-09-15 Andrew Niefer - bug43106 - added getConditionalOperand to ParserSymbolTable - -2003-09-15 John Camelon - Partially fixed Bug 42979 : Cannot search for operator overloaders - -2003-09-12 Hoda Amer - In completeParseASTFactory.getExpressionResultType() - - Added the handling of some more expression types. - See CompleteParseASTExpressionTest for details. - -2003-09-12 John Camelon - Fixed Bug 42985 : Search: Qualified function call is treated as a declaration - Fixed Bug 40419 : parser fails on heavily templated expressions - -2003-09-12 John Camelon - Fixed Bug 43013 : IASTParameterDeclaration does not derive from IASTOffsetableNamedElement - -2003-09-12 Andrew Niefer - Fixed some NPEs in ParserSymbolTable.getFlatTypeInfo - Added some comments and created some constants to help clarify ranking of conversion sequences - -2003-09-11 John Camelon - Fixed Bug 42840 : Search: Cannot find things after double declarations - Fixed Bug 42798 : Selected #include off by 1 char - Fixed Bug 42872 : dynamic cast not parsed properly - Partially fixed Bug 39504 : sizeof-expressions are not handled properly - Updated SourceElementRequestor callbacks to include IASTParameterReference callbacks. - -2003-09-09 Hoda Amer - - Solved the double reference problem - - solution to bugs #42822, #42823, & #42822B - -2003-09-09 John Camelon - Updated ScannerException to be more precise and include more information. - Updated Parser to be more careful of how it handles particular Scanner errors in COMPLETE_PARSE mode. - -2003-09-08 Bogdan Gheorghe - Added ScannerExceptions in Preprocessor.java to PDE Error - Log - -2003-09-09 Hoda Amer - Added more IASTExpression.Kind handling to CompleteParseASTFactory.getExpressionResultType() - -2003-09-08 John Camelon - Made scoping support more robust in CompleteParse mode. - Refactored ISourceElementRequestor (enter|exit)CodeBlock() to take IASTCodeScope rather than IASTScope. - Removed the now obsolete DOM. -` Added enumerator references to ISourceElementRequestor. - -2003-09-08 Andrew Niefer - - Created ParserLanguage.java - - Updated Factories to take language as parameter when create scanner & parser - - Updated Parser, Scanner & ParserSymbolTable to take language in their constructor - -2003-09-05 Hoda Amer - - Added references to variables with pointers in solution - of bug#42453:Expression result types not computed - - -2003-09-05 John Camelon - Continue to add support for parsing within function bodies. - Add workaround for 1.2 for inline function declaration-before-use chicken-and-egg. - -2003-09-05 John Camelon - Fixed NPE on nested declarations in code blocks. - -2003-09-04 John Camelon - First pass of parsing function bodies with X-Reference information. - Updated IASTFactory/ISourceElementRequestor to include IASTCodeScope - constructs, clients should keep this in mind and update their implementations. - -2003-09-04 Andrew Niefer - Fix bug42541 - Anonymous structures cause NPE in full parse - -2003-09-03 Andrew Niefer - fix bug in PST that prevents > 2 constructors - -2003-09-03 John Camelon - Fixed bug41445 - QualifiedLookup succeeds where it should fail. - -2003-09-02 Andrew Niefer - bug41935 - Modifications to PST to allow for namespace aliases - -2003-08-28 John Camelon - Fixed bug39535 - Parser fails on namesapce aliases - -2003-08-26 Bogdan Gheorghe - Added parser constant to all debugLog tracing statements. - -2003-08-25 John Camelon - Fixed bug39526 - Parser doesn't handle initializers correctly. - Fixed bug41520 - FullParse : Constructor Initializer is mistaken as function prototype - -2003-08-25 John Camelon - Fixed Bug 39530 - More problems with initializers. - Fixed Bug 37424 - Crash when opening big files - Refactored pointerOperators & cvQualifiers to not throw backtracks in optional case. - Added tracing support to cdt.core plugin via .options file. - -2003-08-14 John Camelon - Removed warnings from SymbolTable & QuickParseCallback (removing implicit accessor generation). - Made IASTElaboratedTypeSpecifier derive from IASTOffsetableNamedElement (as it should). - -2003-08-14 John Camelon - Added X-Reference support for ArrayModifiers and Exception Specifications. - Fixed Bug 41551 - HandleInclusion always throws ScannerException on local includes. - -2003-08-13 John Camelon - Added constructor expression support for variables. - Added constructor chain x-reference support for methods. - -2003-08-13 John Camelon - Added Expression x-reference support into Parser. - -2003-08-12 John Camelon - Added X-Ref/Elaborated type support w/element requestor callbacks. - -2003-08-11 John Camelon - Added Complete Parse support for ASM Definitions. - Added isVolatile() to abstract declarations. - Added Complte Parse support for elaborated types / forward declaration of classes. - Fixed some robustness issues. - -2003-08-05 Andrew Niefer - - Refactor symbol table functions to start with lower case letters - - Added better constructor support : - IDerivableContainerSymbol.addConstructor - IDerivableContainerSymbol.lookupConstructor - IDerivableContainerSymbol.getConstructors - - Changed ParserSymbolTableException.r_Unspecified to r_InternalError - - implicit user-defined conversion sequences now only use constructors not marked explicit - - user-defined conversion sequences are now only applied at most once (12.3-4 in spec) - -2003-07-31 Andrew Niefer - Added better support to the parser symbol table for forward declarations - -2003-07-31 Victor Mozgin - Fixed PR 39540 : Parser fails on const qualifier after class specifier. - -2003-07-30 Victor Mozgin - Fixed PR 39532 : Parser fails on fully-qualified class names. - -2003-07-29 John Camelon - Updated AST to better represent pointers to functions/methods. - Implemented typedef declaration/x-ref infrastructure. - -2003-07-29 Victor Mozgin - Fixed PR 39546 : Parser fails on 'signed' casts. - -2003-07-28 John Camelon - Fixed Bug 40842 - Parser: NPE while parsing class declaration in full parse mode - Fixed Bug 40843 - Parser: failParse doesn't set parsePassed = false on EOF. - Fixed Miscellaneous overrides issues involving parameters & functions. - -2003-07-28 John Camelon - Fixed Bug 40730 : Parser is not searching the include path for #include"" - -2003-07-28 Victor Mozgin - Fixed PR 39537 : Parser fails if template parameters contain '>' or '<' characters. - -2003-07-25 Victor Mozgin - Fixed PR 39553 : Macros are not expanded in #include statements. - -2003-07-24 John Camelon - Added COMPLETE_PARSE support for Method and Field declarations and cross-references. - Fixed some small ParserSymbolTable bugs. - Added support for linkage specification under COMPLETE_PARSE. - -2003-07-24 John Camelon - Added CompleteParse - UsingDirective & UsingDeclarations w/namespace/class/field variable references. - Added CompleteParse support for enumeration specifiers and references in variables & fields. - Stubbed out other Scopes/Declarations for COMPLETE_PARSE mode to allow indexer team to switch over ASAP. - -2003-07-22 John Camelon - Added in preliminary support for Field/Variable w/cross references on their types. - -2003-07-21 John Camelon - Addded in support for BaseSpecifier & class/namespace reference callbacks upon those. - -2003-07-21 John Camelon - Fleshed out basic declarations for FullParse AST. - Fixed Bug 40554 - Fields coming back as Vars - Fixed Bug 40555 - Methods come back as Functions - -2003-07-18 John Camelon - Added ISourceElementCallbackDelegate interface for AST constructs to allow the Parser to delegate callback's to the nodes themselves. - Got rid of ParserMode.STRUCTURAL_PARSE for the time being. - Removed org.eclipse.cdt.internal.core.parser.ast.full. - Created org.eclipse.cdt.internal.core.parser.ast.complete. - Updated ParserFactory.createScanner() to force the user to provide a callback and a ParserMode. - Introduced ASTSemanticException for COMPLETE_PARSE mode. - Fleshed out preliminary IASTReference interfaces and added callbacks to ISourceElementRequestor. - Removed acceptElaboratedTypeSpecifier() from ISourceElementRequestor. - -2003-07-18 John Camelon - Removed DeclaratorDuple as it was obsolete. - Fixed offsets in quickParse's IASTTypedefDeclaration implementation. - Fixed Bug 40436 - Fully Qualified Names Needed (for Indexer/Search features) - -2003-07-17 John Camelon - Removed IParserCallback. - Partially converted DOM to ISourceElementRequestor (requires refactoring of CModelBuilder & StuctureComparator modules in near future). - Completely finished ISourceElementRequestor/IASTFactory work for QuickParse mode. - Added pointer to methods/functions into AST callback structure. - Restructured AST class hierarchy. - Removed the old IParserCallback return Objects from every Parser method. - -2003-07-17 Victor Mozgin - Added support for digraphs and trigraphs. - Added support for hex floating point literals. - Fixed stack overflow problem with string literals concatenation. - Fixed problem with token pasting in macros. - This solves PR 39523, 39550, 39552. - -2003-07-15 Victor Mozgin - Fixed PR 39349 : Scanner fails on long long literals. - Fixed PR 39544 : Scanner fails on wide char literals. - -2003-07-10 John Camelon - Added in template support to IAST hierarchy. - Updated instantiation & specialization hierarchy. - Removed ASTTemplateDeclarationType. - Added full requestor callbacks for fields, variables, functions, methods & typedefs. - -2003-07-08 John Camelon - Filled out IASTMethod & IASTFunction & added implementations. - Updated IScanner, clients & implementations to use IScannerInfo. - Finished SimpleDeclaration porting to new architecture, only thing left is templates. - -2003-07-07 John Camelon - Bug 39652 - AST: Nested Classes incorrectly report null qualified Names - Fuller specification of Field/Method interfaces. - -2003-07-04 John Camelon - Fixed NPE in Parser::declarator(). - Bug 39652 - AST: Nested Classes incorrectly report null qualified Names - -2003-07-04 Victor Mozgin - Added CTaskTagsReconciler. - Extended ParserFactory with createProblemReporter() and createTranslationResult(). - -2003-07-02 Victor Mozgin - Fixed PR 39501 : Parser problems with throw clauses. - -2003-06-30 John Camelon - Further restructuring of Parser for ISourceElementRequestor. - Added interfaces/implementation for Simple Declarations. - Cleaned up DOM's representation of Constructor chains. - -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-26 Victor Mozgin - Task tags support in C/C++ comments (initial revision). - Infrastructure to support problem reporting during translation. - Additional infrastructure for options/preferences handling. - -2003-06-25 John Camelon - Fixed bug39348 - sizeof elaborated types fail in parsing expression - -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. - -2003-06-24 John Camelon - Updates for ISourceElementRequestor - elaborated types & enumerations. - -2003-06-23 John Camelon - Updating SimpleDeclarations to move towards new Callback structure. - -2003-06-23 John Camelon - Updated Factory infrastructure, constructors, etc. - Introduced Preprocessor class for transitive closure calc. client. - -2003-06-20 Victor Mozgin - Fixed PR 36463 : Offsets of macros are incorrect. - -2003-06-17 Victor Mozgin - Implemented correct handling of nested declarators in CModelBuilder. - Added proper support for function pointers as parameters. - This fixes PR 38921 and 39002. - -2003-06-16 Victor Mozgin - Implemented support for old K&R-style C function declarations. - Added oldKRParametersBegin() and oldKRParametersEnd() to IParserCallback. - Added getParameterTypes() with support of K&R to CModelBuilder. - Fixed ExpressionEvaluator and NullSourceElementRequestor for additions to IParserCallback. - Added handling of K&R syntax to the parser. - This fixes PR 7541, 35320 and 38434. - -2003-06-14 Victor Mozgin - Fixed handling of parameter lists for typedefs for functions. - More errorhandling in CModelBuilder. - Added handling of pointers to members. - Added handling of declarations for nested scopes (like A::B::C). - This fixes PR 36290, 36931 and partially 38920. - -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. - NullSourceElementRequester now dummy-implements both IParserCallback and ISourceElementRequester. - -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-10 John Camelon - Futher pursuit of the golden hammer, symbol table integration. - -2003-06-09 John Camelon - First step in replacing IParserCallback with ISourceElementRequestor. - -2003-06-05 Andrew Niefer - Begin implementation of functions for template specializations: deduceTemplateArgument, - classTemplateSpecializationToFunctionTemplate, transformFunctionTemplateForOrdering - -2003-06-09 Victor Mozgin - Fixed for conversion operator declarations. - This fixes PR 36769 (finally) and PR 38657. - -2003-06-09 Victor Mozgin - Fixed Bug 36932 - RTS: Parser fails on "new" in ctor initializer - Improved handling of new-expressions: placements, arrays and - multiple parameters in initializers are now parsed. - -2003-06-09 Victor Mozgin - Fixed Bug 36701 - Scanner looses non-token chars while macro stringizing - -2003-06-07 Victor Mozgin - Fixes for templated constructor/destructor/operator declarations. - This fixed PR 36766, 36767, 36769 (STL parsing problems). - -2003-06-06 Victor Mozgin - Fixed Bug 38065 - Scanner skipped backslashes inside the code - -2003-06-05 John Camelon - Fix Bug 38380 "Include" class public methods fails JUnit tests - -2003-05-29 Andrew Niefer - new Class eType for stronger type safety in TypeInfo - new class PtrOp for better handling of pointer operators and cv qualifiers - new class TemplateInstance to support templates - Start of implementation for templates & specializations - -2003-05-29 John Camelon - Remove all AST components. - -2003-05-26 John Camelon - Rollback PST/Parser integration. - -2003-05-13 Andrew Niefer - Moved symbol table to org.eclipse.cdt.internal.core.pst - Created interface for symbol table: ISymbol, IContainerSymbol, IDerivableContainerSymbol, - IParameterizedSymbol, and ISpecializedSymbol. These are all implemented by Declaration - The symbol table itself uses this interface instead of using its Declaration directly - (with the exception of the undo command framework) - -2003-05-08 Andrew Niefer - Added a basic command structure to support rollbacks - -2003-05-06 John Camelon - Further integration of SymbolTable into Parser, some refactoring. - -2003-05-05 John Camelon/Andrew Niefer - Added Symboltable infrastructure into main parser. - -2003-05-05 Andrew Niefer - Structural changes to ParserSymbolTable: - - moved TypeInfo & Declaration inside ParserSymbolTable - - removed the stack & push/pop/peek - - moved nonstatic add/lookup fuctions from the table to Declaration - - began undo framework: added AddDeclarationCommand - -2003-05-01 Andrew Niefer - Fixed Bug 36287 - Parser failure with new CDT 1.1 parser - Fixed Bug 37011 - Scanner: #define A "//" not properly handled - -2003-04-30 John Camelon - Added some Javadoc to IParser.java and Parser.java. - -2003-04-28 John Camelon - Fixed Bug 37019 - RTS: Parser fails on variable defn using constructor - Fixed Bug 36767 - STL Testing: Parser is confused and goes into template function body - -2003-04-28 John Camelon - Partial fix for Bug37002 - Order of Offsetables is wrong - -2003-04-27 John Camelon - Partial fix for Bug 36932 - RTS: Parser fails on "new" in ctor initializer - Fixed Bug 36704 - Problem parsing Loki's Reference Typelist.h - Fixed Bug 36699 - Problem parsing Loki's Reference SmartPtr.h Impl - Fixed Bug 36691 - Problem parsing Loki's Reference HierarchyGenerators.h Impl - -2003-04-25 Andrew Niefer - Fixed bug36771 - Outline view shows include with no name - Fixed bug36714 - Parser fails on initial assignment using floating-suffix - Revisted bug36816 - Incomplete #include stops outline view - -2003-04-25 John Camelon - Fixed bug36852 - outline window doesn't show all functions - Fixed bug36764 - Bit fields cause parse errors - Fixed bug36702 - Parser error when having function pointers as parameters - -2003-04-24 John Camelon - Fixed Bug36799 STL Testing: Parser fails on Variable Definition - -2003-04-24 John Camelon - Fixed bug36693 - Problem parsing Loki's Reference SmallObj.cpp Impl - Fixed bug36696 - Problem parsing Loki's Reference SmartPtr.h Impl - Improved our error handling robustness. - Fixed bug36713 - Parser fails on definitions of pointers to functions - Fixed Dave's performance test parse failure. - Fixed bug36811 - The using directive causes parser to fail - Fixed bug36794 - ClassCastException for A template with no parameters - -2003-04-24 Andrew Niefer - Fixed Bug36816 Scanner infinite loop on incomplete #include - Fixed Bug36255 Parser hangs/goes infinite - -2003-04-21 John Camelon - Revisited bug36247 Parser confused by symbols #defined elsewhere - Fixed Bug36708 Problem parsing Loki's Reference TypeTraits.h - Fixed Bug36690 Problem parsing Loki's Reference Functor.h Implementation - Fixed Bug36692 Problem parsing Loki's Reference Singleton.h Impl - Fixed Bug36703 Problem parsing Loki's Reference TypeInfo.h Impl - Fixed Bug36689 Problem parsing Loki's Reference AbstractFactory.h Implementation - Fixed Bug36707 Problem parsing Loki's Reference TypeManip.h - -2003-04-21 Andrew Niefer - Fixed Bug36475 - Scanner does not concatenate strings - Fixed Bug36509 - Scanner turns strings into identifiers when expanding macros - Fixed Bug36521 - Scanner gets confused over commas in function like macros - Fixed Bug36695 - Scanner looses escaping on chars (ie '\4' to '4') - -2003-04-20 John Camelon - Fixed Bug36551 Bad parse on attached file. - Partial Fix for Bug36631 remove linear search algorithm from OffsetMapping - Some debunking of line numbers. - -2003-04-17 John Camelon - Fixed error in Elaborated Enumeration Types. - Fixed Bug36559 - Parsing Templates... - Fixed Bug36634 - Enum start line error - -2003-04-16 John Camelon - Fixed Bug36532 - Hang on partial template definition. - Fixed Bug36432 - Trying to open attached source code hangs Eclipse. - Fixed Bug36594 - Parser Stack Overflow on unaryExpression - Fixed Bug36600 - Elaborated Enumerated Types Parse Incorrectly. - -2003-04-15 John Camelon - Fixed bug36434 - Broken outline in winbase.h - Partial Fix for bug36379 - The parser to set Line informations when scanning. - Fixed CModelManager to include header files with .H extension as C++ headers. - Fixed bug36448 - Parser fails for C programs containing C++ keywords as identifiers - -2003-04-15 Andrew Niefer - Added scanner support to fix Bug36047 - -2003-04-13 John Camelon - Minor cleanup of callbacks due to removal of NewModelBuilder. - Added parser support to partially fix bug36416 & bug36294. Also added minimal C-Model support for these fixes. - -2003-04-11 John Camelon - Minimized the number of objects being returned from Parser callbacks. - Fixed CModelBuilder to handle errors better. - Reorganized the DOM Hierarchy to ensure that nodes were added to the tree on End() callbacks. - Fixed defect 36247(). - -2003-04-11 John Camelon - Fixed Bug 36243 DomBuilder Offsetable List - -2003-04-10 John Camelon - Fixed Bug36237 Parser fails on casts in ctor initializer. - Added AccessSpecifier to TemplateDeclaration. - -2003-04-10 John Camelon - Updated callbacks and parser to add offset information to template declarations, - thus making TemplateDeclaration implement IOffsetable. - -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. - Fixed bug36250 Parser ignores functions with default parameters that have no name. - Fixed bug36240 Parser incorrectly parses operator= - Fixed bug36254 Parser doesn't recognize unsigned as a type by itself. - -2003-04-09 John Camelon - Added timing printout for CModelTests. - Provided partial fix for bug36255 to get past infinite loop, will leave defect open. - Fixed bug36045 (Again). - Fixed bug36287. - -2003-04-06 Andrew Niefer - Added ParserSymbolTable::Cost and used it to fix up the conversion sequence ranking - -2003-04-06 John Camelon - Fixed defect 36073. - Fixed error handling for unterminated strings in Scanner. - Significantly updated callback structure to better suite the nature of the Code Model. - Updated all callbacks and parser to accommodate altered callbacks. - -2003-04-04 John Camelon - Fixed defect 35939. Proper CElement::pos() is set on Simple Declarations, - Class Specifications, Namespaces, Enumerations and Enumerators, Macros and Inclusions. - -2003-04-03 John Camelon - Fixed defects 36019, 36020, 36045. - Finished template declarations and their callbacks for the DOM (not the Code Model). - -2003-04-01 John Camelon - Updated Scanner to convert control-characters to ' '. - Fixed logic error in SimpleDeclarationWrapper. - Added operator support to grammar. - Fixed Name.toString() to support non-qualified yet multi-part names. - -2003-04-01 Andrew Niefer - Parser Symbol Table, modified lookup with respect to resolving ambiguous names, - reducing the number of temporary lists/sets. Modified adding using declarations - to properly support overloaded functions. Added initial support for user defined - conversion sequences when resolving overloaded functions. - -2003-04-01 John Camelon - Fixed bug35906 - Udated Scanner to not puke on certain control characters. - -2003-03-31 John Camelon - Fixed unsigned short SimpleDeclarations not showing up in the outline view. - Fixed default visibilities for structs in outline view. - Fixed bug35892. - Added icon-less typedefs and enums to the outline view. - Fixed NPEs relating to anonymous structs, unions, enums in outline view. - -2003-03-31 Andrew Niefer - Parser Symbol Table, better support for function resolution with pointers and - references as parameters. Also support for typedefs as function parameters - -2003-03-31 John Camelon - Updated NewModelBuilder to work for ElaboratedTypeSpecifiers, PointerOperators, Const Methods. - Fixed bug35878. - -2003-03-31 John Camelon - Updated Scanner to work for Strings literals like L"this string" - Updated Scanner to work for floating points literals. - Updated Scanner to be more forgiving on errors in QuickScan mode. - Got template instantiation and specialization working (w/callbacks and DOM). - Updated Parser/Callbacks for handle pure virtual function declarations. - Added callback support for some template declarations (not all branches). - -2003-03-28 John Camelon - Added AccessSpecifier and ClassKind to parser.util package and refactored callbacks. - Better encapsulated ExceptionSpecification in the DOM. - Updated DOM structures to return unmodifiable collections. - Added callback support for asmdefinitions. - Added callback support for constructor initializer chains. - Fixed bug 35781 and updated parser to catch all exceptions from callbacks to ensure best-effort parsing. - Removed Main.java from Parser package. - -2003-03-26 Andrew Niefer - Moved type information and ParameterInfo from Declaration into util.TypeInfo - Initial implementation of standard conversion sequences for function resolution - -2003-03-24 John Camelon - Added callback support for namespace definitions. - Updated Parser exception hierarchy. - Added callback support for linkage specifications. - Added callback support for using declarations and directives. - -2003-03-23 John Camelon - Added callback support for class member visibility. - Added callback support for pointer and reference operators on declarators. - Added callback support for throws clauses an const operations. - Added callback support for array declarators. - -2003-03-20 Andrew Niefer - Parser Symbol Table updates for: - * friends - * "this" pointer - * enumerators - * Argument dependent lookup - * adding parameters to functions & function overloading - -2003-03-19 John Camelon - Updated Parser method visibility to solidify external interface. - Solved and removed TODO's from Scanner implementation. - Updated Parser and callbacks to handle basic expressions. - -2003-03-18 John Camelon - Updated IParserCallback (and implementations) to add a typeName to DeclSpecifier. - Updated IParserCallback and NewModelBuilder to distinguish between Function declarations and definitions. - -2003-03-17 Doug Schaefer - Changed EOF to be a Backtrack exception instead of a token so simplify - error handling. - -2003-03-13 John Camelon - Moved ## token to IScanner from Scanner. - Updated IParserCallback and implementations to deal with Elaborated Type Specifiers. - Moved IScope into the internal DOM package. - -2003-03-11 John Camelon - added ChangeLog to parser directory - updated IParserCallback (and all implementors) for expressions - removed inheritance relationship between ExpressionEvaluator and NullParserCallback - removed redundant assignmentOperator() calls in Parser::initDeclarator - removed class util.DeclarationSpecifier, merged Container interface into util.DeclSpecifier - organized imports on the parser folder - * dom/org/eclipse/cdt/internal/core/dom/DOMBuilder.java - * dom/org/eclipse/cdt/internal/core/dom/Declarator.java - * dom/org/eclipse/cdt/internal/core/dom/ParameterDeclaration.java - * dom/org/eclipse/cdt/internal/core/dom/SimpleDeclaration.java - * parser/org/eclipse/cdt/internal/core/model/NewModelBuilder.java - * parser/org/eclipse/cdt/internal/core/model/Parameter.java - * parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java - * parser/org/eclipse/cdt/internal/core/parser/ExpressionEvaluator.java - * parser/org/eclipse/cdt/internal/core/parser/IParserCallback.java - * parser/org/eclipse/cdt/internal/core/parser/NullParserCallback.java - * parser/org/eclipse/cdt/internal/core/parser/Parser.java - * parser/org/eclipse/cdt/internal/core/parser/util/DeclSpecifier.java - -2003-03-10 John Camelon - added in support for detecting and reporting circular inclusions - added optimization by caching inclusion directories - added macro pasting capabilities - updated inclusion searching algorithm for local inclusions - -2003-03-07 John Camelon - fixed initDeclarators for the outline view. - -2003-03-06 Doug Schaefer - Some minor fixes to get constructors/destructors parsing as well as some minor clean up and robustness. - -2003-03-06 John Camelon - added quickParse heuristic to Scanner for handling #if conditionals to avoid throwing - ScannerExceptions on undefined preprocessor symbols - added minimal enum support to Parser (though not to DOM or CModel) - -2003-03-06 Andrew Niefer - Implementation of Namespaces & using directives in new parser's symbol table - -2003-03-05 Doug Schaefer - Some minor fixes to the parser. - -2003-03-04 Doug Schaefer - Added Parser in the "parser" source folder in cdt.core - Preference in the C/C++ preference page to enable/disable use of the new parser (disabled by default) - Start on the DOM which we are using to test the parser (source folder "dom") - Start on a new Model Builder for creating CElements using the new parser (currently in source folder "parser") +2004-01-15 Hoda Amer + +2004-01-15 John Camelon + Renamed IASTNode.LookupResult IASTNode.ILookupResult. + Introduced new ParseError exception for contextual parse() methods. + Renamed ParserFactoryException ParserFactoryError. + Replaced ParserNotImplementedException with a variant of ParseError. + Updated IScanner & IParser to not reference OffsetLimitReachedException explicitly. + Renamed ParserMode.CONTEXTUAL_PARSE to COMPLETION_PARSE. + Cleaned up IMacroDescriptor and made Scanner definitions table consistent. + Added IScanner.getDefinitions() to return the entire Map of definitions to a client. + Removed most of the warnings from parser source directory. + Removed the unused SyntaxErrorException. + Provided partial fix for Bug 44370 IASTMacro requires more information for clients. + +2004-01-12 John Camelon + Fixed bug 48909 - Wrong completion node after a . or an -> + Fixed bug 49702 - Wrong completion kind sent in const/dest and code blocks + Added new CompletionKind - STATEMENT_START to indicate the beginning of a statement line. + +2004-01-08 Andrew Niefer + fixing bug 43110 - Parser support needed for functions with ellipses + Added IParameterizedSymbol.setHasVariableArgs() & hasVariableArgs() + Modified ParserSymbolTable.resolveFunction & reduceToViable + Modified CompleteParseASTFactory.createMethod & createFunction + +2004-01-08 Andrew Niefer + Fixing 48307 - PST: Friendship needs to be handled better + Added IDerivableContainerSymbol.lookupFunctionForFriendship. + Modified IASTFactory.createMethod to take an ITokenDuple for the method name. + Added LookupType.FORFRIENDSHIP and use it in LookupElement. + Modified CompleteParseASTFactory.createMethod to handle friend functions. + +2004-01-06 Andrew Niefer + For Content Assist, support lookup using LookupKind.THIS (lookup in the class of the this pointer ) + Fix bug where forward declared method/functions appeared twice in the content assist lookup results. + +2004-01-06 John Camelon + Renamed IToken::tELIPSE to IToken::tELLIPSIS + Partially fixed Bug 43110 : Parser support needed for functions with ellipses + +2004-01-05 John Camelon + Removed warnings. + Moved StructuralParseCallback from model to parser directory to facilitate building the parser standalone. + +2003-12-31 Hoda Amer + - Changed ASTUtil.getType to include parameter initializer clause in returned string. + +2003-12-22 Hoda Amer + Content Assist Work : Returned the results size of the IASTNode lookup + to help in determining the scope relevance + - Added the variable type to a search match result to be compatible with the + results found by the completion engine + +2003-12-17 Andrew Niefer + Content Assist work: + - change parser & symbol table to handle handle friend classes + - change visibility filtering to check for friendship + - fix finding function parameters in prefix lookup + +2003-12-17 Hoda Amer + Content Assist work : Integrated with Parser and Symbol table modifications + +2003-12-15 Andrew Niefer + Changed IASTNode.lookup to take the context as a parameter + created ASTNode to implement IASTNode, ASTSymbolOwner extends it. + Set Completion Scope for statements + Set Completion context for . and -> expressions + +2003-12-15 Hoda Amer + Fixed [Bug 47234] new ParserMode required for a better CModel : + - Added a core plugin preference to build the CModel in Structural mode + - Added StructuralParseCallBack class + - Added lists of declarations to AST Scopes in the complete AST + +2003-12-12 John Camelon + Added preliminary keyword support into IASTCompletionNode::getKeywords(). + Refactored parser to put keyword string literals in one utility class. + +2003-12-11 John Camelon + Added OffsetLimitReachedException and restructured Parser exceptions. + Continued support for code assist/selection search parser. + Ensured all source in parser/ have copyright notices. + +2003-12-09 Andrew Niefer + -created TypeFilter to support support filtering of what kind of symbols to find (for prefix lookup 48306) + -added IContainerSymbol.isVisible for bug 48294 + +2003-12-09 Hoda Amer + Modified IASTCompletionNode.CompletionKind + modified IASTNode.LookupKind + Changed IASTScope to extend IASTNode + +2003-15-09 John Camelon + Fixed Bug 47234 : new ParserMode required for a better CModel + Updated IASTCompletionNode to include a scope as well as a context. + Begun parser updates to support code assist & selection search. + +2003-12-05 John Camelon + Broke the Parser up into separate classes per ParserMode. + +2003-12-04 John Camelon + Removed some warnings. + Fixed Bug 39678 : Scanner doesn't support concatenation of different-type string literals (GCC) + Refactored ScannerContext to use constructors rather than initializers. + Refactored IScannerContext to use enumeration-esque kinds. + Added code assist/selection search support to Scanner. + +2003-12-03 Andrew Niefer + - Symbol table - modify prefix lookup handling of ambiguities + - fix up qualified lookup + - add IContainerSymbol.lookupMethodForDefinition + - Parser - modify Complete parse AST factory to use the correct lookups in different situations + - Created a LookupType enum to specify what kind of lookup is needed (Qualified, unqualified, for definition) + + +2003-11-27 Andrew Niefer + fix bug 47264: Parse fails when using struct s foo; and int s; in function bodies + +2003-11-18 Andrew Niefer + Refactor PST: Split Declaration into 4 classes : ContainerSymbol, DerivableContainerSymbol, ParameterizedContainerSymbol, + SpecializedSymbol. Move these along with BasicSymbol & TemplateInstance to no longer be nested in ParserSymbolTable. + +2003-11-13 Hoda Amer + Changed the getExpressionResultType() in the complete factory to return + an object of type ExpressionResult. + Solved bug#44342: Failure to dereference function calls after a . or an -> + +2003-11-07 John Camelon + Fixed Bug 39554 : _Pragma directive is not supported (ANSI C99) + +2003-11-06 John Camelon + Removed one last remainder of core.model.Util in parser to unbreak 2.0 build. + +2003-11-05 John Camelon + Fixed Bug 44838 : exception when resolving parameter references in a constructor + Fixed Bug 46165 : fields referenced in constructor chains are not called back upon + Fixed Bug 45551 : Macro replacement in #include directives + +2003-11-05 John Camelon + Cleaned up the ParserFactory interface to check for validity of input arguments. + Moved NullSourceElementRequestor and ScannerInfo to public interface as requested. + Restructured code so that no Eclipse/CDT source outside the parser source directory is used. + Updated parser clients to use new ParserFactory (stand-alone parser work item). + +2003-11-05 John Camelon + Removed warnings from parser source tree. + Removed preliminary task tags support to clean up parser interfaces and implementation. + Added preliminary IProblem support to + +2003-11-03 John Camelon + Added in preliminary interface for code completion mode. + +2003-10-28 Andrew Niefer + Fixed Bug 44925 : Search: Elaborated type specifier + Patially fixed Bug 44510 : C/C++ Search gives wrong results + +2003-10-24 John Camelon + Fixed Bug 45476 : preprocessor macro "defined" not handled correctly + Fixed Bug 45477 : macro redefines prevent further parsing + +2003-10-24 John Camelon + Fixed Bug 39542 : Parser fails on 'struct' parameter types + Fixed Bug 39549 : Designated initializers are not supported (ANSI C99) + Fixed Bug 39551 : Complex and imaginary numbers are not supported (ANSI C99) + +2003-10-21 John Camelon + Fixed Bug 40007 : Parser reports success when it fails + Fixed Bug 44305 : Scanner/preprocessor fails on conditionals using hexidecimal + Fixed Bug 41935 : parser provides wrong name on namespace aliases + Fixed Bug 39525 : Parser fails on expressions that take address of overloaded operators + Fixed Bug 45287 : Scanner does not accept character sequence literals + Fixed Bug 36550 : Error recovery with unterminated string is weak + Fixed Bug 41063 : Remove unused K&R C support from ANSI Parser + Fixed Bug 39528 : Function try-blocks are not supported by the parser (ANSI C++) + Fixed Bug 39538 : Parser fails on explicit instantiation of templated operators + Fixed Bug 39536 : Parser fails on templated constructors/conversion operators + Refactored Scanner to make it easier to debug. + +2003-10-01 John Camelon + Fixed Bug 43987 : Search results: Declaration of class not highlighted when selected + Fixed Bug 43997 : Search results: selection includes preceding whitespace + Fixed Bug 44034 : Scanner failure on #undef + +2003-10-01 Andrew Niefer + bug43951 - search on ctor declarations returns definition too. + PST changes: + - modify lookupConstructor to copy the constructor list before resolving on it + - modify checkUserDefinedConversionSequence the same way + - modify isValidFunctionOverload to check for forward declarations + +2003-10-01 Bogdan Gheorghe + Modified CDT log dump in Parser.fetchToken to include error message + +2003-10-01 Andrew Niefer + bug43450 - Scanner needs to handle include paths that contain quotes + +2003-09-30 Bogdan Gheorghe + Added CDT log dump in Parser.fetchToken to catch HandleInclusion failures + +2003-09-30 John Camelon + Fixed Bug 43503 : Search:f_SD_01 cannot be found in ManyClasses20 Project + Fixed Bug 43680 : Fix Parser Error Handling + +2003-09-30 Hoda Amer + -Solution to [Bug 43053] require reference cleanup for expressions + Added purgeReferences() at the end of ASTExpression::acceptElement() + +2003-09-30 Andrew Niefer + PST changes for bug 43503 - parser needs to know the different between ambiguous functions + and no functions when no parameter information is provided + - throw r_UnableToResolveFunction if we have more than 1 function and no parameter info was given + - handle this case in addUsingDeclaration. + * note that r_UnableToResolveFunction doesn't necessarily mean ambiguous if we had enough information + +2003-09-29 Hoda Amer + Solution to bug#43679 : Exceptions in indexer + +2003-09-29 Andrew Niefer + fixed bug 43834 : Empty Parameter list and parameter list taking one void do not match + +2003-09-29 John Camelon + Continued work on Bug 43062 : Outline is confused on operator methods containing spaces + Partial fix for Bug 43680 : Fix Parser Error Handling + +2003-09-26 John Camelon + Fixed Bug 43644 : 6 triangle icons appearing in outline viewer when typing an error + Fixed Bug 43062 : Outline is confused on operator methods containing spaces + Fixed Bug 39531 : Problems with type conversion operators + +2003-09-25 Hoda Amer + - Last part of solution to bug#42453: Expression result types not computed + Added the handling of POSTFIX_TYPENAME_IDENTIFIER + Completed bug#43221: POSTFIX_TYPENAME_IDENTIFIER not implemented + - Solution to bug#43644 : 6 triangle icons appearing in outline viewer when typing ... + +2003-09-24 Hoda Amer + Partial solution to bug#42453: Expression result types not computed + Added the handling of the NEW_TYPEID, CASTEXPRESSION, POSTFIX_DYNAMIC_CAST, + POSTFIX_REINTERPRET_CAST, POSTFIX_STATIC_CAST, and POSTFIX_CONST_CAST + +2003-09-25 John Camelon + Partial fix for Bug 43221 : POSTFIX_TYPENAME_IDENTIFIER not implemented + +2003-09-24 John Camelon + Fixed Bug 43106 : Symbol Table support needed to resolve types + Fixed Bug 43375 : isExtern not returning true for extern declarations + +2003-09-23 John Camelon + Fixed Bug 43084 : need to restructure TypeId to allow dynamic_cast<> type expression references. + Fixed Bug 39504 : sizeof-expressions are not handled properly + +2003-09-23 Hoda Amer + Solution to bug#43373: No reference to static member in definition + Solution to bug#43371: constructor incorrectly marked private + +2003-09-18 Andrew Niefer + - modified Symbol table interfaces to use Lists & Maps instead of LinkedList and HashMap + - fixed warnings in ParserSymbolTable + - fixed bug43106 - Symbol Table support needed to resolve types + - fixed bug43156 - require ability to add implicit inheritance copy constructor + - fixed bug43159 - TypeInfo.equals() not working properly + - fixed bug43238 - Postfix_Subscript expressions confuse function resolution + +2003-09-16 Andrew Niefer + - added setThrowExceptionOnBadCharacterRead to IScanner to help with wildcard bug43063 + +2003-09-17 Hoda Amer + In completeParseASTFactory.getExpressionResultType(): Added the support + for expression types: PM_DOTSTAR, PM_ARROWSTAR, CONDITIONALEXPRESSION + +2003-09-16 John Camelon + Implement CompleteParse IASTFunction::previouslyDeclared(). + +2003-09-16 Hoda Amer + In completeParseASTFactory.getExpressionResultType(): Added the support + for expression type PRIMARY_THIS. + In createMethod(): changed the scope of a method definition to point to + the parent class. + +2003-09-15 John Camelon + Fixed Bug 39556 : 'restrict' qualifier is not supported (ANSI C99) + Fixed Bug 43126 : ISourceElementRequestor.acceptParameterReference accesses internal class + Fixed Bug 43062 : Outline is confused on operator methods containing spaces + Cleaned up some warnings in the parser. + +2003-09-15 Andrew Niefer + bug43106 - added getConditionalOperand to ParserSymbolTable + +2003-09-15 John Camelon + Partially fixed Bug 42979 : Cannot search for operator overloaders + +2003-09-12 Hoda Amer + In completeParseASTFactory.getExpressionResultType() + - Added the handling of some more expression types. + See CompleteParseASTExpressionTest for details. + +2003-09-12 John Camelon + Fixed Bug 42985 : Search: Qualified function call is treated as a declaration + Fixed Bug 40419 : parser fails on heavily templated expressions + +2003-09-12 John Camelon + Fixed Bug 43013 : IASTParameterDeclaration does not derive from IASTOffsetableNamedElement + +2003-09-12 Andrew Niefer + Fixed some NPEs in ParserSymbolTable.getFlatTypeInfo + Added some comments and created some constants to help clarify ranking of conversion sequences + +2003-09-11 John Camelon + Fixed Bug 42840 : Search: Cannot find things after double declarations + Fixed Bug 42798 : Selected #include off by 1 char + Fixed Bug 42872 : dynamic cast not parsed properly + Partially fixed Bug 39504 : sizeof-expressions are not handled properly + Updated SourceElementRequestor callbacks to include IASTParameterReference callbacks. + +2003-09-09 Hoda Amer + - Solved the double reference problem + - solution to bugs #42822, #42823, & #42822B + +2003-09-09 John Camelon + Updated ScannerException to be more precise and include more information. + Updated Parser to be more careful of how it handles particular Scanner errors in COMPLETE_PARSE mode. + +2003-09-08 Bogdan Gheorghe + Added ScannerExceptions in Preprocessor.java to PDE Error + Log + +2003-09-09 Hoda Amer + Added more IASTExpression.Kind handling to CompleteParseASTFactory.getExpressionResultType() + +2003-09-08 John Camelon + Made scoping support more robust in CompleteParse mode. + Refactored ISourceElementRequestor (enter|exit)CodeBlock() to take IASTCodeScope rather than IASTScope. + Removed the now obsolete DOM. +` Added enumerator references to ISourceElementRequestor. + +2003-09-08 Andrew Niefer + - Created ParserLanguage.java + - Updated Factories to take language as parameter when create scanner & parser + - Updated Parser, Scanner & ParserSymbolTable to take language in their constructor + +2003-09-05 Hoda Amer + - Added references to variables with pointers in solution + of bug#42453:Expression result types not computed + + +2003-09-05 John Camelon + Continue to add support for parsing within function bodies. + Add workaround for 1.2 for inline function declaration-before-use chicken-and-egg. + +2003-09-05 John Camelon + Fixed NPE on nested declarations in code blocks. + +2003-09-04 John Camelon + First pass of parsing function bodies with X-Reference information. + Updated IASTFactory/ISourceElementRequestor to include IASTCodeScope + constructs, clients should keep this in mind and update their implementations. + +2003-09-04 Andrew Niefer + Fix bug42541 - Anonymous structures cause NPE in full parse + +2003-09-03 Andrew Niefer + fix bug in PST that prevents > 2 constructors + +2003-09-03 John Camelon + Fixed bug41445 - QualifiedLookup succeeds where it should fail. + +2003-09-02 Andrew Niefer + bug41935 - Modifications to PST to allow for namespace aliases + +2003-08-28 John Camelon + Fixed bug39535 - Parser fails on namesapce aliases + +2003-08-26 Bogdan Gheorghe + Added parser constant to all debugLog tracing statements. + +2003-08-25 John Camelon + Fixed bug39526 - Parser doesn't handle initializers correctly. + Fixed bug41520 - FullParse : Constructor Initializer is mistaken as function prototype + +2003-08-25 John Camelon + Fixed Bug 39530 - More problems with initializers. + Fixed Bug 37424 - Crash when opening big files + Refactored pointerOperators & cvQualifiers to not throw backtracks in optional case. + Added tracing support to cdt.core plugin via .options file. + +2003-08-14 John Camelon + Removed warnings from SymbolTable & QuickParseCallback (removing implicit accessor generation). + Made IASTElaboratedTypeSpecifier derive from IASTOffsetableNamedElement (as it should). + +2003-08-14 John Camelon + Added X-Reference support for ArrayModifiers and Exception Specifications. + Fixed Bug 41551 - HandleInclusion always throws ScannerException on local includes. + +2003-08-13 John Camelon + Added constructor expression support for variables. + Added constructor chain x-reference support for methods. + +2003-08-13 John Camelon + Added Expression x-reference support into Parser. + +2003-08-12 John Camelon + Added X-Ref/Elaborated type support w/element requestor callbacks. + +2003-08-11 John Camelon + Added Complete Parse support for ASM Definitions. + Added isVolatile() to abstract declarations. + Added Complte Parse support for elaborated types / forward declaration of classes. + Fixed some robustness issues. + +2003-08-05 Andrew Niefer + - Refactor symbol table functions to start with lower case letters + - Added better constructor support : + IDerivableContainerSymbol.addConstructor + IDerivableContainerSymbol.lookupConstructor + IDerivableContainerSymbol.getConstructors + - Changed ParserSymbolTableException.r_Unspecified to r_InternalError + - implicit user-defined conversion sequences now only use constructors not marked explicit + - user-defined conversion sequences are now only applied at most once (12.3-4 in spec) + +2003-07-31 Andrew Niefer + Added better support to the parser symbol table for forward declarations + +2003-07-31 Victor Mozgin + Fixed PR 39540 : Parser fails on const qualifier after class specifier. + +2003-07-30 Victor Mozgin + Fixed PR 39532 : Parser fails on fully-qualified class names. + +2003-07-29 John Camelon + Updated AST to better represent pointers to functions/methods. + Implemented typedef declaration/x-ref infrastructure. + +2003-07-29 Victor Mozgin + Fixed PR 39546 : Parser fails on 'signed' casts. + +2003-07-28 John Camelon + Fixed Bug 40842 - Parser: NPE while parsing class declaration in full parse mode + Fixed Bug 40843 - Parser: failParse doesn't set parsePassed = false on EOF. + Fixed Miscellaneous overrides issues involving parameters & functions. + +2003-07-28 John Camelon + Fixed Bug 40730 : Parser is not searching the include path for #include"" + +2003-07-28 Victor Mozgin + Fixed PR 39537 : Parser fails if template parameters contain '>' or '<' characters. + +2003-07-25 Victor Mozgin + Fixed PR 39553 : Macros are not expanded in #include statements. + +2003-07-24 John Camelon + Added COMPLETE_PARSE support for Method and Field declarations and cross-references. + Fixed some small ParserSymbolTable bugs. + Added support for linkage specification under COMPLETE_PARSE. + +2003-07-24 John Camelon + Added CompleteParse - UsingDirective & UsingDeclarations w/namespace/class/field variable references. + Added CompleteParse support for enumeration specifiers and references in variables & fields. + Stubbed out other Scopes/Declarations for COMPLETE_PARSE mode to allow indexer team to switch over ASAP. + +2003-07-22 John Camelon + Added in preliminary support for Field/Variable w/cross references on their types. + +2003-07-21 John Camelon + Addded in support for BaseSpecifier & class/namespace reference callbacks upon those. + +2003-07-21 John Camelon + Fleshed out basic declarations for FullParse AST. + Fixed Bug 40554 - Fields coming back as Vars + Fixed Bug 40555 - Methods come back as Functions + +2003-07-18 John Camelon + Added ISourceElementCallbackDelegate interface for AST constructs to allow the Parser to delegate callback's to the nodes themselves. + Got rid of ParserMode.STRUCTURAL_PARSE for the time being. + Removed org.eclipse.cdt.internal.core.parser.ast.full. + Created org.eclipse.cdt.internal.core.parser.ast.complete. + Updated ParserFactory.createScanner() to force the user to provide a callback and a ParserMode. + Introduced ASTSemanticException for COMPLETE_PARSE mode. + Fleshed out preliminary IASTReference interfaces and added callbacks to ISourceElementRequestor. + Removed acceptElaboratedTypeSpecifier() from ISourceElementRequestor. + +2003-07-18 John Camelon + Removed DeclaratorDuple as it was obsolete. + Fixed offsets in quickParse's IASTTypedefDeclaration implementation. + Fixed Bug 40436 - Fully Qualified Names Needed (for Indexer/Search features) + +2003-07-17 John Camelon + Removed IParserCallback. + Partially converted DOM to ISourceElementRequestor (requires refactoring of CModelBuilder & StuctureComparator modules in near future). + Completely finished ISourceElementRequestor/IASTFactory work for QuickParse mode. + Added pointer to methods/functions into AST callback structure. + Restructured AST class hierarchy. + Removed the old IParserCallback return Objects from every Parser method. + +2003-07-17 Victor Mozgin + Added support for digraphs and trigraphs. + Added support for hex floating point literals. + Fixed stack overflow problem with string literals concatenation. + Fixed problem with token pasting in macros. + This solves PR 39523, 39550, 39552. + +2003-07-15 Victor Mozgin + Fixed PR 39349 : Scanner fails on long long literals. + Fixed PR 39544 : Scanner fails on wide char literals. + +2003-07-10 John Camelon + Added in template support to IAST hierarchy. + Updated instantiation & specialization hierarchy. + Removed ASTTemplateDeclarationType. + Added full requestor callbacks for fields, variables, functions, methods & typedefs. + +2003-07-08 John Camelon + Filled out IASTMethod & IASTFunction & added implementations. + Updated IScanner, clients & implementations to use IScannerInfo. + Finished SimpleDeclaration porting to new architecture, only thing left is templates. + +2003-07-07 John Camelon + Bug 39652 - AST: Nested Classes incorrectly report null qualified Names + Fuller specification of Field/Method interfaces. + +2003-07-04 John Camelon + Fixed NPE in Parser::declarator(). + Bug 39652 - AST: Nested Classes incorrectly report null qualified Names + +2003-07-04 Victor Mozgin + Added CTaskTagsReconciler. + Extended ParserFactory with createProblemReporter() and createTranslationResult(). + +2003-07-02 Victor Mozgin + Fixed PR 39501 : Parser problems with throw clauses. + +2003-06-30 John Camelon + Further restructuring of Parser for ISourceElementRequestor. + Added interfaces/implementation for Simple Declarations. + Cleaned up DOM's representation of Constructor chains. + +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-26 Victor Mozgin + Task tags support in C/C++ comments (initial revision). + Infrastructure to support problem reporting during translation. + Additional infrastructure for options/preferences handling. + +2003-06-25 John Camelon + Fixed bug39348 - sizeof elaborated types fail in parsing expression + +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. + +2003-06-24 John Camelon + Updates for ISourceElementRequestor - elaborated types & enumerations. + +2003-06-23 John Camelon + Updating SimpleDeclarations to move towards new Callback structure. + +2003-06-23 John Camelon + Updated Factory infrastructure, constructors, etc. + Introduced Preprocessor class for transitive closure calc. client. + +2003-06-20 Victor Mozgin + Fixed PR 36463 : Offsets of macros are incorrect. + +2003-06-17 Victor Mozgin + Implemented correct handling of nested declarators in CModelBuilder. + Added proper support for function pointers as parameters. + This fixes PR 38921 and 39002. + +2003-06-16 Victor Mozgin + Implemented support for old K&R-style C function declarations. + Added oldKRParametersBegin() and oldKRParametersEnd() to IParserCallback. + Added getParameterTypes() with support of K&R to CModelBuilder. + Fixed ExpressionEvaluator and NullSourceElementRequestor for additions to IParserCallback. + Added handling of K&R syntax to the parser. + This fixes PR 7541, 35320 and 38434. + +2003-06-14 Victor Mozgin + Fixed handling of parameter lists for typedefs for functions. + More errorhandling in CModelBuilder. + Added handling of pointers to members. + Added handling of declarations for nested scopes (like A::B::C). + This fixes PR 36290, 36931 and partially 38920. + +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. + NullSourceElementRequester now dummy-implements both IParserCallback and ISourceElementRequester. + +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-10 John Camelon + Futher pursuit of the golden hammer, symbol table integration. + +2003-06-09 John Camelon + First step in replacing IParserCallback with ISourceElementRequestor. + +2003-06-05 Andrew Niefer + Begin implementation of functions for template specializations: deduceTemplateArgument, + classTemplateSpecializationToFunctionTemplate, transformFunctionTemplateForOrdering + +2003-06-09 Victor Mozgin + Fixed for conversion operator declarations. + This fixes PR 36769 (finally) and PR 38657. + +2003-06-09 Victor Mozgin + Fixed Bug 36932 - RTS: Parser fails on "new" in ctor initializer + Improved handling of new-expressions: placements, arrays and + multiple parameters in initializers are now parsed. + +2003-06-09 Victor Mozgin + Fixed Bug 36701 - Scanner looses non-token chars while macro stringizing + +2003-06-07 Victor Mozgin + Fixes for templated constructor/destructor/operator declarations. + This fixed PR 36766, 36767, 36769 (STL parsing problems). + +2003-06-06 Victor Mozgin + Fixed Bug 38065 - Scanner skipped backslashes inside the code + +2003-06-05 John Camelon + Fix Bug 38380 "Include" class public methods fails JUnit tests + +2003-05-29 Andrew Niefer + new Class eType for stronger type safety in TypeInfo + new class PtrOp for better handling of pointer operators and cv qualifiers + new class TemplateInstance to support templates + Start of implementation for templates & specializations + +2003-05-29 John Camelon + Remove all AST components. + +2003-05-26 John Camelon + Rollback PST/Parser integration. + +2003-05-13 Andrew Niefer + Moved symbol table to org.eclipse.cdt.internal.core.pst + Created interface for symbol table: ISymbol, IContainerSymbol, IDerivableContainerSymbol, + IParameterizedSymbol, and ISpecializedSymbol. These are all implemented by Declaration + The symbol table itself uses this interface instead of using its Declaration directly + (with the exception of the undo command framework) + +2003-05-08 Andrew Niefer + Added a basic command structure to support rollbacks + +2003-05-06 John Camelon + Further integration of SymbolTable into Parser, some refactoring. + +2003-05-05 John Camelon/Andrew Niefer + Added Symboltable infrastructure into main parser. + +2003-05-05 Andrew Niefer + Structural changes to ParserSymbolTable: + - moved TypeInfo & Declaration inside ParserSymbolTable + - removed the stack & push/pop/peek + - moved nonstatic add/lookup fuctions from the table to Declaration + - began undo framework: added AddDeclarationCommand + +2003-05-01 Andrew Niefer + Fixed Bug 36287 - Parser failure with new CDT 1.1 parser + Fixed Bug 37011 - Scanner: #define A "//" not properly handled + +2003-04-30 John Camelon + Added some Javadoc to IParser.java and Parser.java. + +2003-04-28 John Camelon + Fixed Bug 37019 - RTS: Parser fails on variable defn using constructor + Fixed Bug 36767 - STL Testing: Parser is confused and goes into template function body + +2003-04-28 John Camelon + Partial fix for Bug37002 - Order of Offsetables is wrong + +2003-04-27 John Camelon + Partial fix for Bug 36932 - RTS: Parser fails on "new" in ctor initializer + Fixed Bug 36704 - Problem parsing Loki's Reference Typelist.h + Fixed Bug 36699 - Problem parsing Loki's Reference SmartPtr.h Impl + Fixed Bug 36691 - Problem parsing Loki's Reference HierarchyGenerators.h Impl + +2003-04-25 Andrew Niefer + Fixed bug36771 - Outline view shows include with no name + Fixed bug36714 - Parser fails on initial assignment using floating-suffix + Revisted bug36816 - Incomplete #include stops outline view + +2003-04-25 John Camelon + Fixed bug36852 - outline window doesn't show all functions + Fixed bug36764 - Bit fields cause parse errors + Fixed bug36702 - Parser error when having function pointers as parameters + +2003-04-24 John Camelon + Fixed Bug36799 STL Testing: Parser fails on Variable Definition + +2003-04-24 John Camelon + Fixed bug36693 - Problem parsing Loki's Reference SmallObj.cpp Impl + Fixed bug36696 - Problem parsing Loki's Reference SmartPtr.h Impl + Improved our error handling robustness. + Fixed bug36713 - Parser fails on definitions of pointers to functions + Fixed Dave's performance test parse failure. + Fixed bug36811 - The using directive causes parser to fail + Fixed bug36794 - ClassCastException for A template with no parameters + +2003-04-24 Andrew Niefer + Fixed Bug36816 Scanner infinite loop on incomplete #include + Fixed Bug36255 Parser hangs/goes infinite + +2003-04-21 John Camelon + Revisited bug36247 Parser confused by symbols #defined elsewhere + Fixed Bug36708 Problem parsing Loki's Reference TypeTraits.h + Fixed Bug36690 Problem parsing Loki's Reference Functor.h Implementation + Fixed Bug36692 Problem parsing Loki's Reference Singleton.h Impl + Fixed Bug36703 Problem parsing Loki's Reference TypeInfo.h Impl + Fixed Bug36689 Problem parsing Loki's Reference AbstractFactory.h Implementation + Fixed Bug36707 Problem parsing Loki's Reference TypeManip.h + +2003-04-21 Andrew Niefer + Fixed Bug36475 - Scanner does not concatenate strings + Fixed Bug36509 - Scanner turns strings into identifiers when expanding macros + Fixed Bug36521 - Scanner gets confused over commas in function like macros + Fixed Bug36695 - Scanner looses escaping on chars (ie '\4' to '4') + +2003-04-20 John Camelon + Fixed Bug36551 Bad parse on attached file. + Partial Fix for Bug36631 remove linear search algorithm from OffsetMapping + Some debunking of line numbers. + +2003-04-17 John Camelon + Fixed error in Elaborated Enumeration Types. + Fixed Bug36559 - Parsing Templates... + Fixed Bug36634 - Enum start line error + +2003-04-16 John Camelon + Fixed Bug36532 - Hang on partial template definition. + Fixed Bug36432 - Trying to open attached source code hangs Eclipse. + Fixed Bug36594 - Parser Stack Overflow on unaryExpression + Fixed Bug36600 - Elaborated Enumerated Types Parse Incorrectly. + +2003-04-15 John Camelon + Fixed bug36434 - Broken outline in winbase.h + Partial Fix for bug36379 - The parser to set Line informations when scanning. + Fixed CModelManager to include header files with .H extension as C++ headers. + Fixed bug36448 - Parser fails for C programs containing C++ keywords as identifiers + +2003-04-15 Andrew Niefer + Added scanner support to fix Bug36047 + +2003-04-13 John Camelon + Minor cleanup of callbacks due to removal of NewModelBuilder. + Added parser support to partially fix bug36416 & bug36294. Also added minimal C-Model support for these fixes. + +2003-04-11 John Camelon + Minimized the number of objects being returned from Parser callbacks. + Fixed CModelBuilder to handle errors better. + Reorganized the DOM Hierarchy to ensure that nodes were added to the tree on End() callbacks. + Fixed defect 36247(). + +2003-04-11 John Camelon + Fixed Bug 36243 DomBuilder Offsetable List + +2003-04-10 John Camelon + Fixed Bug36237 Parser fails on casts in ctor initializer. + Added AccessSpecifier to TemplateDeclaration. + +2003-04-10 John Camelon + Updated callbacks and parser to add offset information to template declarations, + thus making TemplateDeclaration implement IOffsetable. + +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. + Fixed bug36250 Parser ignores functions with default parameters that have no name. + Fixed bug36240 Parser incorrectly parses operator= + Fixed bug36254 Parser doesn't recognize unsigned as a type by itself. + +2003-04-09 John Camelon + Added timing printout for CModelTests. + Provided partial fix for bug36255 to get past infinite loop, will leave defect open. + Fixed bug36045 (Again). + Fixed bug36287. + +2003-04-06 Andrew Niefer + Added ParserSymbolTable::Cost and used it to fix up the conversion sequence ranking + +2003-04-06 John Camelon + Fixed defect 36073. + Fixed error handling for unterminated strings in Scanner. + Significantly updated callback structure to better suite the nature of the Code Model. + Updated all callbacks and parser to accommodate altered callbacks. + +2003-04-04 John Camelon + Fixed defect 35939. Proper CElement::pos() is set on Simple Declarations, + Class Specifications, Namespaces, Enumerations and Enumerators, Macros and Inclusions. + +2003-04-03 John Camelon + Fixed defects 36019, 36020, 36045. + Finished template declarations and their callbacks for the DOM (not the Code Model). + +2003-04-01 John Camelon + Updated Scanner to convert control-characters to ' '. + Fixed logic error in SimpleDeclarationWrapper. + Added operator support to grammar. + Fixed Name.toString() to support non-qualified yet multi-part names. + +2003-04-01 Andrew Niefer + Parser Symbol Table, modified lookup with respect to resolving ambiguous names, + reducing the number of temporary lists/sets. Modified adding using declarations + to properly support overloaded functions. Added initial support for user defined + conversion sequences when resolving overloaded functions. + +2003-04-01 John Camelon + Fixed bug35906 + Udated Scanner to not puke on certain control characters. + +2003-03-31 John Camelon + Fixed unsigned short SimpleDeclarations not showing up in the outline view. + Fixed default visibilities for structs in outline view. + Fixed bug35892. + Added icon-less typedefs and enums to the outline view. + Fixed NPEs relating to anonymous structs, unions, enums in outline view. + +2003-03-31 Andrew Niefer + Parser Symbol Table, better support for function resolution with pointers and + references as parameters. Also support for typedefs as function parameters + +2003-03-31 John Camelon + Updated NewModelBuilder to work for ElaboratedTypeSpecifiers, PointerOperators, Const Methods. + Fixed bug35878. + +2003-03-31 John Camelon + Updated Scanner to work for Strings literals like L"this string" + Updated Scanner to work for floating points literals. + Updated Scanner to be more forgiving on errors in QuickScan mode. + Got template instantiation and specialization working (w/callbacks and DOM). + Updated Parser/Callbacks for handle pure virtual function declarations. + Added callback support for some template declarations (not all branches). + +2003-03-28 John Camelon + Added AccessSpecifier and ClassKind to parser.util package and refactored callbacks. + Better encapsulated ExceptionSpecification in the DOM. + Updated DOM structures to return unmodifiable collections. + Added callback support for asmdefinitions. + Added callback support for constructor initializer chains. + Fixed bug 35781 and updated parser to catch all exceptions from callbacks to ensure best-effort parsing. + Removed Main.java from Parser package. + +2003-03-26 Andrew Niefer + Moved type information and ParameterInfo from Declaration into util.TypeInfo + Initial implementation of standard conversion sequences for function resolution + +2003-03-24 John Camelon + Added callback support for namespace definitions. + Updated Parser exception hierarchy. + Added callback support for linkage specifications. + Added callback support for using declarations and directives. + +2003-03-23 John Camelon + Added callback support for class member visibility. + Added callback support for pointer and reference operators on declarators. + Added callback support for throws clauses an const operations. + Added callback support for array declarators. + +2003-03-20 Andrew Niefer + Parser Symbol Table updates for: + * friends + * "this" pointer + * enumerators + * Argument dependent lookup + * adding parameters to functions & function overloading + +2003-03-19 John Camelon + Updated Parser method visibility to solidify external interface. + Solved and removed TODO's from Scanner implementation. + Updated Parser and callbacks to handle basic expressions. + +2003-03-18 John Camelon + Updated IParserCallback (and implementations) to add a typeName to DeclSpecifier. + Updated IParserCallback and NewModelBuilder to distinguish between Function declarations and definitions. + +2003-03-17 Doug Schaefer + Changed EOF to be a Backtrack exception instead of a token so simplify + error handling. + +2003-03-13 John Camelon + Moved ## token to IScanner from Scanner. + Updated IParserCallback and implementations to deal with Elaborated Type Specifiers. + Moved IScope into the internal DOM package. + +2003-03-11 John Camelon + added ChangeLog to parser directory + updated IParserCallback (and all implementors) for expressions + removed inheritance relationship between ExpressionEvaluator and NullParserCallback + removed redundant assignmentOperator() calls in Parser::initDeclarator + removed class util.DeclarationSpecifier, merged Container interface into util.DeclSpecifier + organized imports on the parser folder + * dom/org/eclipse/cdt/internal/core/dom/DOMBuilder.java + * dom/org/eclipse/cdt/internal/core/dom/Declarator.java + * dom/org/eclipse/cdt/internal/core/dom/ParameterDeclaration.java + * dom/org/eclipse/cdt/internal/core/dom/SimpleDeclaration.java + * parser/org/eclipse/cdt/internal/core/model/NewModelBuilder.java + * parser/org/eclipse/cdt/internal/core/model/Parameter.java + * parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java + * parser/org/eclipse/cdt/internal/core/parser/ExpressionEvaluator.java + * parser/org/eclipse/cdt/internal/core/parser/IParserCallback.java + * parser/org/eclipse/cdt/internal/core/parser/NullParserCallback.java + * parser/org/eclipse/cdt/internal/core/parser/Parser.java + * parser/org/eclipse/cdt/internal/core/parser/util/DeclSpecifier.java + +2003-03-10 John Camelon + added in support for detecting and reporting circular inclusions + added optimization by caching inclusion directories + added macro pasting capabilities + updated inclusion searching algorithm for local inclusions + +2003-03-07 John Camelon + fixed initDeclarators for the outline view. + +2003-03-06 Doug Schaefer + Some minor fixes to get constructors/destructors parsing as well as some minor clean up and robustness. + +2003-03-06 John Camelon + added quickParse heuristic to Scanner for handling #if conditionals to avoid throwing + ScannerExceptions on undefined preprocessor symbols + added minimal enum support to Parser (though not to DOM or CModel) + +2003-03-06 Andrew Niefer + Implementation of Namespaces & using directives in new parser's symbol table + +2003-03-05 Doug Schaefer + Some minor fixes to the parser. + +2003-03-04 Doug Schaefer + Added Parser in the "parser" source folder in cdt.core + Preference in the C/C++ preference page to enable/disable use of the new parser (disabled by default) + Start on the DOM which we are using to test the parser (source folder "dom") + Start on a new Model Builder for creating CElements using the new parser (currently in source folder "parser") diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTNode.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTNode.java index 81dca1fdc2c..34aba1197e6 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTNode.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTNode.java @@ -24,7 +24,7 @@ public interface IASTNode { public static final LookupKind ALL = new LookupKind( 0 ); public static final LookupKind STRUCTURES = new LookupKind( 1 ); - public static final LookupKind STRUCS = new LookupKind( 2 ); + public static final LookupKind STRUCTS = new LookupKind( 2 ); public static final LookupKind UNIONS = new LookupKind( 3 ); public static final LookupKind CLASSES = new LookupKind( 4 ); public static final LookupKind FUNCTIONS = new LookupKind( 5 ); diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/TypeFilter.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/TypeFilter.java index 7b45291bca5..7ac4ab4c9bb 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/TypeFilter.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/TypeFilter.java @@ -74,7 +74,7 @@ public class TypeFilter { return false; } } - else if ( typeInfo.isType( TypeInfo.t_type ) || typeInfo.isType( TypeInfo.t_bool, TypeInfo.t_enumerator ) ) + else if ( typeInfo.isType( TypeInfo.t_type ) || typeInfo.isType( TypeInfo.t_bool, TypeInfo.t_void ) ) { if( ( acceptedKinds.contains( LookupKind.VARIABLES ) && !symbolIsMember && !symbolIsLocal ) || ( acceptedKinds.contains( LookupKind.LOCAL_VARIABLES ) && !symbolIsMember && symbolIsLocal ) || @@ -99,7 +99,7 @@ public class TypeFilter { else if ( kind == LookupKind.STRUCTURES ) { acceptedTypes.add( TypeInfo.t_class ); acceptedTypes.add( TypeInfo.t_struct ); acceptedTypes.add( TypeInfo.t_union ); } - else if ( kind == LookupKind.STRUCS ) { acceptedTypes.add( TypeInfo.t_struct ); } + else if ( kind == LookupKind.STRUCTS ) { acceptedTypes.add( TypeInfo.t_struct ); } else if ( kind == LookupKind.UNIONS ) { acceptedTypes.add( TypeInfo.t_union ); } else if ( kind == LookupKind.CLASSES ) { acceptedTypes.add( TypeInfo.t_class ); } else if ( kind == LookupKind.CONSTRUCTORS ){ acceptedTypes.add( TypeInfo.t_constructor ); } diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/util/ASTUtil.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/util/ASTUtil.java index 04cced9ba18..1b3998bb307 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/util/ASTUtil.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/util/ASTUtil.java @@ -119,7 +119,7 @@ public class ASTUtil { type.append("("); type.append(getPointerOperator(po)); type.append(")"); - String[] parameters =getParameterTypes(declaration.getParameters()); + String[] parameters =getParameterTypes(declaration.getParameters(), false /* replace with takeVarArgs() later*/); type.append(getParametersString(parameters)); } return type.toString(); @@ -200,19 +200,25 @@ public class ASTUtil { public static String[] getFunctionParameterTypes(IASTFunction functionDeclaration) { Iterator parameters = functionDeclaration.getParameters(); - return getParameterTypes(parameters); + return getParameterTypes(parameters, functionDeclaration.takesVarArgs()); } - public static String[] getParameterTypes(Iterator parameters){ + public static String[] getParameterTypes(Iterator parameters, boolean takesVarArgs){ List paramList = new ArrayList(); while (parameters.hasNext()){ IASTParameterDeclaration param = (IASTParameterDeclaration)parameters.next(); paramList.add(getType(param)); } - String[] parameterTypes = new String[paramList.size()]; + int paramListSize = paramList.size(); + if(takesVarArgs) + paramListSize++; + String[] parameterTypes = new String[paramListSize]; for(int i=0; i - + + + + + + + + + + + + + + + + + + + + diff --git a/core/org.eclipse.cdt.ui.tests/.project b/core/org.eclipse.cdt.ui.tests/.project index de367d9e4cb..541f11085f0 100644 --- a/core/org.eclipse.cdt.ui.tests/.project +++ b/core/org.eclipse.cdt.ui.tests/.project @@ -4,6 +4,7 @@ org.eclipse.cdt.core + org.eclipse.cdt.core.tests org.eclipse.cdt.ui diff --git a/core/org.eclipse.cdt.ui.tests/ChangeLog b/core/org.eclipse.cdt.ui.tests/ChangeLog index 93e16940e23..7f3ecb38728 100644 --- a/core/org.eclipse.cdt.ui.tests/ChangeLog +++ b/core/org.eclipse.cdt.ui.tests/ChangeLog @@ -1,3 +1,8 @@ +2004-01-15 Hoda Amer + Moved Content Assist testing to the UI.tests plugin + Started a new framework of JUnit tests for content assist. + Added Content assist tests to the AutomatedSuite test of the UI.tests plugin + 2003-07-17 Peter Graves Remove the usage of the assert, as it's a reserved keyword in Java 1.4 (Bugzilla 40377) diff --git a/core/org.eclipse.cdt.ui.tests/plugin.xml b/core/org.eclipse.cdt.ui.tests/plugin.xml index 69f1bbfc36b..d94ad52a4d1 100644 --- a/core/org.eclipse.cdt.ui.tests/plugin.xml +++ b/core/org.eclipse.cdt.ui.tests/plugin.xml @@ -19,6 +19,8 @@ + + diff --git a/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart.h b/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart.h new file mode 100644 index 00000000000..9bc3389fbde --- /dev/null +++ b/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart.h @@ -0,0 +1,30 @@ +#define AMacro(x) x+1 + +int aVariable = 0; +bool aFunction(); + +enum anEnumeration { + aFirstEnum, + aSecondEnum, + aThirdEnum +}; + +struct AStruct{ + int aStructField; +}; + +void anotherFunction(){ + int aLocalDeclaration = 1; +} + +class aClass { +public: + int aField; + int aMethod(); +}; + +class anotherClass { +public: + int anotherField; + void anotherMethod(); +}; diff --git a/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart1.cpp b/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart1.cpp new file mode 100644 index 00000000000..7316b66f9a7 --- /dev/null +++ b/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart1.cpp @@ -0,0 +1,6 @@ +#include "CompletionTestStart.h" + +void anotherClass::anotherMethod() +{ + a +} diff --git a/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart2.cpp b/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart2.cpp new file mode 100644 index 00000000000..23afd8cf770 --- /dev/null +++ b/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart2.cpp @@ -0,0 +1,7 @@ +#include "CompletionTestStart.h" + +void anotherClass::anotherMethod() +{ + aClass c; + c.a +} diff --git a/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart3.cpp b/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart3.cpp new file mode 100644 index 00000000000..9baf9431709 --- /dev/null +++ b/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart3.cpp @@ -0,0 +1,3 @@ +#include "CompletionTestStart.h" + + a diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/AutomatedSuite.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/AutomatedSuite.java index e26d664c77d..a0995f4cf06 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/AutomatedSuite.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/AutomatedSuite.java @@ -9,6 +9,9 @@ import junit.framework.Test; import junit.framework.TestSuite; import org.eclipse.cdt.ui.tests.text.PartitionTokenScannerTest; +import org.eclipse.cdt.ui.tests.text.contentassist.CompletionProposalsTest1; +import org.eclipse.cdt.ui.tests.text.contentassist.CompletionProposalsTest2; +import org.eclipse.cdt.ui.tests.text.contentassist.CompletionProposalsTest3; import org.eclipse.cdt.ui.tests.textmanipulation.TextBufferTest; @@ -32,8 +35,9 @@ public class AutomatedSuite extends TestSuite { public AutomatedSuite() { addTest(PartitionTokenScannerTest.suite()); addTest(TextBufferTest.suite()); - - + addTest(CompletionProposalsTest1.suite()); + addTest(CompletionProposalsTest2.suite()); + addTest(CompletionProposalsTest3.suite()); } } diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsTest.java new file mode 100644 index 00000000000..af23583c98f --- /dev/null +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsTest.java @@ -0,0 +1,200 @@ +/********************************************************************** + * Copyright (c) 2004 Rational Software Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v0.5 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v05.html + * + * Contributors: + * IBM Rational Software - Initial API and implementation +***********************************************************************/ +package org.eclipse.cdt.ui.tests.text.contentassist; + +/** + * @author hamer + * + * This abstract class is the base class for all completion proposals test cases + * + */ +import java.io.FileInputStream; + +import junit.framework.TestCase; + +import org.eclipse.cdt.core.CCProjectNature; +import org.eclipse.cdt.core.CCorePlugin; +import org.eclipse.cdt.core.model.CModelException; +import org.eclipse.cdt.core.model.ICProject; +import org.eclipse.cdt.core.model.IWorkingCopy; +import org.eclipse.cdt.core.parser.ast.IASTCompletionNode; +import org.eclipse.cdt.core.parser.ast.IASTNode; +import org.eclipse.cdt.core.parser.ast.IASTScope; +import org.eclipse.cdt.internal.core.model.TranslationUnit; +import org.eclipse.cdt.internal.core.search.indexing.IndexManager; +import org.eclipse.cdt.internal.ui.text.contentassist.CCompletionProcessor; +import org.eclipse.cdt.testplugin.CProjectHelper; +import org.eclipse.core.internal.resources.ResourceException; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IProjectDescription; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.NullProgressMonitor; +import org.eclipse.core.runtime.Path; +import org.eclipse.jface.text.Document; +import org.eclipse.jface.text.contentassist.ICompletionProposal; + +public abstract class CompletionProposalsTest extends TestCase{ + private final String pluginName = "org.eclipse.cdt.ui.tests"; + private final String projectName = "TestProject1"; + private final String projectType = "bin"; + private ICProject fCProject; + private IFile fCFile; + private IFile fHeaderFile; + private NullProgressMonitor monitor; + private TranslationUnit tu = null; + private String buffer = ""; + private Document document = null; + + + public CompletionProposalsTest(String name) { + super(name); + } + + /* + * Derived classes have to provide there abstract methods + */ + protected abstract String getFileName(); + protected abstract String getFileFullPath(); + protected abstract String getHeaderFileName(); + protected abstract String getHeaderFileFullPath(); + protected abstract int getCompletionPosition(); + protected abstract String getExpectedScopeClassName(); + protected abstract String getExpectedContextClassName(); + protected abstract String getExpectedPrefix(); + protected abstract IASTCompletionNode.CompletionKind getExpectedKind(); + protected abstract String[] getExpectedResultsValues(); + + protected void setUp() throws Exception { + monitor = new NullProgressMonitor(); + String pluginRoot=org.eclipse.core.runtime.Platform.getPlugin(pluginName).find(new Path("/")).getFile(); + + fCProject= CProjectHelper.createCProject(projectName, projectType); + fHeaderFile = fCProject.getProject().getFile(getHeaderFileName()); + String fileName = getFileName(); + fCFile = fCProject.getProject().getFile(fileName); + if ( (!fCFile.exists()) &&( !fHeaderFile.exists() )) { + try{ + String fileFullPath = pluginRoot+ getFileFullPath(); + FileInputStream headerFileIn = new FileInputStream(pluginRoot+ getHeaderFileFullPath()); + fHeaderFile.create(headerFileIn,false, monitor); + FileInputStream bodyFileIn = new FileInputStream(fileFullPath); + fCFile.create(bodyFileIn,false, monitor); + } catch (CoreException e) { + e.printStackTrace(); + } + } + if (!fCProject.getProject().hasNature(CCProjectNature.CC_NATURE_ID)) { + addNatureToProject(fCProject.getProject(), CCProjectNature.CC_NATURE_ID, null); + } + + // use the new indexer + IndexManager indexManager = CCorePlugin.getDefault().getCoreModel().getIndexManager(); + indexManager.reset(); + } + + private static void addNatureToProject(IProject proj, String natureId, IProgressMonitor monitor) throws CoreException { + IProjectDescription description = proj.getDescription(); + String[] prevNatures= description.getNatureIds(); + String[] newNatures= new String[prevNatures.length + 1]; + System.arraycopy(prevNatures, 0, newNatures, 0, prevNatures.length); + newNatures[prevNatures.length]= natureId; + description.setNatureIds(newNatures); + proj.setDescription(description, monitor); + } + + protected void tearDown() { + try{ + CProjectHelper.delete(fCProject); + } + catch (ResourceException e) {} + catch (CoreException e) {} + } + + public void testCompletionProposals(){ + try{ + // setup the translation unit, the buffer and the document + TranslationUnit header = new TranslationUnit(fCProject, fHeaderFile); + tu = new TranslationUnit(fCProject, fCFile); + buffer = tu.getBuffer().getContents(); + document = new Document(buffer); + + int pos = getCompletionPosition(); + + CCompletionProcessor completionProcessor = new CCompletionProcessor(null); + IWorkingCopy wc = null; + try{ + wc = tu.getWorkingCopy(); + }catch (CModelException e){ + fail("Failed to get working copy"); + } + + // call the CompletionProcessor + ICompletionProposal[] results = completionProcessor.evalProposals(document, pos, wc, null); + assertTrue(results != null); + + // check the completion node + IASTCompletionNode completionNode = completionProcessor.getCurrentCompletionNode(); + assertNotNull(completionNode); + // scope + IASTScope scope = completionNode.getCompletionScope(); + assertNotNull(scope); + String scopeClassName = scope.getClass().getName(); + assertTrue(scope.getClass().getName().endsWith(getExpectedScopeClassName())); + // context + IASTNode context = completionNode.getCompletionContext(); + if(context == null) + assertTrue(getExpectedContextClassName().equals("null")); + else + assertTrue(context.getClass().getName().endsWith(getExpectedContextClassName())); + // kind + IASTCompletionNode.CompletionKind kind = completionNode.getCompletionKind(); + assertTrue(kind == getExpectedKind()); + // prefix + String prefix = completionNode.getCompletionPrefix(); + assertEquals(prefix, getExpectedPrefix()); + + String[] expected = getExpectedResultsValues(); + assertEquals(results.length, expected.length); + + for (int i = 0; i 100) { + String partial = message.substring(0, 100); + message = message.substring(100); + System.out.println(partial + "\\"); + } + if (message.endsWith("\n")) { + System.err.print(message); + } else { + System.out.println(message); + } + } + } + + public static boolean isActive(DebugLogConstant client) { + if (client.equals(IDebugLogConstants.CONTENTASSIST)){ + return VERBOSE_CONTENTASSIST; + } + return false; + } + +} diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPlugin.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPlugin.java index 2cff9c6084d..129a1a421d8 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPlugin.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPlugin.java @@ -19,8 +19,8 @@ import java.util.ResourceBundle; import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.ICElement; +import org.eclipse.cdt.core.model.IWorkingCopy; import org.eclipse.cdt.internal.core.model.IBufferFactory; -import org.eclipse.cdt.internal.core.model.IWorkingCopy; import org.eclipse.cdt.internal.ui.BuildConsoleManager; import org.eclipse.cdt.internal.ui.CElementAdapterFactory; import org.eclipse.cdt.internal.ui.CPluginImages; @@ -36,6 +36,7 @@ import org.eclipse.cdt.internal.ui.preferences.CPluginPreferencePage; import org.eclipse.cdt.internal.ui.text.CTextTools; import org.eclipse.cdt.internal.ui.util.ImageDescriptorRegistry; import org.eclipse.cdt.internal.ui.util.ProblemMarkerManager; +import org.eclipse.cdt.internal.ui.util.Util; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.ResourcesPlugin; @@ -80,6 +81,8 @@ public class CUIPlugin extends AbstractUIPlugin { private ImageDescriptorRegistry fImageDescriptorRegistry; static String SEPARATOR = System.getProperty("file.separator"); + + private static final String CONTENTASSIST = CUIPlugin.PLUGIN_ID + "/debug/contentassist" ; //$NON-NLS-1$ // -------- static methods -------- @@ -308,6 +311,8 @@ public class CUIPlugin extends AbstractUIPlugin { */ public void startup() throws CoreException { super.startup(); + //Set debug tracing options + CUIPlugin.getDefault().configurePluginDebugOptions(); runUI(new Runnable() { public void run() { @@ -381,4 +386,13 @@ public class CUIPlugin extends AbstractUIPlugin { fSharedTextColors= new SharedTextColors(); return fSharedTextColors; } + + public void configurePluginDebugOptions(){ + + if(CUIPlugin.getDefault().isDebugging()){ + String option = Platform.getDebugOption(CONTENTASSIST); + if(option != null) Util.VERBOSE_CONTENTASSIST = option.equalsIgnoreCase("true") ; //$NON-NLS-1$ + } + } + } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/IWorkingCopyManager.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/IWorkingCopyManager.java index 0a35abf764e..514c01b35e3 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/IWorkingCopyManager.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/IWorkingCopyManager.java @@ -10,7 +10,7 @@ *******************************************************************************/ package org.eclipse.cdt.ui; -import org.eclipse.cdt.internal.core.model.IWorkingCopy; +import org.eclipse.cdt.core.model.IWorkingCopy; import org.eclipse.core.runtime.CoreException; import org.eclipse.ui.IEditorInput; diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/IWorkingCopyManagerExtension.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/IWorkingCopyManagerExtension.java index 8527868024d..6e383e975be 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/IWorkingCopyManagerExtension.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/IWorkingCopyManagerExtension.java @@ -11,7 +11,7 @@ package org.eclipse.cdt.ui; -import org.eclipse.cdt.internal.core.model.IWorkingCopy; +import org.eclipse.cdt.core.model.IWorkingCopy; import org.eclipse.ui.IEditorInput; /** 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 f04fae96b43..5214dd4a3ef 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 @@ -28,13 +28,13 @@ import org.eclipse.cdt.core.model.IOpenable; import org.eclipse.cdt.core.model.IParent; import org.eclipse.cdt.core.model.IStructure; import org.eclipse.cdt.core.model.ITranslationUnit; +import org.eclipse.cdt.core.model.IWorkingCopy; 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.ICSearchPattern; import org.eclipse.cdt.core.search.ICSearchScope; import org.eclipse.cdt.core.search.SearchEngine; -import org.eclipse.cdt.internal.core.model.IWorkingCopy; import org.eclipse.cdt.internal.ui.dialogs.StatusInfo; import org.eclipse.cdt.internal.ui.dialogs.StatusUtil; import org.eclipse.cdt.internal.ui.wizards.NewWizardMessages;