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

3745 commits

Author SHA1 Message Date
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
Mikhail Khodjaiants
020ee8aeea Fix for bug 48682: IThread.getBreakpoints() stubbed out. 2004-01-15 22:09:35 +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
db794992cb Make failure more visible. 2004-01-14 22:03:23 +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
David Inglis
c1d289e14d - cleanup UI
- fixed problems with make target editor
2004-01-13 18:54:39 +00:00
David Inglis
44e85901c9 - update progress monitor to show complete build command
- update progress monitor to normailize over each build.
2004-01-13 18:53:52 +00:00
David Inglis
becb0a5d20 removed warning 2004-01-13 18:44:43 +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
cfa54903d5 Added summary table. 2004-01-13 03:23:00 +00:00
Doug Schaefer
2987f58e21 New automated test infrastructure. 2004-01-12 20:58:59 +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
Sebastien Marineau
c209012141 Replace QNX copyright with standard CPL copyright. 2004-01-08 12:06:08 +00:00
Doug Schaefer
208055cbb3 Fixed the build scripts to use a seperate script generator
version of eclipse so that we can use 2.1.2 to generate
the scripts since 3.0 is broken.
2004-01-07 22:20:44 +00:00
Alain Magloire
bf3ef0b67e organize imports. 2004-01-07 21:08:20 +00:00
Alain Magloire
081264bae4 Fix Pr 49652.
Show the full path of the binaries.
2004-01-07 21:02:50 +00:00
Alain Magloire
41a0020d24 Fix for PR 49595
The error parsers were not save in the correct order.
2004-01-07 17:39:05 +00:00
John Camelon
7a48cc3a16 Patch for Andrew Niefer
CORE

Support the content assist lookup kind LookupKind.THIS, where the lookup 
looks in the class of the this pointer.
Fix a bug where the forward declared functions/methods appeared twice in 
the content assist results .

TESTS

Added ContextualParseTest::testCompletionLookup_LookupKindTHIS
2004-01-07 02:00:22 +00:00
Alain Magloire
24e017a04a First implementation of STABS debug format parsing 2004-01-06 21:19:57 +00:00
Mikhail Khodjaiants
e63680bf70 Fix for bug 49587: Unable to set breakpoints in the editors that extend CEditor. 2004-01-06 20:45:35 +00:00
John Camelon
d02df84a93 CORE
Renamed IToken::tELIPSE to IToken::tELLIPSIS
	Partially fixed Bug 43110 : Parser support needed for functions with ellipses 

TESTS
	Added CompleteParseASTTest::testBug43110() and QuickParseASTTests::testBug43110().
2004-01-06 15:26:48 +00:00
John Camelon
0ec807acad CORE
Removed warnings.  
	Moved StructuralParseCallback from model to parser directory to facilitate building the parser standalone.
2004-01-05 21:31:04 +00:00
Doug Schaefer
8cceffb272 Fix the classpaths to use dynamic containers again.
My apologies :-)
2004-01-05 21:16:28 +00:00
Doug Schaefer
e2a9baddeb Fix version number. 2004-01-05 20:51:56 +00:00
Doug Schaefer
e1b04cf0c0 Added org.eclipse.core.runtime.compatability as a
dependency to satisfy Eclipse 3.0M6 requirements.
2004-01-05 20:26:57 +00:00
Hoda Amer
b4c1ec6c05 Content Assist work: Bug fixing 2003-12-31 20:39:37 +00:00
Hoda Amer
4ce12b38ca Content Assist work: Bug fixing 2003-12-31 18:37:59 +00:00
Hoda Amer
4ae8242ff6 Content Assist work: Bug fixing 2003-12-30 22:39:05 +00:00