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

92 commits

Author SHA1 Message Date
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
John Camelon
c3bab5f786 Patch for Victor Mozgin
Update of ChangeLog & ui.tests for PR 38065.
2003-06-06 15:01:36 +00:00
John Camelon
fc9a1bc154 Patch for Victor Morgzin.
Fix Bug 38065     Handling include statements with backslashes in Outline
2003-06-05 20:16:30 +00:00
John Camelon
f5f345cdff CORE
Fix Bug 38380  "Include" class public methods fails JUnit tests 
	Updated CModel, DOM, Scanner and current Parser callback to set the information appropriately.  

TESTS
	Moved testBug23478A() & testBug23478B() from failed tests to TranslationUnitTests.java.
	Removed TranslationUnitFailedTests.java as it was empty. 

I also had to apply Alain's partial fix to the Parser_SymbolTable branch to get this working.
2003-06-05 20:01:54 +00:00
John Camelon
23a5c599d4 Symbol table/Parser interworking.
First blood has been drawn.
2003-05-05 20:31:08 +00:00
John Camelon
775f0761ca Patch for Andrew Niefer
core: Structural changes to ParserSymbolTable:
- moved TypeInfo & Declaration inside ParserSymbolTable
- removed the stack & push/pop/peek
- moved nonstatic add/lookup fuctions from the table to Declaration
- began undo framework: added AddDeclarationCommand
 
tests: 
Rewrote ParserSymbolTableTest to reflect structural changes to the symbol table.
2003-05-05 17:01:04 +00:00
John Camelon
805567f342 Patch for Andrew Niefer.
core:
  Fixed Bug 36287 - Parser failure with new CDT 1.1 parser
  Fixed Bug 37011 - Scanner: #define A "//" not properly handled
 
UI.tests
  Updated FractionalAutomatedTest to use threads
  Modified ScannerTestCase::testBug36287
  Added ScannerTestCase::testBug37011
  Added ScannerTestCase::testOtherPreprocessorDefines
2003-05-01 20:04:51 +00:00
John Camelon
44ca9f0cc5 Patch for Hoda Amer.
Fix for bug 36797: Templates of Variables and structs + JUnit test
2003-05-01 19:46:42 +00:00
John Camelon
2ae31ff0e2 Update IParser.java and Parser.java javadoc.
JC
2003-04-30 22:14:55 +00:00
John Camelon
0ab192cb95 CORE
Fixed Bug 37019  - RTS: Parser fails on variable defn using constructor 
	Fixed Bug 36767  - STL Testing: Parser is confused and goes into template function body 

TESTS
	Moved testBug37019() from DOMFailedTests to DOMTests.
2003-04-28 20:00:35 +00:00
John Camelon
5b0250419e Added tCHAR to Parser::primaryExpression(). 2003-04-28 18:16:48 +00:00
John Camelon
b918254917 Patch for Hoda Amer
The CModelBuilder assigns template classes and template functions the correct offsets.
2003-04-28 17:36:24 +00:00
John Camelon
771d05100d CORE
Partial fix for Bug37002 - Order of Offsetables is wrong 

TESTS
	Added DOMTests::testOrder().
2003-04-28 16:01:38 +00:00
John Camelon
1c7ed5ec08 CORE
Partial fix for Bug 36932 - RTS: Parser fails on "new" in ctor initializer
	Fixed Bug 36704 - Problem parsing Loki's Reference Typelist.h 
	Fixed Bug 36699 - Problem parsing Loki's Reference SmartPtr.h Impl 
	Fixed Bug 36691 - Problem parsing Loki's Reference HierarchyGenerators.h Impl 

TESTS
	Added testBug36932() to DOMTests. 
	Moved testBugFunctor758() from LokiFailures to DOMTests.
	Moved testBug36704() from DOMFailedTest to DOMTests.  
	Moved testBug36699() from DOMFailedTest to DOMTests.  
	Moved testBug36691() from DOMFailedTest to DOMTests.
2003-04-27 22:53:58 +00:00
John Camelon
4d93d6c4df Patch for Hoda Amer.
Logging debug messages of the parser and the C model builder only if CCorePlugin.debug is set to true.
2003-04-27 20:56:07 +00:00
John Camelon
2417cd02cb Patch for Andrew Niefer
Core
    Fixed bug36771 - Outline view shows include with no name
    Fixed bug36714 - Parser fails on initial assignment using floating-suffix 
    Revisted bug36816 - Incomplete #include stops outline view 
Tests
    Moved ACEFailedTest::testBug36771 to DOMTests
    Moved DOMFailedTest::testBug36714 to DOMTests
    Updated ScannerTestCase::testBug36816
2003-04-27 20:28:16 +00:00
John Camelon
c8a467dc65 CORE
Fixed bug36852  - outline window doesn't show all functions 
	Fixed bug36764  - Bit fields cause parse errors 
	Fixed bug36702  - Parser error when having function pointers as parameters 

TESTS
	Added DOMTests::testBug36852(). 
	Added DOMTests::testBug36764().
	Moved DOMFailedTests::testBug36702() to DOMTests(). 

JohnC
2003-04-25 16:13:17 +00:00
John Camelon
1afa3710ae Patch for Hoda Amer
Fix for bug : const & volatile modifier missing from pointer to function signature  
+ 2 more STLFailedtests
2003-04-25 15:58:44 +00:00
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
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
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
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
bfbb6e209b Patch for Hoda Amer:
- A fix for bug 36379: The parser to set Line information when scanning as
well.
2003-04-21 14:49:26 +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
8fc0923c61 Patch for Hoda Amer:
- Fix for bug 36604 : NPE in CModelBuilder for given input
2003-04-17 18:34:47 +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
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