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

53 commits

Author SHA1 Message Date
Doug Schaefer
452e82cb3d Patch for John Camelon:
CORE
		 Fixed bug36434 - Broken outline in winbase.h
		 Partial Fix for bug36379 - The parser to set Line informations when
scanning.
		 Fixed CModelManager to include header files with .H extension as C++
headers. 
		 Fixed bug36448 - Parser fails for C programs containing C++ keywords
as identifiers

TESTS
		 Added ScannerTestCase::testBug36434().
		 Added ScannerTestCase::testMultipleLines(). 
		 Added ParserTestSuite. 
		 Added LineNumberTest.
		 Updated CModelElementsTests to set the Nature of the C++ project
appropriately.
2003-04-16 12:30:47 +00:00
Doug Schaefer
772ea31915 Patch for Andrew Niefer:
patch_04.15.03(cdt.core).txt
    -fixed scanner bug36047
 
patch_04.15.03(cdt.ui.test).txt
    -Moved ScannerFailedTest::testBug36047 to ScannerTestCase::testBug36047
    -Added ScannerFailedTest::testBug36475
2003-04-15 18:40:07 +00:00
Doug Schaefer
f3b8a1b3ea Patch for Hoda Amer:
This patch updates the create methods of the CModelBuilder:
-changes visibility to protected.
-returns the created element.
The new CModelBuilder returns a map of the created elements and their infos.
2003-04-15 18:37:32 +00:00
Doug Schaefer
80f69509e8 Emergency patch for John Camelon. 2003-04-14 17:25:33 +00:00
Doug Schaefer
c479717511 Patch for Hoda Amer:
-determines the project nature before calling the parser. 
-sets the visibility of member template methods.
2003-04-14 16:00:18 +00:00
Doug Schaefer
ad0b7bce68 Patch for John Camelon:
CORE
		 Minor cleanup of callbacks due to removal of NewModelBuilder.
		 Added parser support to partially fix bug36416 & bug36294.  Also
added minimal C-Model support for these fixes. 

TESTS
		 Added DOMTests::testPointersToFunctions.
2003-04-14 14:14:52 +00:00
Doug Schaefer
1408e4cd83 Patch for John Camelon:
CORE
		 Minimized the number of objects being returned from Parser
callbacks.  
		 Fixed CModelBuilder to handle errors better. 
		 Reorganized the DOM Hierarchy to ensure that nodes were added to the
tree on End() callbacks.  
		 Fixed defect 36247().

TESTS
		 Added DOMTests::testBug36247().
2003-04-13 22:01:34 +00:00
Doug Schaefer
0c47e3bed5 Patch for Andrew Niefer:
- Fixed Bug36316 Parser/Scanner in infinite loop
2003-04-11 21:20:16 +00:00
Doug Schaefer
080e040924 Patch for John Camelon:
CORE
		 Fixed Bug 36243 DomBuilder Offsetable List
2003-04-11 21:14:34 +00:00
Doug Schaefer
04f59699f5 Patch for John Camelon:
CORE
		 Fixed Bug36237  Parser fails on casts in ctor initializer.
		 Added AccessSpecifier to TemplateDeclaration.

TESTS
		 Added DOMTests::testBug36237().
2003-04-11 14:42:29 +00:00
Doug Schaefer
d64897da7a Patch for Hoda Amer:
-Adds template elements (classes, functions and methods) to core model.
-Updates the C Model Builder to recognize templates.
-Adds UI support for templates in outline view.
2003-04-11 14:36:53 +00:00
Doug Schaefer
938a074dd8 Patch for John Camelon:
CORE
- Updated callbacks and parser to add offset information to template
declarations, thus making TemplateDeclaration implement IOffsetable.
2003-04-10 17:25:06 +00:00
Doug Schaefer
7e62df880f Patch for John Camelon:
CORE
	Removed all the old Code Model Builder source that was no longer being used (NewModelBuilder.java, etc.). 
	Moved all the files in parser.util directory to the dom.  
	Organized imports. 
	Fixed bug36250 Parser ignores functions with default parameters that have no name.
	Fixed bug36240 Parser incorrectly parses operator= 
	Fixed bug36254 Parser doesn't recognize unsigned as a type by itself.


