1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-02 05:03:36 +02:00
Commit graph

38 commits

Author SHA1 Message Date
John Camelon
8dba12bff3 Patch for Hoda Amer.
Hi, 
This patch updates code completion to use search. It also includes my previous patch which enabled the class wizard to use search as well. 

Current Code Completion has the following restrictions: 
- It will only work within the scope of a function or a method. 
-It will look for globals (variables, functions, classes, strucs, unions, enumerations, and macros). 
-In the scope of a method, it will also look for the methods and fields that belong to the owner class of this method. 
- It will NOT search the parent classes of the method in the method scope case. 
- It will NOT de-reference after a "." or an "->"
2003-08-12 20:20:13 +00:00
John Camelon
04453687f0 Patch for Bogdan Gheorghe
This patch combines the field and variable search patterns into one in order to allow qualified searches on variables.
2003-08-12 15:20:21 +00:00
John Camelon
dbc6ab4f98 Patch for Bogdan Gheorghe.
This patch adds working copy search, macro search and combines the function and method search patterns into one.
2003-08-12 14:29:07 +00:00
John Camelon
ff9ca80b0c Patch for Bogdan (Fancy Pants) Gheorghe
This patch adds macro declarations to the index.
2003-08-11 19:10:45 +00:00
John Camelon
e1a20e1a7d Patch for Bogdan Gheorghe
Put in Indexer shut down which cleans up the .metadata directory of any suspicious looking index files 
Put in CSearchScope changes (in both UI and core) to enable working set searches
2003-08-11 13:42:55 +00:00
John Camelon
57c348fffa CORE
Updated AST to better represent pointers to functions/methods.
	Implemented typedef declaration/x-ref infrastructure.  

TESTS
	Updated QuickParseASTTests for pointer to function updates.
	Updated CompleteParseASTTests for typedef work.
2003-07-30 01:31:14 +00:00
John Camelon
a3e052456b Patch for Andrew Niefer
core:
- fixed a couple of bugs to do with searching for globally qualified 
patterns
- fixed a bug to do with the '?' wildcard
- fixed a bug to do with searching for functions/methods using patterns 
specifying parameters

tests:
- new search tests:
                ClassDeclarationPatternTests.testClassReferenceInFieldType
                ClassDeclarationPatternTests.testClassReferences
 ClassDeclarationPatternTests.testEnumerationReferenceVisibleByInheritance
                ClassDeclarationPatternTests.testGloballyQualifiedItem
 ClassDeclarationPatternTests.testTypeReferenceVisibleByUsingDirective
                FunctionMethodPatternTests.testMethodDeclaration
                FunctionMethodPatternTests.testMethodDeclarationWithParams
                OtherPatternTests.testFieldDeclaration
                OtherPatternTests.testNamespaceDeclaration
                OtherPatternTests.testNamespaceReferenceInClassBaseClause
                OtherPatternTests.testNamespaceReferenceInUsingDirective
                OtherPatternTests.testVariableDeclaration
2003-07-29 12:40:17 +00:00
John Camelon
7c5787894d Last minute demo fixes for Search/Indexer/COMPLETE_PARSE. 2003-07-25 16:45:49 +00:00
John Camelon
ee5dac3bd9 Patch for Bogdan Gheorghe.
This patch adds type refs, function refs, method refs,  fireld refs and namespace refs to the index and changes the parser mode to complete parse.
2003-07-25 15:21:57 +00:00
John Camelon
e312c1724b Patch for Andrew Niefer
This patch is for the search.  No new things can be searched yet, but this 
brings more things closer to being able to be searched.

        - Implemented decodeIndexEntry & matchIndexEntry for all patterns
        - changed MatchLocator to use a COMPLETE_PARSE.
        - added TYPE_ALL, FUNCTION_ALL, METHOD_ALL, NAMESPACE_ALL, 
FIELD_ALL constants to IIndexConstants
        - modified AbstractIndexer prefix functions to properly handle 
searching for all occurences
2003-07-24 21:43:47 +00:00
Doug Schaefer
7a408c3e1d Patch for Andrew Niefer:
Core:
- modifications to the Indexer to better support qualified names
- functions to create Index entry prefixes for the different Search 
Patterns
- all of the search patterns are now being created and all do at least 
some matching
- all of the parser callbacks for declarations, definitions, and 
references are now being handled, though the patterns and indexer both 
need some work here

Core.tests:
- new BaseSearchTest which creates a project and uses the indexer
- new test class FunctionMethodPatternTests to test aspects of the 
Function & Method patterns
- new test class OtherPatternTests to test the other (Namespace, Field & 
variable) patterns
- new tests to test index prefixes for the patterns

