Fix Bug 38380 "Include" class public methods fails JUnit tests
Updated CModel, DOM, Scanner and current Parser callback to set the information appropriately.
TESTS
Moved testBug23478A() & testBug23478B() from failed tests to TranslationUnitTests.java.
Removed TranslationUnitFailedTests.java as it was empty.
I also had to apply Alain's partial fix to the Parser_SymbolTable branch to get this working.
Core
1. Added 2 new option types: Boolean and enumerated
2. Changed the IOption interface to get new option type values
3. In plugin manifest and IOption interface added concept of a default enumerated value to support on-going GUI work
4. In plugin manifest and IOption, added field to map the actual command line argument with the option for makefile generation.
Tests
1. Changed the plugin.xml manifest to match the new option types
2. AllBuildTests.java updated to test new option types and fields added in core
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
Added DomFailedTest::testBug36769
Added DomFailedTest::testBug36771
Fixed AutomatedTest to handle files with commas in their names
Added ScannerTestCase::testBug36770
-reversed the change to the ICElement interface.
-solves the method template with body bug
-solves bug #36726: ElementDeltaTests::testElementDeltas()
failure in Junit
automatically copy over their configs (however now they do for
targets defined at the extension point).
- Config elements and attributes are now saved in the cdtbuild file, but
not any children.
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.
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().
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()