TESTS
	Organized imports. 
	Added DOMTests::testTemplateDeclarationOfMethod().
	Added DOMTests::testBug36250().  
	Added DOMTests::testBug36240(). 
	Added DOMTests::testBug36254().
2003-04-09 21:12:09 +00:00
Doug Schaefer
ef5944b36b Patch for Andrew Niefer:
patch_04.08.03(cdt.core).txt
	user defined conversions by operator

patch_04.08.04(cdt.ui.tests).txt
	added ParserSymbolTableTest::testUserDefinedConversionByOperator()
2003-04-09 15:09:56 +00:00
Doug Schaefer
cc325e9b5f Patch for Hoda Amer:
- Uses "StringBuffer" instead of "String" in CModelBuilder and a couple other places for better performance.
- Displays the volatile decorative for volatile declarations.
- Changes the background of some icons to transparent.
2003-04-09 15:07:59 +00:00
Doug Schaefer
3268c4fc9f Patch for John Camelon:
CORE
	Added timing printout for CModelTests.
	Provided partial fix for bug36255 to get past infinite loop, will leave defect open.
	Fixed bug36045 (Again).  
	Fixed bug36287.

TESTS
	Updated ScannerTest::testBug36045().
	Added ScannerTest::testBug36287().
	Added DOMTests::testBug36288().
2003-04-09 14:52:28 +00:00
Doug Schaefer
5b29e684d8 Patch for Hoda Amer:
- Change the C Model Builder to use the DOM
- Minor changes to code model
- Fixes for bugs 35781, 26467
2003-04-08 21:30:53 +00:00
Doug Schaefer
78e61be446 Patch for John Camelon:
CORE
	Brought DOM up to par wrt functionality with Code Model.  
	Added isFunctionDefinition() to SimpleDeclaration.  
	Added visiblity indicators for member declarations.  
	Added offset information that was previously unavailable.  
	Added preprocessor statements (inclusions, macros) to DOM.  
	Updated TypeSpecifier hierarchy to allow for parameter declarations to own elaborated types. 
	Added new constructor to parser to aid testing. 
	Fixed bug36065.  

TESTS
	Added testMemberDeclarations(), testPreprocessor(),
testElaboratedParms() to DOMTests.
2003-04-08 03:41:05 +00:00
Doug Schaefer
b53b2d419c Patch for Andrew Niefer:
- Rewrote the conversion sequence ranking to better handle all cases.
- Added ParserSymbolTableTest::testOverloadRanking (whose initial
failure prompted the ranking rewrite).
2003-04-07 21:43:01 +00:00
Doug Schaefer
44aad85270 Patch for John Camelon:
CORE
	Fixed defect 36073.
	Fixed error handling for unterminated strings in Scanner.
	Fixed offset for inclusions in the outline view.  
	Significantly updated callback structure to better suite the nature of the Code Model.
	Updated all callbacks and parser to accommodate altered callbacks.  

TESTS
	Added DOMTests::testBug36073().
2003-04-06 03:06:22 +00:00
Doug Schaefer
0ff98a152c Patch for John Camelon:
Core fix for Outline View
- Fixed bug35939.  Proper CElement position is set on
Simple Declarations, Class Specifications, Namespaces,
Enumerations and Enumerators, Macros and Inclusions.
- Callbacks updated to provide additional offset
information.
2003-04-04 18:45:09 +00:00
Doug Schaefer
7081cddca6 Patch for John Camelon:
CORE
	Fixed defects 36019, 36020, 36045.  
	Finished template declarations and their callbacks for the DOM (not the Code Model).  

TESTS
	Updated ScannerTest::testSimpleIfdef() for bug36019.  
	Updated ScannerTest::testNumerics() for bug36020.  
	Added ScannerTest::testBug36045().  
	Updated DOMTests::testTemplateDeclaration() for template grammar updates.
