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

954 commits

Author SHA1 Message Date
John Camelon
ea9038f44b Fix ending offsets of Functions/Methods w/bodies for Hoda. 2003-07-24 14:47:32 +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
33b684ca91 Patch for Bogdan Gheorghe:
- Here's a first take at the dependency tree service
which is needed by both the managed build and the
indexer. The service is in a really early form with no
persistance or notification mechanisms in place yet.
There is just enough in here to allow Sean to get his
makefile dependencies. I added a check box to the
indexer tab to enable the service on a per project basis.
2003-07-24 14:15:07 +00:00
John Camelon
9d44e90798 CORE
Added CompleteParse - UsingDirective & UsingDeclarations w/namespace/class/field variable references.
	Added CompleteParse support for enumeration specifiers and references in variables & fields.  
	Stubbed out other Scopes/Declarations for COMPLETE_PARSE mode to allow indexer team to switch over ASAP. 

TESTS
	Updated CompleteParseASTTests.
2003-07-24 13:47:20 +00:00
John Camelon
d67f2b25cf Patch for Hoda Amer.
This patch updates the CModelBuilder to use the AST instead of the DOM.
2003-07-24 13:30:30 +00:00
John Camelon
b9273831d1 Fix offsets of PointerToFunctions/PointerTo Methods for OutlineView 2003-07-23 20:20:50 +00:00
John Camelon
f476d6f782 Fixed classOffsets for Hoda 2003-07-23 19:51:30 +00:00
John Camelon
b97503af2c Fix id offsets on variables/fields 2003-07-23 14:39:42 +00:00
John Camelon
89395c5d38 Fix Offsets on Variables. 2003-07-23 13:59:56 +00:00
John Camelon
443dc9c1ec CORE
Added in preliminary support for Field/Variable w/cross references on their types.  

TESTS
	Updated CompleteParseASTTests.
2003-07-22 22:02:24 +00:00
John Camelon
aa45081d82 Fixed Bogdan's timeouts so it doesn't take months to run the test suite. 2003-07-22 18:51:41 +00:00
John Camelon
1db528a01b Add IASTFunction.setHasFunctionBody()/IASTFunction.getHasFunctionBody()
for the sake of the outline view.
2003-07-22 18:32:40 +00:00
John Camelon
4b8ed789cc Offset fixes for Hoda. 2003-07-22 14:50:13 +00:00
John Camelon
329664223a - Added support for digraphs and trigraphs. Both scanner and UI syntax
highlighting are updated.
-  Added support for hex floating point literals.
- Fixed stack overflow problem with string literals concatenation.
- Fixed problem with token pasting in macros.
- This solves PR 39523, 39550, 39552.
2003-07-22 00:44:18 +00:00
John Camelon
c39bb334d0 CORE
Addded in support for BaseSpecifier & class/namespace reference callbacks upon those.  

TESTS
	Updated CompleteParseASTTests.
2003-07-22 00:26:13 +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
Doug Schaefer
a3c2f8e423 Removal of cdt.builder packages. 2003-07-21 18:03:28 +00:00
John Camelon
f25e4d8bd0 CORE
Fleshed out basic declarations for FullParse AST.
	Fixed Bug 40554  - Fields coming back as Vars 
	Fixed Bug 40555  - Methods come back as Functions 

TESTS
	Created CompleteParseASTTest and added it to ParserTestSuite.
2003-07-21 17:30:00 +00:00
Peter Graves
2db6f58160 Include the .jar file. 2003-07-18 18:45:45 +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
e042f101ba CORE
Removed DeclaratorDuple as it was obsolete.
	Fixed offsets in quickParse's IASTTypedefDeclaration implementation.
	Fixed Bug 40436 - Fully Qualified Names Needed (for Indexer/Search features)

TESTS
	Wrote new tests in QuickParseASTQualifiedNameTest.java and added it to ParserTestSuite's suite.
2003-07-18 12:40:48 +00:00
Peter Graves
2566b4d3d9 Remove usage of Java 1.4 reserved keyword assert. 2003-07-18 12:18:22 +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
Peter Graves
a7fedb9060 Remove usage of Java 1.4 reserved keyword assert. 2003-07-17 15:23:56 +00:00
Doug Schaefer
176c8d7bf9 Fixes a couple of cdtproject bugs 40103. 2003-07-16 20:57:09 +00:00
Alain Magloire
51cc929af3 updated. 2003-07-16 15:02:13 +00:00
Alain Magloire
de30a4ac8b Patch from Alex Chapiro to fix a bug 2003-07-16 15:02:00 +00:00
Alain Magloire
aa2f55b2f1 updated 2003-07-16 14:49:45 +00:00
Alain Magloire
42d1154261 Patch from Alex Chapiro to provide build contribution
to the CView.
2003-07-16 14:49:38 +00:00
Alain Magloire
0eb01b1ba1 updated 2003-07-16 14:29:49 +00:00
Alain Magloire
088b72acaf Thomas Fletcher added new method replacePersistenttarget() 2003-07-16 14:29:40 +00:00
Alain Magloire
dab6ba3ae7 Thomas Fletcher added new command "Edit.." 2003-07-16 14:28:58 +00:00
Doug Schaefer
0c232fa416 Patch for Andrew Niefer:
Patch for C++ Search to support searching for class declarations