UI:
- handle more varied search results and display more icons
2003-07-24 14:20:16 +00:00
Doug Schaefer
d8ee61be38 Patch for Bogdan Gheorghe:
- adds namespaces, enums, typedefs, functions,
methods, fields and vars to the index.
- also fixes a problem with the Search label provider
which caused it to not display properly under some
conditions.
2003-07-21 21:14:10 +00:00
John Camelon
8aa2e6f9b9 CORE & UI
Added ISourceElementCallbackDelegate interface for AST constructs to allow the Parser to delegate callback's to the nodes themselves.  
	Got rid of ParserMode.STRUCTURAL_PARSE for the time being. 
	Removed org.eclipse.cdt.internal.core.parser.ast.full. 
	Created org.eclipse.cdt.internal.core.parser.ast.complete. 
	Updated ParserFactory.createScanner() to force the user to provide a callback and a ParserMode.
	Introduced ASTSemanticException for COMPLETE_PARSE mode. 
	Fleshed out preliminary IASTReference interfaces and added callbacks to ISourceElementRequestor.
	Removed acceptElaboratedTypeSpecifier() from ISourceElementRequestor.

TESTS
	Updated ParserSymbolTableTests to remove dependencies on parser.ast.full classes.
	Updated Parser test suites for updates to ParserFactory.
2003-07-18 16:39:26 +00:00
John Camelon
b43dece8ee CORE & UI
Removed IParserCallback.  
	Partially converted DOM to ISourceElementRequestor (requires refactoring of CModelBuilder & StuctureComparator modules in near future).  
	Completely finished ISourceElementRequestor/IASTFactory work for QuickParse mode.  
	Added pointer to methods/functions into AST callback structure.  
	Restructured AST class hierarchy.  
	Removed the old IParserCallback return Objects from every Parser method.

TESTS
	Rewrote the entire DOMTests suite to now be AST tests.  
	Removed DOMTests, BaseDOMTest, DOMFailedTests after methods were migrated to QuickParseASTTests & ASTFailedTests.  
	Made sure every parser failed test had a defect number associated with it.
2003-07-17 20:15:18 +00:00
Doug Schaefer
bcf023a6c8 Patch for Bogdan Gheorghe:
- support for class specifier search
- a new C/C++ search menu item.
2003-07-11 22:12:35 +00:00
John Camelon
d71d9270d8 CORE
Filled out IASTMethod & IASTFunction & added implementations.
	Updated IScanner, clients & implementations to use IScannerInfo.  
	Finished SimpleDeclaration porting to new architecture, only thing left is templates.  

TESTS
	Updated IScanner, clients & implementations to use IScannerInfo.
2003-07-09 00:47:49 +00:00
John Camelon
91794dcff9 Further restructuring. 2003-07-07 13:46:16 +00:00
Alain Magloire
077238bae2 Changes form Bogdan to add support for adding individual
source file to the indexer.  Also when removing projects
to remove the files in the indexer working tasks.
2003-07-04 03:02:07 +00:00
Doug Schaefer
afbe575516 Patch for Bogdan Gheorghe:
- The initial framework for the new indexer.
- Added a checkbox to the Indexer tab on the
C/C++ Projects settings dialog to turn on the
indexing on a per project basis.
2003-06-27 14:31:34 +00:00
Alain Magloire
7f0682ff8d remove unused methods. 2003-04-10 01:12:42 +00:00
Alain Magloire
febb3908e9 add startup() and shtudown() methods. 2003-04-10 01:12:24 +00:00
Alain Magloire
d750e21df8 ICElement.getResource() no longer throw an exception. 2003-03-27 19:32:04 +00:00
Alain Magloire
69a5d7386b ICResource was deleted. 2003-03-27 16:04:36 +00:00
Alain Magloire
36d2f67998 Type should be Thread.interrupt() not Thread.interrupted(). 2003-01-29 15:02:43 +00:00
Alain Magloire
3752b22c4e Fix the parsing. 2002-12-06 19:51:24 +00:00
Alain Magloire
4d8caa5769 do not do any quick start. here. 2002-11-12 22:17:06 +00:00
Alain Magloire
0f475ccc84 Check if it was already enabled. 2002-11-12 22:16:00 +00:00
Alain Magloire
fbea286a2e new method removeItem(Object key) 2002-11-12 20:52:39 +00:00
Alain Magloire
10cc1418e2 New method removeContainer() and clearRequestList. 2002-11-12 20:52:17 +00:00
Alain Magloire
a28d92aa29 new method removeResource(). 2002-11-12 19:01:50 +00:00
Alain Magloire
89f6cf14cf Check if the project is enable first. 2002-11-12 18:52:31 +00:00
Alain Magloire
4e3f536f36 setEnabled() adn isEnabled() new methods. 2002-11-12 18:52:09 +00:00
David Inglis
dad0f57455 many fixes see ChangeLog 2002-11-06 20:57:04 +00:00
Alain Magloire
66b60c7ba4 SetDaemon to true. 2002-10-28 14:43:27 +00:00
Alain Magloire
c13106f98a Implements Runnable. 2002-10-28 14:43:18 +00:00
Alain Magloire
29b8b000e5 indentation. 2002-10-28 14:43:05 +00:00
David Inglis
4956853ad0 update to support new console extension plus removed IPropertyStore
in core changing it to use the plaform property store.
2002-07-26 19:15:14 +00:00
Sebastien Marineau
e0fe72f58c Initial commit of CDT code from QNX 2002-06-26 20:39:58 +00:00