2003-04-04 14:05:22 +00:00
Doug Schaefer
c045393b50 Patch for Hoda Amer:
- Delta Builder Helper Functions in the CModel
- Plus some cleanups
2003-04-04 14:01:31 +00:00
Doug Schaefer
d66e2dca22 Patch for Hoda Amer adds:
- the support for namespaces in the NewModelBuilder. 
- an icon for extern variables.
- a JUnit test case for core model elements, including namespaces. The enum_obj_gif should overwrite the existing file.
2003-04-03 15:38:47 +00:00
Doug Schaefer
46d2f50c48 Patch for John Camelon:
CORE
	Updated Scanner to convert ungodly control-characters to ' '.  
	Fixed logic error in model\SimpleDeclarationWrapper.
	Added operator support to grammar (conversion and overloading).  
	Fixed parser/util/Name.toString() to support non-qualified yet multi-part names.
2003-04-03 02:59:58 +00:00
Doug Schaefer
09948618e8 Patch for Andrew Niefer:
- Modified lookup with respect to resolving ambiguous names,
reducing the number of temporary lists/sets.
- Modified adding using declarations to properly support overloaded
functions.
- Added initial support for user defined conversion sequences when
resolving overloaded functions.
2003-04-02 13:18:54 +00:00
Doug Schaefer
6b80ff9dd3 Patch for John Camelon:
CORE
 - fixed bug35906
 - updated scanner to not puke on certain control characters

TESTS
 - added testBug35906() to DOMTests.
2003-04-02 13:13:34 +00:00
Alain Magloire
13a2fc941c Fix from John C. 2003-04-01 19:50:53 +00:00
Alain Magloire
aacea7223c Fixed unsigned short Simpledeclartions not showing up in the
outline view
2003-04-01 18:52:37 +00:00
Doug Schaefer
903e1c11d8 Patch for John Camelon:
- Updated NewModelBuilder to work for ElaboratedTypeSpecifiers, PointerOperators, Const Methods.  
- Fixed bug35878.
2003-03-31 21:04:30 +00:00
Doug Schaefer
34877663fe Patch for Andrew Niefer:
Core: (patch_03.31.03(cdt.core).txt)
Modifications to function resolution to better support pointers, references and typedefs.

Tests: (patch_03.31.03(cdt.ui.tests).txt)
Renamed testFunctionResolution_2 to testfunctionResolution_PointersAndBaseClasses.
Modified function tests to reflect changes made to the handling of parameters. Added testFunctionResolution_TypedefsAndPointers.
2003-03-31 20:43:07 +00:00
Doug Schaefer
daa99a3066 Patch for John C:
- Core Changes
  - Updated Scanner to work for Strings literals like L"this string"
  - Updated Scanner to work for floating points literals.
  - Updated Scanner to be more forgiving on errors in QuickScan mode.
  - Got template instantiation and specialization working (w/callbacks and DOM). 
  - Updated Parser/Callbacks for handle pure virtual function declarations.
  - Added callback support for some template declarations (nested not included).  
- Test Changes
  - Added testWeirdStrings() and testNumerics() to ScannerTestCase. 
  - Added testTemplateSpecialization(), testTemplateDeclaration(), testBug26467(), 
      testTypedef() and testTemplateInstantiation() to DOMTests.
