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

1335 commits

Author SHA1 Message Date
John Camelon
fcd010f569 CORE
Fixed Bug36799  STL Testing: Parser fails on Variable Definition 

TESTS
	Moved fixed tests from FailedTests to DOMTests. 
	Added DOMTests::testBug36799().
	Cleaned up tests to reduce amount of code necessary to maintain these things. 

JohnC
2003-04-24 21:01:25 +00:00
John Camelon
6f23a3d075 Patch for Andrew Niefer:
This patch fixes 2 scanner bugs:
   Bug36816 Scanner infinite loop on incomplete #include
   Bug36255 Parser hangs/goes infinite
 
This patch also introduces a new automated test, 
FractionalAutomatedTest, which tests the parser on incomplete files.
2003-04-24 18:50:02 +00:00
John Camelon
ce2d966a88 CORE
Fixed bug36693 - Problem parsing Loki's Reference SmallObj.cpp Impl
	Fixed bug36696 - Problem parsing Loki's Reference SmartPtr.h Impl
	Improved our error handling robustness so that we don't mistake function bodies for CElements. 
	Fixed bug36713 - Parser fails on definitions of pointers to functions 
	Fixed Dave's performance test parse failure. 
	Fixed bug36811 - The using directive causes parser to fail
	Fixed bug36794 - ClassCastException for A template with no parameters 

TESTS
	Moved fixed tests from FailedTests to DOMTests. 
	Added LokiFailures.java to failed tests directory.

JohnC
2003-04-24 18:36:22 +00:00
John Camelon
d64dd56f51 2003-04-24 John Camelon
Fixed Java 1.3 compliance issue w/AutomatedTest.java
	Fixed False failure in HelloWorld.java.
2003-04-24 17:36:42 +00:00
Doug Schaefer
dce8a1d011 Patch for Andrew Niefer:
Added  DomFailedTest::testBug36769 
Added  DomFailedTest::testBug36771 
Fixed AutomatedTest to handle files  with commas in their names 
Added  ScannerTestCase::testBug36770
2003-04-23 17:30:50 +00:00
David Inglis
09a1c8f4d9 update version 2003-04-23 16:47:21 +00:00
Doug Schaefer
9806035059 Patch for Hoda Amer:
- Some failing STL template tests.
2003-04-23 14:07:50 +00:00
Doug Schaefer
30b5b45010 Patch for John Camelon:
CORE 
        Revisited bug36247      Parser confused by symbols #defined elsewhere   
        Fixed Bug36708          Problem parsing Loki's Reference TypeTraits.h   
        Fixed Bug36690          Problem parsing Loki's Reference Functor.h Implementation   
        Fixed Bug36692          Problem parsing Loki's Reference Singleton.h Impl 
        Fixed Bug36703          Problem parsing Loki's Reference TypeInfo.h Impl   
        Fixed Bug36689          Problem parsing Loki's Reference AbstractFactory.h Impl 
        Fixed Bug36707          Problem parsing Loki's Reference TypeManip.h   

TESTS 
        Updated DOMTests::testBug36247().   
        Moved testBug36692(), testBug36703(), testBug36708(), testBug36707(), testBug36689() 
        and testBug36690() from DOMFailedTests to DOMTests and updated them.
2003-04-22 15:22:31 +00:00
Doug Schaefer
20ddc794c8 Patch for Andrew Niefer:
Added DOMFailedTests::testBug36713() 
Added DOMFailedTests::testBug36714() 
Added DOMFailedTests::testBug36717() 
Added DOMFailedTests::testBug36730()
2003-04-22 14:43:45 +00:00
Doug Schaefer
966d0a1670 Patch for Hoda Amer:
-reversed the change to the ICElement interface.
-solves the method template with body bug
-solves bug #36726: ElementDeltaTests::testElementDeltas()
failure in Junit
2003-04-21 20:02:58 +00:00
Doug Schaefer
ae94fe7955 - Fixed the test failures that arose because the targets don't
automatically copy over their configs (however now they do for
targets defined at the extension point).
- Config elements and attributes are now saved in the cdtbuild file, but
not any children.
2003-04-21 19:37:47 +00:00
Doug Schaefer
eaf3aacd4e Patch for John Camelon:
CORE/UI
Fixed Bug36551 Bad parse on attached file.
Partial Fix for Bug36631 remove linear search algorithm from OffsetMapping 
TESTS 
Added DOMTests::testBug36551(). 
Adjusted AutomatedTest to turn on line numbering. 
Added DOMFailedTests and 11 failed test cases.  
Changed CModelElementTests so that I can get on with my work.
2003-04-21 18:34:44 +00:00
Doug Schaefer
bff475c968 Patch for Andrew Niefer:
Fixed Bug36475 - Scanner does not concatenate strings
Fixed Bug36509 - Scanner turns strings into identifiers when expanding macros
Fixed Bug36521 - Scanner gets confused over commas in function like macros
Fixed Bug36695 - Scanner looses escaping on chars (ie '\4' to '4')
 
 
Moved ScannerFailedTest::testBug36475 to ScannerTestCase::testBug36475() 
Moved ScannerFailedTest::testBug36509 to ScannerTestCase::testBug36509()
Moved ScannerFailedTest::testBug36521 to ScannerTestCase::testBug36521()
Added ScannerTestCase::testBug36695()
 