Interface changes:
- modified search Interfaces : 
        - ICSearchConstants - changed SearchFor instantiations to more 
closely match what we can search for.
        - ICSearchPattern - added getLimitTo() 
        - ICSearchResultCollector - added createMatch(), which should 
return an object implementing the new IMatch interface, these store the 
any data needed to keep found matches.
  These interfaces are still new and its too early for anyone other than 
search and the indexer to be using them.
- added search interface IMatch.


Changes to core.search had to do with keeping track of the current scope 
during the search, as well as other modifications for matching class 
declarations, and the start of the patterns for matching other things.

Changes to ui.search had to do with creating IMatch objects to store the 
information needed by the label provider to display icons and sort the 
results.
2003-07-15 14:48:13 +00:00
Peter Graves
2c445a38b7 Cleanup some left over gunk from the move of stuff to org.eclipse.cdt.core.tests
and updated test.xml to point to the correct test suite.
2003-07-15 13:43:18 +00:00
John Camelon
1a23ab7152 Patch for Victor Mozgin
Added support for long long and wide char literals.

Fix for PR 39349 : Scanner fails on long long literals.
Fix for PR 39544 : Scanner fails on wide char literals.
2003-07-15 13:35:45 +00:00
Doug Schaefer
489e790d30 Fix missing directories from build. 2003-07-14 19:54:17 +00:00
Doug Schaefer
b03158193f Patch for Bogdan Gheorge:
- UI for C/C++ Search
2003-07-14 15:34:57 +00:00
John Camelon
9a0d1c0511 Patch for Victor Mozgin.
Added failed tests that correspond to recently reported parser PRs.
2003-07-14 14:04:21 +00:00
Doug Schaefer
0e59c966c0 Patch for Bogdan Gheorghe:
- support for class specifier search
- a new C/C++ search menu item
2003-07-11 22:41:45 +00:00
Doug Schaefer
5535e563a7 Patch for Bogdan Gheorghe:
- support for class specifier search
- a new C/C++ search menu item
2003-07-11 22:27:11 +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
Doug Schaefer
241ff5cf7f Make the projectId real. 2003-07-11 18:59:28 +00:00
Doug Schaefer
8bf8075639 Fix to project creation code. 2003-07-11 18:35:01 +00:00
John Camelon
eac791976f CORE
Added in template support to IAST hierarchy.
	Updated instantiation & specialization hierarchy.  
	Removed ASTTemplateDeclarationType.  
	Added full requestor callbacks for fields, variables, functions, methods & typedef declarations.
2003-07-10 21:31:34 +00:00
Doug Schaefer
2f2d91ff46 Fixed ordering problem where the CProjectNature was
trying to get at build info before it was created.
2003-07-10 18:28:24 +00:00
Doug Schaefer
6a897468ed - Added the ability to add arbitrary XML data to the
cdtproject file.
- Used to store the data that had been put in the
cdtbuild file for Standard Make projects.
- Cleaned up some of the exception handling in the 
StandardBuildManager.
2003-07-10 17:50:34 +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
4576601158 Patch for Victor Mozgin
Fix for PR 39476: Preference listeners for task tags do not work.
Fix for PR 39477: Task tags options dialogs ask for project rebuilds.
2003-07-07 15:35:46 +00:00
John Camelon
91794dcff9 Further restructuring. 2003-07-07 13:46:16 +00:00
John Camelon
8b844d54f1 Patch for Sean Evoy.
The change logs contain an overview of what has been done to implement a new interface between a build model (any build model) 
and clients of the model that need to extract include search paths and defined symbols. For the most part, I have tried to leave the 
old build system as unchanged as possible. For example, project properties like the make search path, and whether or not to continue 
on build failures are still stored as persistent properties on the project through the CNature (ugh). The new information I have added 
is managed by a new build manager on a per-project basis and is associated with a project as a session property. The information is 
persisted in the 'cdtbuild' file introduced by the new managed build system.
2003-07-04 18:36:47 +00:00