CDT Commit Report for - January 20, 2004

amagloire

To remove the hardcoded "objdump" we had to lay
down some infrastructure. This is base on ideas/patch
from Chris Songer. The idea is to define in the IToolsProvider
the Objdump class and reuse it to implement IBinaryFile.getContents().
Next step is to come up with ObjdumpEditor, to go this route
will be more flexible.

Remove the hardcode "objdump"

dschaefer

Added visitor support for the C Model.

jcamelon

org.eclipse.cdt.core
Parser updates: Added IToken.getLineNumber() to facilitate adding line numbers to AST. Added line number support into IASTOffsetableElement. Updated all implementations to use this. Updated Parser and IASTFactory to populate IASTOffsetableElement with the values retrieved from IToken. Removed IScanner.getLineNumberForOffset().
Model updates: Updated CModelBuilder to access line number information from IASTOffsetableElement.

org.eclipse.cdt.core.tests
Updated ParserSymbolTableTest to accommodate new constructors for COMPLETE_PARSE ASTNodes (line # info). Updated CModelElementsTest to enable testing for line numbers. Removed CModelElementsFailedTests.testBug36379() as it is redundant due to CModelElementTests.testCModelElements() is complete. Removed CModelElementsFailedTests from AutomatedIntegrationSuite as it is empty.

org.eclipse.cdt.core

Parser: Cleaned up Scanner for unused fields, inefficient String manipulations and redundant parameters.