1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

1640 commits

Author SHA1 Message Date
John Camelon
8e6d3ded24 Patch for Andrew Niefer
This patch provides handling of the C types _Complex, _Imaginary, _Bool & 
long long int in the parser symbol table. (bug45573)

Core:
        modified ParserSymbolTable.promotion() & conversion()
        added TypeInfo.isLongLong
        modified TypeInfo.canHold()

Core.tests:
        Added ParserSymbolTableTest.testLongLong() 
        Added ParserSymbolTableTest.testComplex() 
        Added ParserSymbolTableTest.test_Bool()
2004-01-27 02:36:30 +00:00
John Camelon
b5d5e34e25 Added traceLogs into Scanner. Fixed Bug 46402 : expression evaluation error on branch not taken. Added beginning of IScannerExtension and GCCScannerExtension support for gcc specific aspects. Added separate Scanner log category for tracing and updated clients to use it. 2004-01-27 01:23:29 +00:00
Hoda Amer
d4ca6eb809 Content Assist Work: More JUnit tests 2004-01-26 21:17:39 +00:00
Alain Magloire
0f7f7e0b13 New draft implementation of a generic debug framework callback 2004-01-24 20:47:11 +00:00
Alain Magloire
c1a633f63d Separate the entries from 2003 to 2004.
to cut down on the commit.
2004-01-24 20:46:18 +00:00
John Camelon
7c3ab2617b Updated Scanner for content assist in preprocessor directives. 2004-01-23 21:04:23 +00:00
Hoda Amer
f26c374088 Content Assist Work: More JUnit tests 2004-01-23 19:45:59 +00:00
John Camelon
e35bc93925 Added token, scanner and problem subpackages to org.eclipse.cdt.internal.core.parser. Updated tests to accommodate. 2004-01-22 20:15:31 +00:00
John Camelon
34754f2099 org.eclipse.cdt.core
Fixed bug 50344 - Wrong completion in Class scope if before the first declaration.

org.eclipse.cdt.ui.tests
	Updated CompletionFailedTest_FieldType_NoPrefix_Bug50344 and moved from failed tests.
2004-01-22 18:51:18 +00:00
Alain Magloire
703e1086c9 PR 50397 Adding new elf machine numbers. 2004-01-22 17:10:21 +00:00
Hoda Amer
3f0448c576 Content Assist Work : small problem in CompleteParseASTFactory solved. 2004-01-22 16:08:35 +00:00
Hoda Amer
e1fcb18b59 Content Assist Work: More JUnit tests 2004-01-21 21:45:19 +00:00
Hoda Amer
c44ab7ec78 Content Assist Work: More JUnit tests 2004-01-21 19:33:29 +00:00
John Camelon
d228fe824a Added traceLog() call into Scanner.handleProblem() and updated ParserFactory.createPreprocessor()'s error handling. 2004-01-21 03:01:14 +00:00
John Camelon
ee9dc1d5a5 org.eclipse.cdt.core
Parser:  Cleaned up Scanner for unused fields, inefficient String manipulations and redundant parameters.
2004-01-20 21:50:20 +00:00
Alain Magloire
3b42a40c54 Remove the hardcode "objdump" 2004-01-20 21:15:52 +00:00
Alain Magloire
2c72e31d52 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.
2004-01-20 21:13:28 +00:00
Doug Schaefer
14bf87311d Added visitor support for the C Model. 2004-01-20 16:37:18 +00:00
John Camelon
a38f5c4f0d 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.
2004-01-20 02:21:30 +00:00
David Inglis
8104889038 due to changes in CPRojectHelper 2004-01-19 20:06:51 +00:00
David Inglis
e05e298eb2 - remove make core dependency from project creation
- assert project create/deletion failure with detailed messages
- use common (were possible) project create/deletion methods in CProjectHelper.
- fixed problem with dep test when generating code the file was never closed causing project deletion to fail on win32
2004-01-19 20:02:53 +00:00
Hoda Amer
69cb22837f Content Assist Work : Added lookups for Macros with Function style 2004-01-19 19:42:34 +00:00
John Camelon
9cac774800 Patch for Andrew Niefer
This patch implements an iterator on all the contents of IContainerSymbol. 
This is a first step to an iterator on the IAST nodes.  

Core:
        Created IExtensibleSymbol, which is a new base class for the symbol interfaces
        Created IUsingDirectiveSymbol and UsingDirectiveSymbol
        Modified ASTUsingDirective to use IUsingDirectiveSymbol
        Modified CompleteParseASTFactory.createUsingDirective
        Added IContainerSymbol.getContentsIterator()
        Implemented getContentsIterator in ContainerSymbol

Core.tests:
        Modified CompleteParseASTTest.testUsingClauses
        Added ParserSymbolTableTest.testIterator_1 & testIterator_2
2004-01-17 00:18:24 +00:00
Hoda Amer
bcdd0ab7c3 Content Assist Work: More JUnit tests 2004-01-16 20:19:05 +00:00
John Camelon
9960da3ec4 org.eclipse.cdt.core
====================
Changed IASTNode.LookupException to IASTNode.LookupError.
Updated IASTElaboratedTypeSpecifier to remove redundant extends relationships.

org.eclipse.cdt.ui
==================
IASTNode.LookupException references changed to IASTNode.LookupError.
2004-01-16 05:09:09 +00:00
John Camelon
57d668240a Patch for Andrew Niefer.
For normal lookups in the symbol table, a HashMap is faster than the tree 
map, but for prefix lookups the TreeMap is faster.  So we are now using 
the HashMap for normal parses, and we use the TreeMap in the parse mode 
used by content assist.

