I replaced old Java testcases for partitioning with C/C++ ones, and
fixed AutomatedIntegrationSuite so it doesn't produce a JUnit warning (which is a failure) anymore. So now all tests in org.eclipse.cdt.ui.tests should pass.
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.
The user may start the wizard from the navigator view. In this case, the selection is a resource, not a CModel Element, which caused some troubles.
This patch fixes this problem. Change log has been updated.
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.
This patch enables Outline view filters to show/hide -static members, non-public members, and fields (same as in JDT).
Please note that the patch creates three new packages and 5 new classes.
It also has 9 new icon files (in three different directories).
The modified files + the new files are all zipped into the attached file.