2003-03-31 16:12:43 +00:00
Doug Schaefer
53b11edee4 Patch for John Camelon:
- Added AccessSpecifier and ClassKind to parser.util package and refactored callbacks. 
- Better encapsulated ExceptionSpecification in the DOM.
- Updated DOM structures to return unmodifiable collections.
- Added callback support for asmdefinitions.  
- Added callback support for constructor initializer chains.
- Fixed bug 35781 and updated parser to catch all exceptions from callbacks to ensure best-effort parsing. 
- Removed Main.java from Parser package.
- Updated tests.
2003-03-29 05:35:50 +00:00
Doug Schaefer
679b7c8db3 Patch for Hoda Amer:
- The static sign will show if the parser sets isStatic() to true
for any element. For now, I am just saving this info in the
element info. We could change it later if we need another
icon for variables and functions.
2003-03-28 21:05:24 +00:00
Doug Schaefer
f77eeb8c08 Patch for Andrew Niefer:
- This patch contains my initial implementation of standard conversion 
sequences for function resolution in the Parser's symbol Table. 
- Also, the type information has been pulled out of the Declaration object and 
placed in util.TypeInfo
2003-03-27 03:29:08 +00:00
Doug Schaefer
21e625463a Patch for John Camelon:
- Added callback support for namespace definitions.  
- Updated Parser exception handling strategy. 
- Added callback support for linkage specifications.
- Added callback support for using declarations and directives. Added callback support for enumerations. 
- Made DOM Name usage consistent.
- Updated DOMTests
2003-03-26 16:27:44 +00:00
Doug Schaefer
dd13b8fe53 Patch for Hoda Amer:
- updates the C model to enable the Outline view to display
type and visibility info for both fields and methods.
2003-03-26 16:03:03 +00:00
Doug Schaefer
717cbc2041 Patch for John Camelon:
- Added callback support for class member visibility.
- Added callback support for pointer and reference operators on declarators.
- Added callback support for throws clauses an const operations.  
- Added callback support for array declarators. 
- Updated parser tests to assist in this effort.
2003-03-24 03:04:35 +00:00
Doug Schaefer
c27351afc0 Patch for Andrew Niefer:
Patch for the parser's symbol table.
-friends
-"this" pointer
-enumerators
-argument dependent lookup
-function parameters & function overloading
2003-03-23 14:00:00 +00:00
Doug Schaefer
14f209afac Patch for John Camelon:
CDT Core Patch

2003-03-19	John Camelon
	Updated Parser method visibility to solidify external interface.  
	Solved and removed TODO's from Scanner implementation.
	Updated Parser and callbacks to handle basic expressions.  

CDT UI Tests Patch

2003-03-19 John Camelon
	Updated DOMTests for assignmentExpressions off of declarators. 
	Updated ExprEvalTest for Parser signature changes relating to adjustments to Expression callbacks.
2003-03-20 15:13:09 +00:00
Doug Schaefer
7dcd5eaebe Patch for John Camelon - see ChangeLog 2003-03-19 16:12:00 +00:00
Doug Schaefer
c885b918e3 Changed EOF token into a backtrack exception. 2003-03-17 19:48:49 +00:00
Doug Schaefer
e8808fb009 Patch for John Camelon:
- see ChangeLogs
2003-03-17 15:22:05 +00:00
Doug Schaefer
f4b27bf0ee Patch for John Camelon:
- see ChangeLogs
2003-03-12 15:36:06 +00:00
Doug Schaefer
ef11178134 Patch for John Camelon:
- see ChangeLogs
2003-03-12 15:35:41 +00:00
Doug Schaefer
2626b7316b Patch for John Camelon:
- added in support for detecting and reporting circular inclusions
- added optimization by caching inclusion directories
- added macro pasting capabilities and tests
- updated inclusion searching algorithm for local inclusions
2003-03-11 02:42:47 +00:00
Doug Schaefer
e97cc0fc46 Patch for John Camelon:
- Fixing initDeclarators for outline view
2003-03-07 19:45:52 +00:00
Doug Schaefer
640ec6e2e6 Patch for John Camelon:
- added quickParse heuristic to Scanner for handling #if conditionals to
avoid throwing ScannerExceptions on undefined preprocessor symbols
- added minimal enum support to Parser (though not to DOM or CModel)
2003-03-07 13:41:26 +00:00
Doug Schaefer
3ab24c5b3d Some minor fixes to the parser to get constructors/destructors working. 2003-03-06 19:46:28 +00:00
Doug Schaefer
40b44d0371 Patch for John Camelon:
- fixed qualified name offsets in outline view
- added loop-detection code to Parser
- added Scanner testcase to validate Sebastien's comments
- first pass at basic declarator initializers
2003-03-06 19:29:36 +00:00