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

696 commits

Author SHA1 Message Date
Hoda Amer
69cb22837f Content Assist Work : Added lookups for Macros with Function style 2004-01-19 19:42:34 +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
Hoda Amer
1196d4a5ff Content Assist Work : Moved logging and testing to the UI side of CDT 2004-01-15 18:06:14 +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
74f6ab27e8 - removal of deprecated 1.2 methods/classes 2004-01-13 21:25:35 +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
Hoda Amer
ed90c66221 Content Assist Work : Adding logging capabilities 2004-01-08 15:37:26 +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
Doug Schaefer
8cceffb272 Fix the classpaths to use dynamic containers again.
My apologies :-)
2004-01-05 21:16:28 +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
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
Hoda Amer
93369ee4cd Content Assist work 2003-12-29 22:01:31 +00:00
Hoda Amer
7dc9ef21ba Content Assist work : Template Engine work 2003-12-22 21:12:56 +00:00
Alain Magloire
16f0fdb92f Fix PR 40247
Overload the ViewSorter in CViewSorter not to use
the labelProvider.
2003-12-19 15:54:11 +00:00
Hoda Amer
33f033599d Content Assist work 2003-12-17 19:21:32 +00:00
Hoda Amer
c8b4fb4ce5 Symbol Table work for Content Assist By Andrew 2003-12-16 15:18:16 +00:00
Alain Magloire
3241b09765 New Header icon from Mirza Hadzic. 2003-12-15 22:48:34 +00:00
Hoda Amer
a8950694c7 Fix for [Bug 47234] new ParserMode required for a better CModel 2003-12-15 19:50:46 +00:00
David Inglis
1148b378c8 Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=48619 2003-12-15 18:28:51 +00:00
John Camelon
938c206289 CORE
Added OffsetLimitReachedException and restructured Parser exceptions.  
	Continued support for code assist/selection search parser.  
	Ensured all source in parser/ have copyright notices.  

TESTS
	Expanded ContextualParseTest::testBaseCase().  
	Updated tests to deal with new signatures/exceptions.  

UI
	Updated CompletionEngine to deal with new signatures/exceptions in parser.
2003-12-12 02:03:55 +00:00
David Inglis
6a7946eeee Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=48596 2003-12-11 21:32:17 +00:00
Alain Magloire
3982815009 updated. 2003-12-10 19:23:41 +00:00
Alain Magloire
b9c0291766 quick fix to change the DocumentProvider, to the
TextFileDocumentProvider to deal with external files
2003-12-10 19:23:20 +00:00
John Camelon
6424b6c980 Patch for Andrew Niefer.
UI:
fix bug 43932 Search: Wrong icons for context search in Outline View 
fix bug 48020 Duplicate Mnemonics in Search Dialog
2003-12-10 00:20:47 +00:00
Hoda Amer
0b91eeb637 Content Assist work 2003-12-09 19:58:34 +00:00
John Camelon
7742dab0b8 Fixed compile error in CCompletionProcessor 2003-12-09 16:41:47 +00:00
Hoda Amer
307d4a1d40 Content Assist work 2003-12-03 20:29:29 +00:00
Hoda Amer
89054fc120 New Content Assist framework 2003-11-27 19:52:23 +00:00
Hoda Amer
32fc5c80ab New Content Assist framework 2003-11-27 19:25:49 +00:00
Doug Schaefer
9c677d807f Upversioned the plugins, etc to 2.0.0.
Made sure the jar files got included in the zips.
2003-11-25 18:24:55 +00:00
Doug Schaefer
9dc3aa63e5 Upgrade to Eclipse 3.0. Includes:
- upgrade plugin.xml files
- use PDE containers
- apply Eclipse 3.0 porting items, in particular openEditor and gotoMarker
- remove TestWorkbenches from test plugins
2003-11-24 18:31:03 +00:00
David Inglis
51efd3ae86 Fixed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=46685 2003-11-14 18:06:34 +00:00
Doug Schaefer
335bab74c2 Patch for Sean Evoy:
- Fixes for bugzilla 44451 and 44841
2003-11-13 19:41:59 +00:00
Hoda Amer
757922dcc2 Patch for Bogdan 2003-11-11 18:25:56 +00:00
John Camelon
97e203468e CORE
Cleaned up the ParserFactory interface to check for validity of input arguments.  
	Moved NullSourceElementRequestor and ScannerInfo to public interface as requested. 
	Restructured code so that no Eclipse/CDT source outside the parser source directory is used.
	Updated parser clients to use new ParserFactory (stand-alone parser work item).  	

UI & TESTS
	Updated parser clients to use new ParserFactory (stand-alone parser work item).
2003-11-05 23:35:28 +00:00
John Camelon
56c76eb3e7 CORE
Removed warnings from parser source tree.  
	Removed preliminary task tags support to clean up parser interfaces and implementation.   
	Added preliminary IProblem support to 

UI
	Updated parser clients to use new IProblem strategy.  

TESTS
	Updated parser clients to use new IProblem strategy.
2003-11-05 18:15:21 +00:00
John Camelon
1a068f661e Patch for Andrew Niefer
core:
Fixed Bug 44925 : Search: Elaborated type specifier
Partially Fixed Bug 44510 : C/C++ Search gives wrong results 

ui:
Fixed Bug 44337 : Disabling of "definition" not making sense in Search 
dialog
Fixed Bug 44947 : Navigate from Outline: Enumeration type not 
pre-populated
Fixed Bug 44948 : Navigate via Open Declarations: typedef decl not found
2003-11-03 14:00:24 +00:00
Doug Schaefer
92669e0062 Patch for Bogda Gheorghe: (44366 & 45324)
- Moved off all dependency calculations to the Indexer thread,
created a new UpdateDependency job
- Modified CSearchOperation to only lock the workspace when
tagging resources with markers.
2003-10-27 20:57:47 +00:00
Doug Schaefer
de44b4c4a2 Merged 1.2 fixes into HEAD. Includes:
- managed make fix for infinite make recursion
- search fix for large projects
- fixes to source project so that it actually contains source
2003-10-27 18:26:54 +00:00
Hoda Amer
92c3026143 Bug fixes for New Class Wizard 2003-10-22 17:47:21 +00:00
Hoda Amer
7cfb47c220 Fix for bug#44507 2003-10-20 21:11:44 +00:00
Alain Magloire
de85b5fbaa Thomasf patch to do showInContext() 2003-10-20 19:59:16 +00:00
Alain Magloire
e0e5d2c7bf From Thomasf patch to do showIn, new method
showInContext()
2003-10-20 19:58:54 +00:00
Alain Magloire
e85f117e11 Implement Show() method, from ThomasF patch
to do ShowIn
2003-10-20 19:58:19 +00:00
Alain Magloire
f5b89e809f advertise the Cygwin PE parser Page 2003-10-19 01:17:40 +00:00
Alain Magloire
d6572b1aa6 updated. 2003-10-19 01:17:22 +00:00