Updated ScannerTestCase::testBug36047
Updated ScannerTestCase::testBug36045
2003-04-21 18:04:53 +00:00
Doug Schaefer
67b40d2e68 Patch for Hoda Amer:
"Function template with body" bug fix + JUnit test
2003-04-21 16:16:59 +00:00
Doug Schaefer
ec6fd870a4 Patch for John Camelon:
CORE 
        Fixed error in Elaborated Enumeration Types.   
        Fixed Bug36559  - Parsing Templates...  
        Fixed Bug36634  - Enum start line error  

TESTS 
        Updated DOMTests::testBug36600(). 
        Updated LineNumberTest::testDOMLineNos().   
        Added DOMTests::testBug36559().
2003-04-17 18:59:18 +00:00
Doug Schaefer
f2da937be0 Patch for Andrew Niefer:
- Automated test framework for batch parsing files on the filesystem
2003-04-17 18:24:21 +00:00
Doug Schaefer
861d5cdfcc Patch for John Camelon:
CORE
		 Fixed Bug36532  -   Hang on partial template definition.
		 Fixed Bug36432  -   Trying to open attached source code hangs
Eclipse. 
		 Fixed Bug36594  -   Parser Stack Overflow on unaryExpression
		 Fixed Bug36600  -   Elaborated Enumerated Types Parse Incorrectly. 

TESTS
		 Added DOMTests::testBug36532().
		 Added DOMTests::testBug36432(). 
		 Added DOMTests::testBug36594().
		 Added DOMTests::testBug36600(). 
		 Added DOMTests::testArrayOfPointerToFunctions().
2003-04-17 13:41:45 +00:00
Doug Schaefer
1c8f7f5637 Patch for Hoda Amer:
- Fix for bug 36506: Bad Signature For main
- Fix for bug 36498: outline view signature incorrect for templated
functions/methods 
- JUnit tests for C Model Elements.
2003-04-16 20:32:20 +00:00
Doug Schaefer
7dd6d81653 Patch for Andrew Niefer: 2003-04-16 14:35:12 +00:00
Doug Schaefer
4ff57e8849 Fixing the ascii property. 2003-04-16 13:52:08 +00:00
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
e6d765afcd Work on the Build Model.
- Model is maturing
- Loading/saving moved into the objects themselves
- Project build info saved to/loaded from a file
2003-04-14 20:02:39 +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
45705e3e38 Patch for Andrew Niefer:
- Added tests that pass if they fail.
2003-04-11 18:42:56 +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
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
663cef492f Fleshing out the build model. 2003-04-09 20:56:21 +00:00
Doug Schaefer
9e35ee6963 A little more sanity to the new build model. 2003-04-09 15:14:56 +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
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
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
e92be51ca5 Fixed broken .classpath where the parser source folder fell off. 2003-04-07 21:34:58 +00:00
Doug Schaefer
e7a699b56c Updates to the new build model. 2003-04-07 20:56:27 +00:00
Doug Schaefer
ec7c947a6f Yet Another Build Model.
- Defines most of the interfaces
- Some simple implementation behind the interfaces to at
least get information from the extension point.
2003-04-07 02:47: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
Alain Magloire
b0f43f73ce updated. 2003-04-06 00:33:54 +00:00
Alain Magloire
da81942d76 Get rid of some warnings. 2003-04-06 00:33:45 +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
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
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
5914d59aca updated 2003-04-01 18:54:16 +00:00
Alain Magloire
073f3d6e2f More tests from John Camelon. 2003-04-01 18:54:08 +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