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

134 commits

Author SHA1 Message Date
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
8b6f29d3ad Fix Symbol Table Lookup in addBaseSpecifier() for Andrew. 2003-07-25 14:49:18 +00:00
John Camelon
196aedf345 Fixed ASTEnumerator::getOwnerEnumerationSpecifier() in COMPLETE_PARSE mode for Bogdan. 2003-07-25 14:30:11 +00:00
John Camelon
4824b20cdc CORE
Added COMPLETE_PARSE support for Method and Field declarations and cross-references. 
	Fixed some small ParserSymbolTable bugs.
	Added support for linkage specification under COMPLETE_PARSE.

TESTS
	Updated CompleteParseASTTests for Method/Field updates.
	Fixed TortureTest's parser mode switch (was always QuickParsing).
2003-07-25 00:35:42 +00:00
John Camelon
ea9038f44b Fix ending offsets of Functions/Methods w/bodies for Hoda. 2003-07-24 14:47:32 +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
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
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
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
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
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
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
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
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
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
John Camelon
2e6093590f CORE
Fixed NPE in Parser::declarator().
	Bug 39652 - AST: Nested Classes incorrectly report null qualified Names 

TESTS
	Moved testBug39652() from failed search tests to ClassDeclarationPatternTests.
2003-07-04 18:03:22 +00:00
John Camelon
4961729ef8 Patch for Victor Mozgin
CTaskTagsReconciler refactoring.
2003-07-04 15:19:54 +00:00
John Camelon
77ed10f94c Patch for Victor Mozgin.
Fixed PR 39501 : Parser problems with throw clauses.
Improved filtering of expected failures/inconclusives in TortureTest.
2003-07-03 18:44:40 +00:00
John Camelon
b2aacbd3c1 CORE
Further restructuring of Parser for ISourceElementRequestor. 
	Added interfaces/implementation for Simple Declarations.  
	Cleaned up DOM's representation of Constructor chains.  

TESTS
	Added DOMTests::testAssignmentExpression()
	Added PreprocessorConditionalTest to ParserTestSuite.
2003-06-30 22:08:38 +00:00
John Camelon
bc44d5b65f Completed Quickparse expression representation.
Updated ExpressionEvaluation and associated tests.
2003-06-28 22:39:35 +00:00
John Camelon
c4df8f4e6f Patch for Victor Mozgin.
Initial pass at Task Bar/IProblem support.
2003-06-28 19:48:12 +00:00
John Camelon
728848ffc6 Update IASTExpression.
Move Parser.Backtrack and Parser.EndOfFile to external interface.
2003-06-27 00:20:07 +00:00
John Camelon
87e8a2b4d3 CORE
Fixed bug39348 - sizeof elaborated types fail in parsing expression
TESTS
	Added DOMFailedTest::testBug39349(). 
	Added DOMTests::testBug39348().
2003-06-26 00:11:32 +00:00
John Camelon
6a7293f951 Create new interface and support for calculating lineNumber/offset mapping.
Updated IASTClassSpecifier for qualified name query.  
Began structuring expressions and declarators in Parser for ISourceElementRequestor.  
Updated other packages to use new interfaces.
Updated automatedtests/torture test to use new line number information.
2003-06-25 22:47:52 +00:00
John Camelon
effbc07d12 Updates for ISourceElementRequestor - elaborated types & enumerations. 2003-06-24 20:18:16 +00:00
John Camelon
65fb06058c SimpleDecl support for migration towards ISourceElementRequestor. 2003-06-23 21:28:14 +00:00
John Camelon
f61006c9fe Updated Factory infrastructure, constructors, etc.
Introduced Preprocessor class for transitive closure calc. client.
2003-06-23 18:05:31 +00:00
John Camelon
4347f9b681 Patch for Victor Mozgin.
Fixes problem with offsets of elements that were created as macro expansions (PR 36463).
2003-06-20 17:16:05 +00:00
John Camelon
5ef908593a Patch for Victor Mozgin.
K&R Support.  God help us.
2003-06-18 19:36:20 +00:00
John Camelon
727db1c990 Patch for Victor Mozgin
Implemented correct handling of nested declarators in CModelBuilder.
Added proper support for function pointers as parameters.
2003-06-18 13:56:58 +00:00
John Camelon
15f0d21085 Patch for Victor Mozgin.
implemented support for pointers to class members;
added handling of declarations for nested scopes (like A::B::C);
fixed handling of parameter lists for typedefs for functions;
some errorhandling in CModelBuilder;
2003-06-16 21:41:54 +00:00
John Camelon
22eb93f0e4 2003-06-13 John Camelon
Added Class/Base infrastructure to public interfaces & requestor callback. 
	Moved many internal interfaces to external packages. 
	Organized imports.
2003-06-13 20:03:15 +00:00
John Camelon
729fbe3c68 Patch for Victor Mozgin.
Fixing AutomatedTest.java after PST/HEAD merge.
2003-06-13 18:24:26 +00:00
John Camelon
89913324d4 Merge Parser_SymbolTable branch into HEAD. 2003-06-13 15:01:26 +00:00
John Camelon
362dd49676 Patch for Brent Nicolle.
Added some Interface tests of (IInclude, IMacro, IStructure). 
Made sure all the Test Suites have names in the JUnit hierarchy.
2003-06-10 22:57:05 +00:00
John Camelon
d4a1629964 Patch for Victor Mozgin.
This patch enables parsing of conversion operators. Fixes PR 38657 and the rest of PR 36769.
2003-06-10 14:41:42 +00:00
John Camelon
1aae7b2fa4 Patch for Victor Mozgin.
This patch should improve parsing of new-expressions, including placements, array allocations and multiple parameters in initializers. Fixes PR36932.
2003-06-09 22:02:31 +00:00
John Camelon
e9adc8cbbb Patch for Victor Mozgin.
Fix for PR36701 (Preprocessor stringizing)
2003-06-09 18:40:17 +00:00
John Camelon
de2f7c52bc Patch for Victor Mozgin.
Here is the patch that should take care of parsing templated constructor/destructor/operator declarations.
2003-06-09 18:21:28 +00:00