core: 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
tests:
Rewrote ParserSymbolTableTest to reflect structural changes to the symbol table.
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
TESTS
Moved testBug37019() from DOMFailedTests to DOMTests.
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
TESTS
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.
Core
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
Tests
Moved ACEFailedTest::testBug36771 to DOMTests
Moved DOMFailedTest::testBug36714 to DOMTests
Updated ScannerTestCase::testBug36816
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
TESTS
Added DOMTests::testBug36852().
Added DOMTests::testBug36764().
Moved DOMFailedTests::testBug36702() to DOMTests().
JohnC
Fixed Bug36799 STL Testing: Parser fails on Variable Definition
TESTS
Moved fixed tests from FailedTests to DOMTests.
Added DOMTests::testBug36799().
Cleaned up tests to reduce amount of code necessary to maintain these things.
JohnC
This patch fixes 2 scanner bugs:
Bug36816 Scanner infinite loop on incomplete #include
Bug36255 Parser hangs/goes infinite
This patch also introduces a new automated test,
FractionalAutomatedTest, which tests the parser on incomplete files.
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 so that we don't mistake function bodies for CElements.
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
TESTS
Moved fixed tests from FailedTests to DOMTests.
Added LokiFailures.java to failed tests directory.
JohnC
-reversed the change to the ICElement interface.
-solves the method template with body bug
-solves bug #36726: ElementDeltaTests::testElementDeltas()
failure in Junit
CORE/UI
Fixed Bug36551 Bad parse on attached file.
Partial Fix for Bug36631 remove linear search algorithm from OffsetMapping
TESTS
Added DOMTests::testBug36551().
Adjusted AutomatedTest to turn on line numbering.
Added DOMFailedTests and 11 failed test cases.
Changed CModelElementTests so that I can get on with my work.
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')
Moved ScannerFailedTest::testBug36475 to ScannerTestCase::testBug36475()
Moved ScannerFailedTest::testBug36509 to ScannerTestCase::testBug36509()
Moved ScannerFailedTest::testBug36521 to ScannerTestCase::testBug36521()
Added ScannerTestCase::testBug36695()
Updated ScannerTestCase::testBug36047
Updated ScannerTestCase::testBug36045
- Fix for bug 36506: Bad Signature For main
- Fix for bug 36498: outline view signature incorrect for templated
functions/methods
- JUnit tests for C Model Elements.
CORE
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
TESTS
Added ScannerTestCase::testBug36434().
Added ScannerTestCase::testMultipleLines().
Added ParserTestSuite.
Added LineNumberTest.
Updated CModelElementsTests to set the Nature of the C++ project
appropriately.
This patch updates the create methods of the CModelBuilder:
-changes visibility to protected.
-returns the created element.
The new CModelBuilder returns a map of the created elements and their infos.
CORE
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.
TESTS
Added DOMTests::testPointersToFunctions.
CORE
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().
TESTS
Added DOMTests::testBug36247().
-Adds template elements (classes, functions and methods) to core model.
-Updates the C Model Builder to recognize templates.
-Adds UI support for templates in outline view.
CORE
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.
TESTS
Organized imports.
Added DOMTests::testTemplateDeclarationOfMethod().
Added DOMTests::testBug36250().
Added DOMTests::testBug36240().
Added DOMTests::testBug36254().
patch_04.08.03(cdt.core).txt
user defined conversions by operator
patch_04.08.04(cdt.ui.tests).txt
added ParserSymbolTableTest::testUserDefinedConversionByOperator()
- Uses "StringBuffer" instead of "String" in CModelBuilder and a couple other places for better performance.
- Displays the volatile decorative for volatile declarations.
- Changes the background of some icons to transparent.
CORE
Brought DOM up to par wrt functionality with Code Model.
Added isFunctionDefinition() to SimpleDeclaration.
Added visiblity indicators for member declarations.
Added offset information that was previously unavailable.
Added preprocessor statements (inclusions, macros) to DOM.
Updated TypeSpecifier hierarchy to allow for parameter declarations to own elaborated types.
Added new constructor to parser to aid testing.
Fixed bug36065.
TESTS
Added testMemberDeclarations(), testPreprocessor(),
testElaboratedParms() to DOMTests.
CORE
Fixed defect 36073.
Fixed error handling for unterminated strings in Scanner.
Fixed offset for inclusions in the outline view.
Significantly updated callback structure to better suite the nature of the Code Model.
Updated all callbacks and parser to accommodate altered callbacks.
TESTS
Added DOMTests::testBug36073().
Core fix for Outline View
- Fixed bug35939. Proper CElement position is set on
Simple Declarations, Class Specifications, Namespaces,
Enumerations and Enumerators, Macros and Inclusions.
- Callbacks updated to provide additional offset
information.
CORE
Fixed defects 36019, 36020, 36045.
Finished template declarations and their callbacks for the DOM (not the Code Model).
TESTS
Updated ScannerTest::testSimpleIfdef() for bug36019.
Updated ScannerTest::testNumerics() for bug36020.
Added ScannerTest::testBug36045().
Updated DOMTests::testTemplateDeclaration() for template grammar updates.