Note that with these changes the results returned by the IASTNode.lookup 
function used by content assist are now in predictable order:  they are 
first sorted in the order of the scopes visited during the lookup and then 
they are sorted alphabetically

Core:
Modified symbol table constructor to take a ParseMode as a parameter.
Modified symbol table to use a TreeMap instead of HashMap when ParseMode is COMPLETION_PARSE.
Modified ASTNode.lookup to throw ASTNotImplementedException if called when ParseMode is not CONTEXTUAL_PARSE.

Core.tests:
Moved testBug48307_FriendFunction_1 & testBug48307_FriendFunction_2 to ContextualParseTest.
Updated ContextualParseTest now that the order of prefix lookup results is predictable.

UI:
Updated CompletionEngine to catch ASTNotImplementedException from IASTNode.lookup.
2004-01-15 23:06:58 +00:00
John Camelon
2e53b260f0 Updated classpath so it uses dynamic classpath entries. 2004-01-15 19:40:37 +00:00
Hoda Amer
1196d4a5ff Content Assist Work : Moved logging and testing to the UI side of CDT 2004-01-15 18:06:14 +00:00
David Inglis
e69bf2d4b5 fixed junit test to work without the deprecated CDT stuff 2004-01-15 14:18:37 +00:00
John Camelon
192a8293ce org.eclipse.cdt.core
====================
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.  

org.eclipse.cdt.core.tests
==========================
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().  

org.eclipse.cdt.ui
==================
Updated references to LookupResult as it was renamed to ILookupResult.  
Updated references of ParserFactoryException to ParserFactoryError.
Updated references of ParserNotImplementedException to ParseError. 
Updated references of CONTEXTUAL_PARSE to COMPLETION_PARSE.
2004-01-15 13:38:02 +00:00
David Inglis
d70a6ac41a fixed junit test to work without the deprecated CDT stuff 2004-01-14 22:05:56 +00:00
Doug Schaefer
828dff9194 Fixed up test output so that it reports errors in an XML
friendly way.
2004-01-14 21:18:28 +00:00
David Inglis
74f6ab27e8 - removal of deprecated 1.2 methods/classes 2004-01-13 21:25:35 +00:00
Alain Magloire
613c100d78 updated the entry logs 2004-01-13 20:33:43 +00:00
Alain Magloire
9372319dd3 We have to check the range of the st_shndx field
before using it some values are reserved.
2004-01-13 20:32:54 +00:00
John Camelon
ac23c3d878 UI
Updated CompletionEngine to handle IASTCompletionKind.CompletionKind.STATEMENT_START
2004-01-13 17:47:07 +00:00
John Camelon
2c18a23f89 CORE
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.  

TESTS
	Updated ContextualParseTest to accommodate bugfixes 48909 & 49702.  

UI
	Updated CompletionEngine to handle IASTCompletionKind.CompletionKind.STATEMENT_START
2004-01-13 17:07:02 +00:00
Doug Schaefer
53c3d3cbe1 Fixed up the automated integration suite to use the
new workbench test harness.
2004-01-12 19:08:28 +00:00
David Inglis
a33d942f28 fixed 49851 - deadlock when binary parser was changed while binary runner was running for that project. 2004-01-12 16:38:38 +00:00
Alain Magloire
7a06b48359 Implement ISymbol.getSize(). 2004-01-10 05:38:40 +00:00
Alain Magloire
7e143fdba9 update the logs 2004-01-09 22:13:01 +00:00
Alain Magloire
8c26ef7560 Work on the Stabs debug format implementation. 2004-01-09 22:12:07 +00:00
Alain Magloire
0bde2ce901 implement ISymbol.getSize() 2004-01-09 22:08:38 +00:00
Alain Magloire
b4cb4ecb76 Fix a bug when doing the getSymbols() in the binarySearch 2004-01-09 22:07:48 +00:00
Alain Magloire
522d6bc8b3 new method ISymbol.getSize() 2004-01-09 22:06:31 +00:00
John Camelon
51fc347c92 Patch for Andrew Niefer.
Core:
        Added IParameterizedSymbol.setHasVariableArgs() &
hasVariableArgs()
        Modified ParserSymbolTable.resolveFunction & reduceToViable
        Modified CompleteParseASTFactory.createMethod & createFunction

Tests:
        Added CompleteParseASTTest.testBug43110_XRef
        Added ParserSymbolTableTest.testBug43110_Ellipses
        Added ParserSymbolTableTest.testBug43110_EllipsesRanking
        Added ParserSymbolTableTest.testBug43110_EllipsesRanking_2
2004-01-09 16:59:30 +00:00
Alain Magloire
7d3eaf190b improvements. 2004-01-08 22:43:17 +00:00
Alain Magloire
3f777884b8 on going work on stabs. 2004-01-08 22:28:27 +00:00
John Camelon
15e4fa6b79 Patch for Andrew Niefer
Core:
        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.

Tests:
        Added CompleteParseASTTest::testBug48307_FriendFunction_1
        Added CompleteParseASTTest::testBug48307_FriendFunction_2
2004-01-08 16:57:54 +00:00
Hoda Amer
ed90c66221 Content Assist Work : Adding logging capabilities 2004-01-08 15:37:26 +00:00